Problem sending emails.

Mr. X.

Usenet Archive
Joined
Jun 2, 2007
Messages
236
Reaction score
0
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("",
"myPassowrd")
mail.From = New MailAddress("")
mail.To.Add("")
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 :)
 

Bob Barrows

Usenet Archive
Joined
Nov 23, 2001
Messages
2,196
Reaction score
0
Mr. X. said:
Hello.
I have an asp.net, that sending emails.

***canned wrong-newsgroup reply************************ There was no way for you to know it (except maybe by browsing through some of the previous questions in this newsgroup before posting yours - always a recommended practice) , but this is a classic (COM-based) asp newsgroup. ASP.Net bears very little resemblance to classic ASP so, while you may be lucky enough to find a dotnet-knowledgeable person here who can answer your question, you can eliminate the luck factor by posting your question to a group where those dotnet-knowledgeable people hang out. I suggest microsoft.public.dotnet.framework.aspnet or the forums at www.asp.net.
I have the following code :
Dim mail As New MailMessage
Dim smtp As New SmtpClient("my-site.org")

smtp.Credentials = New NetworkCredential("",
"myPassowrd")
mail.From = New MailAddress("")
mail.To.Add("")
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?
"Why?"
Well, it sounds as if the site administrator wanted to make the site more secure. Maybe he was having problems with bots using his site to send spam or something.

Did you mean to ask how to make the change?
 

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

Members online

No members online now.

Forum statistics

Threads
548,042
Messages
3,104,223
Members
248,131
Latest member
Tonypshaw1

Latest Threads

Top