Smtp - .NET - Password Recovery Using SMPT.Gmail.Com
Jun 30, 2010
I have a login control on my webpage along with a RecoverPassword control.
I have the following code inside of web.config
<system.net>
<mailSettings>
<smtp from="MyEmail@gmail.com">[code].....
The error that I keep recieving is:The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. 35sm26203922ibs.22
View 1 Replies
Similar Messages:
Apr 14, 2010
once user answers security question and clicks submit that you can then re direct them to a new page and display their password on screen? rather than send an email?
View 1 Replies
Jun 24, 2010
TL;DR - Any webapp devs out there able to squeeze performance out of using gmail as SMTP server without a 3-10 minute delay to delivery?I'm looking for some feedback from developers who are using gmail as a secure SMTP server for use with Webapps.Within the past 2 weeks, my company has switched to gmail to host email for our domains.I have a few webapps that send from our ISP server, but I'd like to refactor the code to use gmail with our domain name. I know the ISP can rig things up, but I don't want relay issues.I have gmail sending for the Webapps and it's more or less working. On ASP/IIS, I'm using SSL and on PHP Linux, I'm using TLS.It seems that TLS (port 587) works better than plain old SSL (port 465), but the overall performance difference seems minimal.What concerns me is that there is often a significant delay (10-20 minutes at times) to get email to a recipient no matter which method I use to send via gmail.While I understand this can happen in any environment, I am used to fast delivery. Use case is salespeople talking to customers and needing to get email to them very quickly using the Webapp. Before the gmail switch, usually less than a minute to deliver. Now, it is 3-4 minutes minimum.Am I crazy to try to use gmail for this purpose? There seem to be a lot of devs using it, so just wanting to know how it works out for them/you.
View 3 Replies
Mar 15, 2010
I have configured gmail's free smtp server for my web app and previously I was using smtp server configured at the server.
So I have changed my smtp settings accordingly but my app isn't sending any email and giving me error connection time out, third party tool isn't responding after many retrials.
Here are my settings-
SmtpClient smtpClient = new SmtpClient("mail.MyWebsiteDomainName.com", 25);
smtpClient.Credentials = new System.Net.NetworkCredential("info@MyWebsiteDomainName.com", "myIDPassword");
smtpClient.UseDefaultCredentials = true;....
View 8 Replies
Jul 12, 2012
My PasswordRecovery Control is not working. It is giving me SMTP problem. I set my proper gmail address with port number, valid user name and password. But not working? Do I require to set more settings?
The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. pg3sm5232120pbc.2
Web.config :
<system.net> <mailSettings> <smtp from="myemailid@Gmail.com"> <network host="smtp.gmail.com" password="mypassword" port="587" userName="myemailid@Gmail.com" /> </smtp> </mailSettings> </system.net>
View 1 Replies
Aug 29, 2010
I am trying to send email from my asp .net code ,it is sending email to email ids except gmail.com. all mails with gmail.com is going into my Badmail folder in inet pub folder in my local system.
SmtpClient client = new SmtpClient();
client.Host = "mail.abc.com";
client.DeliveryMethod = SmtpDeliveryMethod.PickupDirectoryFromIis;
client.Credentials = new System.Net.NetworkCredential("ab", "rr");
client.Port = 25;
string to = "arvind.abes@gmail.com";
string from = "rvsales@westrvwholesaler.com";
MailMessage mail = new MailMessage(from, to);
mail.Subject = "hello......?";
mail.IsBodyHtml = true;
mail.Body = "hi, how are you?may be this will work";
mail.Priority = MailPriority.High;
//client.EnableSsl = true;
try
{
client.Send(mail);
}
catch (Exception ex)
{
Exception ex2 = ex;
string errorMessage = string.Empty;
while (ex2 != null)
{
errorMessage += ex2.ToString();
ex2 = ex2.InnerException;
}
Response.Write(ex2.Message);
}
mail.Dispose();
View 1 Replies
Dec 12, 2010
a couple weeks ago, my ASP.NET website stopped sending user comments which I implemented by emailing those comments to my email account through Gmail SMTP server [URL]. I opened the project on my development machine and again it fails to send the email after a couple minutes with the following exception message:
Failure sending mail
Unable to read data from the transport connection: net_io_connectionclosed.
I'm using Gmail's SMTP with port 465, and MailClient.EnableSSL = True.
The weird thing is my Office Outlook 2007 is using the same settings and it doesn't have any problems sending mail using the same Gmail account.
View 3 Replies
Nov 29, 2010
I have the authentication which will redirect the unregister user to Login.aspx. At the bottom of the page,there are a link button will redirect the user to forgotPassword.aspx With having the authentication, i discover it don't allow the unregister user to go forgotPassword.aspx but staying in the same page.
so some expert have shown me this code..
can provide me the code in web.config here?
some expert have provided me the code..but i find no where to locate this code in web.config, none of them tell me where to locate it..click this link.
View 2 Replies
Aug 11, 2010
Password recovery email is sent twice?
[Code]....
View 3 Replies
Feb 16, 2010
how to use the password recovery control.
I am not able to write the code for it.
View 3 Replies
Jan 28, 2010
I have the following code. I simply want to select the security question and answer from the DB and do something if the result is true.
This is my code:-
[Code]....
This code always returns the result of "Invalid User Credentials", so this means it does not recognize the values from the DB. When i put something in that SHOULD match i still get the same. I dont get an error message but the logic here is to select security question and answer where the question is equal to the dropdown box and the answer is equal to the textbox. If there is a match then do something..
But this does not work..
You can see what i mean here:-
[URL]
If you select "What street did you grow up in?" from the dropdown and then put in "deeplish" in the security answer, the result should be "**EXISTS".
View 2 Replies
Mar 19, 2011
My application can send email using:
new SmtpClient(null).Send(message);
But users have not been receiving emails sent by the password recovery control. This had been working.
We have made a recent change with the mail server. I don't know the details.
I use ELMAH to log errors, and nothing is written to this log.
I was wondering if there something in the authentication tables that shows when a password has been reset in this manner.
View 3 Replies
Mar 30, 2011
I'm using the ASP.NET Membership provider and using the Password Recovery control to reset the user password if they forget it. On the whole it all works fine, but with one catch when it comes to validation.
I have expanded the PasswordRecovery control out to use the template feature to customise the appearance, which is all fine. I have set the user lookup error handler using:
OnUserLookupError="PasswordRecovery1_UserLookupError"
in the opening tag and if I load up the page, type in some junk name and click submit this fires as expected, in all browsers. The snippet of VB code makes an error div visible and sets some text.
However, if upon loading the page for the first time I type a duff name into the username box and hit the enter key to submit the form, in Internet Explorer (version 8), the UserLookupError event fails to trigger. It triggers just fine in Chrome or Firefox, just not in IE. I know it's not a focus issue on the form, as I can see the form is being submitted.
If I click the submit button first, then following that hit the enter key it does fire, it's just that first time it doesn't, and only in IE.Also to add that if I set breakpoints in the VB code to check to see if the page is being submitted, I can see the Page_Load event fire when I hit the enter key, but not the sub PasswordRecovery1_UserLookupError. It looks like a bug in IE (no really???), but I need to nail it down.
View 1 Replies
Nov 27, 2010
Here is what I have done so far:
1) Here's the Password Recovery control:
<asp:PasswordRecovery runat="server" id="passwordrecovery" SuccessPageUrl="success.aspx" maildefinition-from=myaccount@comcast.net
<MailDefinition From="myaccount@comcast.net"
Subject="Your password"
[Code]....
3) After all this, when the test user enters the correct answer to the security question, nothing happens. I don't even receive the SuccessTemplate message--much less the test email with the password.
Is the problem that the correct answer to the security question is somehow not really being registered? Is the problem server-related? What I could I be doing wrong?
View 3 Replies
Jan 12, 2011
i'm trying to send email through gmail account
i get this 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 at
web config is like below:
[Code]....
and my code :
[Code]....
View 4 Replies
Jun 16, 2015
How to fix this 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 at"
[URL].....
View 1 Replies
Jan 30, 2011
I am using password recovery control to recover the forget password and it throws me an error message at smtp.send(mm) step in aspx.cs fileHere is the error message i received "SMTP server requires a secure connection or the client was not authenticated. The server response was 5.5.1. Authentication required"
Passwordrecovery.aspx code:
<asp:PasswordRecovery ID="PasswordRecovery1" runat="server" Onsendingmail = "PasswordRecovery1_SendingMail">
<MailDefinition From = "sandip.vs@gmail.com" Subject = "Forgetton Password" Priority = "High"></MailDefinition>
<InstructionTextStyle Font-Italic="True" ForeColor="Black" />
<SuccessTextStyle Font-Bold="True" ForeColor="#5D7B9D" />
<TextBoxStyle Font-Size=Medium />
<UserNameTemplate>
<span style="text-align:center">
[code]...
View 2 Replies
Feb 11, 2011
It seems to work just fine but it resets the users password, emails it to them and then the user can not log in with the new password.
View 1 Replies
Jan 10, 2010
I don't want to reinvent the wheel with the password recovery control but I do want to customize the email message sent to the user. I have the following code but when I use this, I'm getting an error that states that the system is not configured to retrieve passwords.
I think this is due to the fact that out-of-the-box, the membership system is not configured retrieve password due to password encryption. Then how do I customize "ONLY" the email sent -- with the tem password -- without getting into complete customization of the password recovery control?
[Code]....
View 2 Replies
Mar 8, 2010
I doing sign up page now. Inside my sign up page, i also have forgot password table. Now the problem is, can i display my <successTemplate> out of <passwordrecovery>? Because i tried to display normal successful label failed.
View 1 Replies
Sep 24, 2010
I have a situation where I need to implement a Password Recovery page BUT without using the PasswordRecovery control.
Does anyone know of an example or has implemented this before?
View 3 Replies
Mar 1, 2011
I am using Password Recovery Control and cannot get this to work.
Here is the settings I have. I tried ports like 25, 587, 254,
[Code]....
I get errors like
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
OR sometimes...
An existing connection was forcibly closed by the remote host
View 11 Replies
Mar 15, 2011
I need to send an email(using SMTP) whenever the user forgets the password.....The code snippet i have is
protected
void PasswordRecovery1_SendingMail(object
sender, MailMessageEventArgs e)
{
MailMessage mm =
[Code]....
I need to call this function whenever the user clicks the Reset button...
View 2 Replies
Jan 4, 2011
A question has been raised concerning password recovery revealing valid user ids. Stage 1 of the password recovery asks for a userid and when progressing to stage 2 will display an error message 'Invalid user id'. In theory this would allow valid user id'sto be identified.Is there a setting we are missing? Something that would allow the user id and question to be asked, then a message saying the 'User/Question combination is invalid'.
View 2 Replies
Dec 8, 2010
How do I set up an automatic password recovery feature? (This is an internet application using forms authentication.)
I am trying to set up the common senario where when a user who has forgotten his password, clicks a button to request I send him a new password. I then open his browser's default email client (that is no problem, that part I already have coded and it is working fine.) The user then clicks a button to send me his email. Now comes the problem. How do I detect that he has done that?
Am I approaching this problem correctly? Should I be requiring the user to send me an email in order to have his password reset? Or should I just have him fill in textboxes giving me his username & password? Wouldn't this allow a malicious user to abuse the system?
View 12 Replies