How To Set SSL True For PasswordRecovery Control When Using GMAIL SMTP Server
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
Similar Messages:
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
Jan 17, 2011
Firstly, I'm a newbie to ASP.net, but have around ten years of ('classic') ASP and VB6 experience.I have spent the last 12 hours or so googling for a solution to this problem, so it's nothing obvious (to myself or anyone else I can find talking about it, at least). Things I have ruled out so far include:1) Lack of SMTP server (fixed)2) Firewall issues3) Web.config <mailsettings> directivesI am developing my app locally (VS-2010, Windows 7 Premium ). When I kick off my application containing a form with the PasswordRecovery control in it, and run the password recovery control, I get the error:
[Code]....
This I figured is because I am running Windows 7, which doesn't have IIS7.5 (and thus an SMTP server) running by default. So I enabled IIS 7.5 in component settings, and lo and behold there it was. However there was no SMTP server included (those kind folk at Microsoft like to randomly remove things in system upgrades).So I dug around and installed a free smtp mailserver "hMailServer", and set it up with a the relay mail server address I use with my O2 email, with default credentials.I ran the test and it confirmed that I was indeed reaching the server OK. It also said I could therefore reference Localhost as my smtp server.I also realised I was missing the web.config <mailsettings> directives, so included (under <system.net> <mailsettings>):
<smtp deliveryMethod="Network" from ="zenid@here.com">
<network host="localhost" defaultCredentials="true" port="20" />
</smtp>
[code]...
View 11 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
Jul 20, 2010
Is there any easy way of setting a failure text within the PasswordRecovery control?
I want to be able to notify users that there was a problem with sending an email. Is there a failure - counterpart to the SuccessTemplate i can use or is there any other template/control within the passwordRecovery control whose value can be set in a handler to the onsendmailerror event?
(Please don't send MSDN links to PasswordRecovery or onsendmailerror, i've read them)
View 4 Replies
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
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
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 5, 2010
The question: Is it possible to configure multiple SMTP servers or update the SMTP object server information at runtime?
Description of problem: The site I'm working on has a few pages which send emails. Our site is using Gmail so even though it's a custom domain our email is sent out though Gmail SMTP servers.
Some emails come from the system and some emails come from users in certain groups. I have an SMTP server configured with the admin email for the system e.g. admin@mysite.com This works fine and when I get the email it shows from admin@mysite.comOne of our user groups let's call it "groupA" has an email configured on our domain i.e. groupA@mysite.com When I send the email and specify a from address for the MailMessage object as groupA@mysite.com it still shows up in my outlook as coming from admin@mysite.com I did a little further testing and if I specify both the from address and the ReplyTo as groupA@mysite.com it will show as From=admin@mysite.com but when I choose reply in outlook it shows groupA@mysite.com My best guess is that Gmail is overwriting the From address with the SMTP user to prevent email spoofing.
I found this: http://www.systemnetmail.com/faq/4.1.aspx but it won't work for me since group A, B, and C all need to send emails from the same page.
View 1 Replies
Apr 5, 2010
I have asked the following question multiple times but did not receive any proper reply.
I have a web page which is using PasswordRecovery control.
Its working fine but I have a scenario in which I have to disable Viewstate for the whole application.
Now after disabling viewstate when I visit the webpage I have noticed that PasswordRecovery controls is not working (Every times when I submit the default button to go to step 2, the postback occur but not moving to step 2).
View 1 Replies
Jan 24, 2011
I want to use PasswordRecovery control in modalpopup. After successfully completing first step of password recovery.I close the modal popup and now again when i open modal popup it shows with second step of the password recovery. But I want default first step when user close the modal popup.
View 1 Replies
Aug 11, 2010
For reasons to long to go in to I have to change the behaviour/appearance of the Success page on our password recovery page.
We've been tasked with making the Success template identical to the UserName template i.e. with a label and text box for UserName and identical messages on both pages.
Basically our client wants no difference between successful password retireval and failure - the same message will display regardless e.g. "An email has been sent to <username> with your password."
Which reminds me - in the success/failure message they'd like the entered UserName to appear but I can only get it to appear if it's a valid username - if it's nonsense the UserName is blank.
View 2 Replies
Oct 28, 2010
I have a password recovery control on my login page. I want to have it send the user specified (and after question/answer filled out correctly) password in an email. I keep throwing an error though, saying that the SMTP needs authentication. I've used a lot of email capabilities in my application, but I set all the SmtpClient properties programmatically, so I never had to rely on system.net mailSettings section of the web.config file. But now I am relying on it, because I am not intercepting any events (unless that would be easiest) of the password recovery control. Here is my system.net excerpt from my web.config file:
[Code]....
What am I not doing here to specify SMTP authentication? Why am I throwing this error? I'm putting my credentials in there with username and password. Am I not configuring the PasswordRecovery control correctly?
View 4 Replies
Nov 17, 2010
I am using passwordrecovery control.
After entering username and keying enter key(from keyboard) it was not firing submitbutton_click event. So i have added defaultbutton property in the panel control, and it is working fine. And my problem here is..
Clicking on submit button it is showing security question. After answering the security question, i have to click on the submit button either by mouse click or tab enter.
What i need to do is.. after answering the security question, I should be able to hit enter key instead of mouse clicking on submit button.
View 3 Replies
Mar 31, 2010
I have a web page which is using PasswordRecovery control.
But I have a scenario in which I have to disable Viewstate for the whole application.
Now after disabling viewstate when I visit the webpage I have noticed that PasswordRecovery controls is not working (Every times when I submit the default button to go to step 2, the postback occur but not moving to step 2).
View 2 Replies
Apr 12, 2010
Example scenario in an ASP.NET application using SQL Server membership provider :
1) a user can't remember their exact password, and tries many times in a short space of time to login with an invalid password (say 5 times in a 10 minute window). This locks out the user (i.e. sets the IsLockedOut flag of the aspnet_Membership table to 1).
2) user goes to the "forgot my password" screen to try to get a new password emailed to them. This screen uses the PasswordRecovery control. User enters their correct user id, but then cannot go further in the password recovery process, since the IsLockedOut flag is 1. (They don't even get to see their security question).
3) The user would then have to phone tech support to get themselves unlocked etc.
To reduce the burden on support staff, we are trying to reduce the times step 3 is required, by making the PasswordRecovery control (if possible), work with locked out users. i.e. when they enter their login ID, the security question comes up, and IF they enter the correct answer, the system will unlock the user, and email the new temporary password to them. I'm wondering if it is possible to tweak the PasswordRecovery control to do this.
View 1 Replies
Aug 15, 2012
I am using password recovery control in forgotpassword.aspx page. By default the password recovery control validates the Login id and the security question of a particular user. But i want to give an alternate option. That is, If the user forgets the security answer he can give his PAN Number as identificaiton. Its should be an option like either he can provide security answer or his PAN number. Can we acheive this functionality. Because from my knowledge it looks like Security Answer is mandatory. But i want to provide alternate option that user should give his security answer, if he forgets he can use PAN number for his identificaition. UpmMembershipProvider has default property (requiresQuestionAndAnswer) which is set as true.
View 1 Replies
Jan 26, 2010
Is it possible to use the PasswordRecovery control to recover a password using the email address instead of the user name?
Ideally I'd like to have the PasswordRecovery control allow users to enter their email address instead of their user name and then proceed to answer the security question.
View 3 Replies
Jan 7, 2010
I have developed an enterprise application in ASP.NET that sends emails using localhost SMTP server on the same box as the IIS web server for the ASP.NET app.
So right now any email sent from this ASP.NET app would hit internet firewall of the enterprise and then be directed to the right destination email address.
I was hoping to not hit the internet firewall of the enterprise, but hit the Exchange Server of the enterprise.
So the situation I am aiming for is: ASP.NET APP ===> Localhost SMTP SERVER ===>EXCHANGE SEVER 2003 ===>SEND OUT THE EMAIL
rather than ASP.NET APP ===> Localhost SMTP SERVER ===>SEND OUT THE EMAIL
So I still want to use the same mail configuration in my ASP.NET app of localhost as SMTP server, but just want the email to first go through Exchange Server before being sent out.
View 3 Replies
Apr 23, 2010
I need to copy a (WAV) file that I have just posted to the Web Server (successfully) over to the SMTP server for additional processing. I am confused about the process. Here is what I do now:
1. Post the file via "http POST" from the client to the web server.
Here is what I would like to accomplish:
1. Post the file to the web server
2. Copy the file from the web server to the SMTP server.
I am experiencing a "brain block" which I get too often and cannot visualize the processes. What should I write on the web server as a method to grab the newly received file and send a copy on over to a specific directory in the SMTP server (MailServer is the SMTP server and the physical directory is "c:/TempMessages". Do I need to run IIS on the SMTP server and create a virtual path??
View 3 Replies
Dec 21, 2010
I am trying to get the SMTP Server in IIS7 working so I can use the asp:PasswordRecovery component. I have included a screenshot of my SMTP setup in IIS, the SMTP setup in my web.config file, and my asp:PasswordRecovery component code. I have set it up to not require any authentication settings. I basically want to specify whatever email address I want as the "From" attribute (I'm using a series of noreply* addresses for a web app), like the php mail function that lets you put whatever you want in the from argument. What am I missing? Do I need to install anything else? I'm assuming that when people say "you need an SMTP server to send mail", this is what they're talking about.
Web.config:
[Code]....
ASP Code:
[Code]....
SMTP Setup Screenshot:
View 6 Replies
Sep 24, 2010
I have an application that sends mails with Gmail SMTP server (smtp.gmail.com) using SSL.
Now I want to read the emails from that account, does anyone have how can I make this programatically in C# and ASP.NET?
At this point I'm using this code:
[Code].....
And when I debug it it's shows that it's connected but no response in retrieving emails.
View 3 Replies
May 11, 2010
I want to send email without declare username and password in smtp server. I am using asp.net c#, this is possible in asp below is the code , anybody tell me how can i use this code in asp.net.
<%
Dim ObjSendMail
Dim iConf
Dim Flds
Set ObjSendMail = Server.CreateObject("CDO.Message")
Set iConf = CreateObject("CDO.Configuration")....
View 5 Replies