Ok, I managed to figure out that this was an issue with the setting in the web.config, I was able to change it from:
[code]
<mailSettings>
<smtp deliveryMethod="Network">
<network host="mail.yourdomain.com" />
</smtp>
</smtp>
</mailSettings>
[/code]
To:
[code]
<mailSettings>
<!--<smtp deliveryMethod="Network">
<network host="mail.yourdomain.com" />
</smtp>-->
<smtp deliveryMethod="Network" from="xxxxx@gmail.com">
<network host="smtp.gmail.com" userName="xxxxx@gmail.com"
password="xxxxx" port="587" enableSsl="true"
defaultCredentials="false" />
</smtp>
</mailSettings>
[/code]
and also change the 'EnableSmtpSSL' value to true (see below):
[code]
<!-- flag if SSL is enabled while sending an e-mail portal wide -->
<add key="EnableSmtpSSL" value="True" />
[/code]
this works locally with no issues however on my production server i'm still getting an error.
Here is the error:
[log start]
The Zone of the assembly that failed was:
MyComputer
2013-10-10 22:02:56,689 [40] ERROR MonoX [69.123.21.32] - An error has occured while sending you an e-mail. Please try again, if the problem persists, please contact us.
at MonoSoftware.MonoX.Mail.MonoXMailSender.SendMail(MailMessage mailMsg)
at MonoSoftware.Core.Mail.MailSender.SendMail(String toAddress, String title, String htmlContent, String plainContent)
at MonoSoftware.MonoX.ModuleGallery.MembershipEditor.#Jp(Object sender, EventArgs e)
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
at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response)
at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, String from)
at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception)
at System.Net.Mail.SmtpClient.Send(MailMessage message)
at MonoSoftware.Core.Mail.MailSender.SendMail(MailMessage mailMsg)
2013-10-10 22:02:56,689 [40] ERROR MonoX [69.123.21.32] - 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. ---> System.ApplicationException: An error has occured while sending you an e-mail. Please try again, if the problem persists, please contact us. ---> System.Net.Mail.SmtpException: 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
at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response)
at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, String from)
at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception)
at System.Net.Mail.SmtpClient.Send(MailMessage message)
at MonoSoftware.Core.Mail.MailSender.SendMail(MailMessage mailMsg)
--- End of inner exception stack trace ---
at MonoSoftware.MonoX.Mail.MonoXMailSender.SendMail(MailMessage mailMsg)
at MonoSoftware.Core.Mail.MailSender.SendMail(String toAddress, String title, String htmlContent, String plainContent)
at MonoSoftware.MonoX.ModuleGallery.MembershipEditor.#Jp(Object sender, EventArgs e)
--- End of inner exception stack trace ---
at MonoSoftware.MonoX.ModuleGallery.MembershipEditor.#Jp(Object sender, EventArgs e)
at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
[/log end]
Any help is GREATLY appreciated.
This content has not been rated yet.
95
Reputation
11
Total posts