Emailling using VB.Net

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have searched mdsn for emailing with .NET. Found some stuff using the SMTP class.
When I review the info, it says to use the name space System.Web.Mail

When you enter that name space, it is not recognized. What might I need to install on my computer to have that name space

Otherwise, what other options do I have. I am using the MAPI COM class. But, my problem with that is when I can to the latest outlook version, anytime I try to send an email, outlook will always display and message asking if I want to allow a third party application to access outlook. Problem is I do not want to have to always require user interaction. Also, out has to be open.

Is there a different method

Thanks.
 
Hi Roger

You need to add the 'System.Web.dll' reference to your project and you will then be able to use the System.Web.Mail namespace

Gary
 
=?Utf-8?B?R2FyeSBNaWx0b24=?= said:
You need to add the 'System.Web.dll' reference to your project and you
will then be able to use the System.Web.Mail namespace.

You also need CDO installed. If you want to send mail without needing CDO,
try Indy.Sockets - its free and support much more of the mail protocol than
Web.Mail.

www.indyproject.org

VB demo at www.atozed.com/indy/
 
Back
Top