Hello!
Some days ago someone from your team adviced me about the correct settings for a gmail account to be used for sending emails.
I set up the following in the app.config:
<
mailSettings
>
<
smtp
deliveryMethod
=
"Network"
from
=
"username@gmail.com"
>
<
network
host
=
"smtp.gmail.com"
userName
=
"username@gmail.com"
password
=
"MyPassword"
port
=
"465"
/>
</
smtp
>
</
mailSettings
>
But it's not working yet. There must be something else I should do. When creating a new user I'm lead to an error page stating that the account was created but I still need to activate it. However the activation email can't be sent.
I'm pasting bellow my signature the full exception message taken from the logs. In case this information helps, I've just done a new clean installation.
Thanks in advance,
Gonzalo.
2011-05-31 12:12:11,592 [16] ERROR MonoX [::1] - Error
System.ApplicationException: An uexpected error has occured while sending you an activation e-mail. Your account has been successfully created but you can't login until you activate it via activation e-mail. To resend your activation e-mail please go to the <a href="/Membership/ActivationEmailRecovery.aspx">Activation e-mail recovery</a> page. If the problem persists, please contact us.
at MonoSoftware.MonoX.ModuleGallery.MembershipEditor.#Xn(Object sender, EventArgs e)
at MonoSoftware.MonoX.Controls.StyledButton.OnClick(Object sender, EventArgs e)
at MonoSoftware.MonoX.Controls.StyledButton.#Gk(Object sender, EventArgs e)
at System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e)
at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2011-05-31 12:12:11,629 [16] ERROR MonoX [BaseHttpApplication] - Application Error
System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.ApplicationException: An uexpected error has occured while sending you an activation e-mail. Your account has been successfully created but you can't login until you activate it via activation e-mail. To resend your activation e-mail please go to the <a href="/Membership/ActivationEmailRecovery.aspx">Activation e-mail recovery</a> page. If the problem persists, please contact us.
at MonoSoftware.MonoX.ModuleGallery.MembershipEditor.#Xn(Object sender, EventArgs e)
at MonoSoftware.MonoX.Controls.StyledButton.OnClick(Object sender, EventArgs e)
at MonoSoftware.MonoX.Controls.StyledButton.#Gk(Object sender, EventArgs e)
at System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e)
at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.membership_register_aspx.ProcessRequest(HttpContext context) in c:\Users\Gonzalo\AppData\Local\Temp\Temporary ASP.NET Files\root\42061eb3\c64814a4\App_Web_oifkdxix.1.cs:line 0
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)