Problem on sending emails


M

Mr. X.

Hello.
I have an asp.net, that sending emails.

I have the following code :
Dim mail As New MailMessage
Dim smtp As New SmtpClient("my-site.org")

smtp.Credentials = New NetworkCredential("(e-mail address removed)",
"myPassowrd")
mail.From = New MailAddress("(e-mail address removed)")
mail.To.Add("(e-mail address removed)")
mail.Subject = "Contact"
mail.Body = "<html> <body>...</body> </html>>
mail.IsBodyHtml = true
smtp.Send(mail)

Everything works fine, till some changes of the site provider.

Now I am getting the message :
The SMTP server requires a secure connection or the client was not
authenticated.
I have been told, I need to add some parameter : required authentication.
Why may be that change?

Thanks :)
 
Ad

Advertisements

J

Jason Keats

Mr. X. said:
Hello.
I have an asp.net, that sending emails.

I have the following code :
Dim mail As New MailMessage
Dim smtp As New SmtpClient("my-site.org")

smtp.Credentials = New NetworkCredential("(e-mail address removed)", "myPassowrd")
mail.From = New MailAddress("(e-mail address removed)")
mail.To.Add("(e-mail address removed)")
mail.Subject = "Contact"
mail.Body = "<html> <body>...</body> </html>>
mail.IsBodyHtml = true
smtp.Send(mail)

Everything works fine, till some changes of the site provider.

Now I am getting the message :
The SMTP server requires a secure connection or the client was not
authenticated.
I have been told, I need to add some parameter : required authentication.
Why may be that change?

Thanks :)

Maybe checking the inner exception for more information would help:
http://systemnetmail.com/faq/5.aspx
 

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

Similar Threads

Problem sending emails. 1
System.Net.Mail 3
password recovery 0
E-mail and SSL 2
Contact us form SMTP mail sending error.. 4
SMTP Authentication problem 4
Send email with background thread? 5
Emailing a GridView 1

Top