Smtp in ASP.NEt

J

Johny

I have the next code!

Dim email As New MailMessage
email.From = (e-mail address removed)
email.To = (e-mail address removed)
email.Body = "Testing Email"
email.BodyFormat = MailFormat.Html
email.Subject = "Probando el EMAIL"
SmtpMail.SmtpServer = "smtp.webmaster.com"
SmtpMail.Send(email)

But I need smtp authetication (user and password),
How can i do it?

Thanks a lot.

Johny
 
M

Mark Fitzpatrick

Unfortunately, you can't with the .Net smtp mailer (which is basically a
wrapper for CDONTS). There are, however, a lot of great .Net SMTP component
out there. There are even some great free ones out there and one of them is
bound to have authentication capabilities. Check out:
http://sourceforge.net/projects/opensmtp-net/ for one such free component.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 
P

Patrice

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

Top