MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

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

Viewed 20162 time(s), 4 post(s) 9/7/2011 9:13:24 PMby DavidGarcia


9/7/2011 9:21:53 PM
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.

<smtp deliveryMethod="Network" from="">
<network host="" userName="" password="MyPassword" port ="587" defaultCredentials ="false" />

The exception is genarated here:

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?
This content has not been rated yet. 
659 Reputation 84 Total posts


9/7/2011 9:44:11 PM
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.
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)
This content has not been rated yet. 
659 Reputation 84 Total posts


9/8/2011 6:43:41 AM

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.


This content has not been rated yet. 
15993 Reputation 2214 Total posts


9/8/2011 6:55:13 AM
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
This content has not been rated yet. 
659 Reputation 84 Total posts