can this be done? make use of the .net framework using VBA

  • Thread starter Thread starter David L
  • Start date Start date
D

David L

Hi, wondering if i'm asking the impossible.
Got an Access database, and i wish to use the .net framework's smtp
facilities from within Access's VBA. Is that possible? If so, what to
do? I've been searching the net but no mention of anything like it so far.
Any thoughts appreciated.
Regards,
David.
 
Not impossible, just not necessary.

You could expose a .NET assembly as a COM object by creating a COM
Callable Wrapper, but that is completely unnecessary in this case.

If you are just looking to use the SMTP facilities in .NET, then use
what .NET uses under the hood - CDO!

See this web page for an example of using the CDO objects from VBScript
(ASP in this case)
http://www.w3schools.com/asp/asp_send_email.asp

You should be able to use the CDO COM objects from VBA in Access in a
similar way.

Joshua Flanagan
http://flimflan.com/blog
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top