5
Answers

SMTP: failure sending emails

Hi,
 
I have application hosted locally. While creating users, i cannot receive emails due to following error:
 
ERROR: System.Web.Services.Protocols.SoapException :: System.Web.Services.Protocols.SoapException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: SMTP authentication is required.
 
i have added all necessary smtp, ssl settings. My localhost has to work as smtp server. Please let me know if any particular settings are needed. It's more of machine configuration, I guess. Because application works fine on another machine.
 
 
Regards,
Jasmine N 
Answers (5)
0
Bhabani Prasad

Bhabani Prasad

NA 1.4k 36.2k 10y
You just include the exception details as it will be easier to find the detailed error
0
Rajagopalan R V

Rajagopalan R V

NA 422 33.2k 10y
Sorry Can't Get Meaning For Your Above Post Please Can You Explain it Clearly
0
Jasmine Nagrecha

Jasmine Nagrecha

NA 180 4.2k 10y
i need to keep ssl=false, and defaultcredentials is =false. ideally, these settings should help. but i guess its something related to machine configuration
0
Rajagopalan R V

Rajagopalan R V

NA 422 33.2k 10y
Hi.,

Had You Allow Permissions in IIS

If Not Check With Below Method

Go to IIS
IIS---->
Default SMTP Virtual Server (Right Click) ----> Properties ----> Access ----> Relay ----> All Except the List Below (Radio Button) Select that And Click Ok And then Execute Your Code

If U Got Solution With this Mark it Has Accepted

Or Else Please Post The Error

With Regards..,

R.V.Rajagopalan
0
Yadlapalli Srikanth

Yadlapalli Srikanth

NA 238 51.6k 10y
Please share the sample code and also do the following settings

smtpClient.UseDefaultCredentials = false;
smtpClient.EnableSsl = true;