Mono Support Problem with smtp and activation e-mail (Closed)

Viewed 22766 time(s), 4 post(s), 9/7/2011 9:13:24 PM - by DavidGarcia
9/7/2011 9:21:53 PM
659 Reputation 84 Total posts

Hello everyone, i moved my post to here.

I've been having problems with the registration part, it always gives me the exception in the photos.Also i set this statements in my web.config page, using my gmail account and password.

<mailSettings>
<smtp deliveryMethod="Network" from="username@gmail.com">
<network host="smtp.gmail.com" userName="username@gmail.com" password="MyPassword" port ="587" defaultCredentials ="false" />
</smtp></mailSettings>

The exception is genarated here:

try
{
MonoXMailSender.GetInstance().SendMail(membershipUser.Email, this.MailSubject, htmlContent, plainContent);
}
catch (Exception exception)
{
throw new ApplicationException(String.Format(Resources.DefaultResources.ErrorMessage_ActivationEmail, Page.ResolveUrl(LocalizationUtility.RewriteLink(ActivationEmailRecoveryPageUrl)), exception));
}

Do i have to activate something in the IIS for the smtp part?

1
9/7/2011 9:44:11 PM
659 Reputation 84 Total posts

The exception its this:

System.ApplicationException was unhandled by user code
Message=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="/Portal/Membership/ActivationEmailRecovery.aspx">Activation e-mail recovery</a> page. If the problem persists, please contact us.
Source=MonoX
StackTrace:
at MonoSoftware.MonoX.ModuleGallery.MembershipEditor.btnCreateAccount_Click(Object sender, EventArgs e) in C:\Proyectos\QuieroSerMejor\MonoXSourceCode\Portal\MonoX\ModuleGallery\Membership\MembershipEditor.ascx.cs:line 354
at MonoSoftware.MonoX.Controls.StyledButton.OnClick(Object sender, EventArgs e) in C:\Proyectos\QuieroSerMejor\MonoXSourceCode\Portal\MonoX\controls\StyledButton.ascx.cs:line 189
at MonoSoftware.MonoX.Controls.StyledButton.btnButton_Click(Object sender, EventArgs e) in C:\Proyectos\QuieroSerMejor\MonoXSourceCode\Portal\MonoX\controls\StyledButton.ascx.cs:line 203
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)
InnerException:

2
9/8/2011 6:43:41 AM
15993 Reputation 2214 Total posts

Hi,

the exception that you have provided us with is the exception that MonoX throws as a "more friendly" error, what we need is the inner exception so we can help you.

GMail smtp requires the SSL to be enabled and to do that you need to set the following setting to true:

<!-- flag if SSL is enabled while sending an e-mail portal wide -->
<add key="EnableSmtpSSL" value="false"/>

If you need anything else let us know.

Regards

3
9/8/2011 6:55:13 AM
659 Reputation 84 Total posts

hi, i have done the test with the SSL and it worked just fine, thanks a lot aparently that was the line that i was missing, thanks a lot

4
This is a demo site for MonoX. Please visit Mono Software for more info.