Contact us form SMTP mail sending error..

S

satam.aniruddha

Hi,

I have an c# application which is used to send mail in contact us form.
When i run the application on localhost it work perfectally, but when i tryto run in via hosting the application on server it gives the below error :

System.Net.Mail.SmtpException: The SMTP server requires a secure connectionor the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response) at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, String from) at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception) at System.Net.Mail.SmtpClient.Send(MailMessage message) at quote.Button1_Click(Object sender, EventArgs e)

i tried different methods but did not work.

Please can anybody provide a solution for this.
 
A

Arne Vajhøj

I have an c# application which is used to send mail in contact us
form. When i run the application on localhost it work perfectally,
but when i try to run in via hosting the application on server it
gives the below error :

System.Net.Mail.SmtpException: The SMTP server requires a secure
connection or the client was not authenticated. The server response
was: 5.5.1 Authentication Required. Learn more at at
System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode,
String response) at System.Net.Mail.MailCommand.Send(SmtpConnection
conn, Byte[] command, String from) at
System.Net.Mail.SmtpTransport.SendMail(MailAddress sender,
MailAddressCollection recipients, String deliveryNotify,
SmtpFailedRecipientException& exception) at
System.Net.Mail.SmtpClient.Send(MailMessage message) at
quote.Button1_Click(Object sender, EventArgs e)

i tried different methods but did not work.

Please can anybody provide a solution for this.

The error message is rather clear.

"The SMTP server requires a secure
connection or the client was not authenticated. The server response
was: 5.5.1 Authentication Required."

You need to authenticate to the SMTP server.

Arne
 
S

satam.aniruddha

I have an c# application which is used to send mail in contact us
form. When i run the application on localhost it work perfectally,
but when i try to run in via hosting the application on server it
gives the below error :

System.Net.Mail.SmtpException: The SMTP server requires a secure
connection or the client was not authenticated. The server response
was: 5.5.1 Authentication Required. Learn more at at
System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode,
String response) at System.Net.Mail.MailCommand.Send(SmtpConnection
conn, Byte[] command, String from) at
System.Net.Mail.SmtpTransport.SendMail(MailAddress sender,
MailAddressCollection recipients, String deliveryNotify,
SmtpFailedRecipientException& exception) at
System.Net.Mail.SmtpClient.Send(MailMessage message) at
quote.Button1_Click(Object sender, EventArgs e)

i tried different methods but did not work.

Please can anybody provide a solution for this.



The error message is rather clear.



"The SMTP server requires a secure

connection or the client was not authenticated. The server response

was: 5.5.1 Authentication Required."



You need to authenticate to the SMTP server.



Arne

Hi Arne,

I am new to this.
I would be great if you can guide me for resolving this,
i.e authenticating the SMTP Server
 
A

Arne Vajhøj

I am new to this.
I would be great if you can guide me for resolving this,
i.e authenticating the SMTP Server

The SmtpClient class has a Credentials property for this
purpose.

Arne
 
T

tukaramchaudhari

Hi,



I have an c# application which is used to send mail in contact us form.

When i run the application on localhost it work perfectally, but when i try to run in via hosting the application on server it gives the below error:



System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response) at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, String from) at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception) at System.Net.Mail.SmtpClient.Send(MailMessage message) at quote.Button1_Click(Object sender, EventArgs e)



i tried different methods but did not work.



Please can anybody provide a solution for this.
 

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
473,968
Messages
2,570,154
Members
46,702
Latest member
LukasConde

Latest Threads

Top