Last post Apr 08, 2013 03:41 AM by Abhishek Luv
Apr 04, 2013 01:29 PM|sagarmatha|LINK
Dear all I have setup a website using web pages. I would like user to be logged in after registration without having email verification, how can i make it happen ? I am asking this because my smtp is set up as WebMail.SmtpServer = "smtp.gmail.com"; and verification
email either doesn't go to hotmil or live email or go very late, so it could be frustration for users. It goes to gmail quickly though,
So i decided that user could login without email verification, pls help me to do it. Thanks
Apr 04, 2013 02:16 PM|wavemaster|LINK
Revert back to not having an smtp server defined.
Apr 04, 2013 02:29 PM|sagarmatha|LINK
Thanks wavemaster, so does that mean i should delete the following lines in _AppStart.html ?
WebMail.SmtpServer = "smtp.gmail.com";
WebMail.EnableSsl = true;
WebMail.SmtpPort = 587;
WebMail.UserName = "";
WebMail.Password = "";
WebMail.From = "";
What if email varification is not required but email needed for forget password ?
Apr 04, 2013 02:37 PM|wavemaster|LINK
In Register.cshtml look for these two lines of code:
bool requireEmailConfirmation = !WebMail.SmtpServer.IsEmpty();
You will need to rewrite that.
Apr 08, 2013 03:41 AM|Abhishek Luv|LINK
Just make this change in the Register.cshtml page.
bool requireEmailConfirmation = false.