Control Panel
Forum
Hosting Help
ASP.NET 4 & SQL 2008 R2 Hosting
Resources
Notice
Login
Members
Shared Hosting
|
Upgrade
|
Advertise
|
Tutorials
|
AdSense revenue sharing sites
|
Exam 70-680 Practice Tests
|
Silverlight games
Total
members
:
210366
Average new registrations per day (in last 7 days):
16
New Registration:
Open
Register Now
Home
»
Questions & Answers
»
Error sending email.
Error sending email.
7/23/2010
Author:
predictor
vantyx
I have a page in my website to recovery the password of a user, that page send a email by the PasswordRecovery control of ASP.net but when a click in the submit button appear a error:
The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more a.
My WEb.Config configuration for the email is.
<mailSettings>
<smtp from=XXX@gmail.com>
<network host=smtp.gmail.com password=XXX port=587 userName=XXX@gmail.com defaultCredentials=true/>
</smtp>
</mailSettings>
Regards
Answers .............
Author:
zannino francesco
Posted Date: 7/23/2010
Is your application running in your local IIS ?
I would like to know where your application is running.
Anyway try adding the folowing in youe web.config file
under the <sytem.web> node
<system.web>
.
.
<authentication mode=Windows/>
.
.
.
<system.web>
PS : if this does not fix the problem let me know with more
includind the information requested at the beginning of this post.
Author:
Ahmed Talu
Posted Date: 7/23/2010
*************************************************
zannino francesco
At local machine where people are logged in using Windows accounts it's possible to use
<authentication mode="Windows">
Though the same in some cases applies to servers websites hosted by ASPSPIDER can not use Windows authentication. If using authentication at this hosting service use
<authentication mode="Forms">
*************************************************
predictor
I can't help you with the code but there are some threads from back in time in this forum that I think may be of interest regarding email.
*************************************************
Author:
irish
Posted Date: 7/25/2010
Your mail server user secure Authentication to allow you to send any mail. Try these lines of code to make your code a working one.
client = smtp.mail.com;
SmtpClient smtpClient = new SmtpClient(client);
smtpClient.UseDefaultCredentials = false;
smtpClient.EnableSsl = true;
credentials.UserName = username;
credentials.Password = pwd;
smtpClient.Credentials = credentials;
through this code use login with all needed authentication
Happy coding
You must
login
to post answer for this question.
Advertise
Privacy Policy
Terms of use
Contact Us
SpiderWorks Technologies Pvt Ltd.
All Rights Reserved.