Blog email error

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
7/3/2008 8:17:35 PM
Gravatar
Total Posts 36
Anchorage, Alaska

Blog email error

I was testing the Blog module.  I posted a comment.  Then, I clicked on the comment and another editor popped I.

I entered data and clicked submit.  I think I have my smtp email settings set properly in the user.config and also in the web.config.

Do you have any suggestions where I should look to check/test my settings?

Server Error in '/MP_MySQL' Application.
--------------------------------------------------------------------------------

must be authenticated

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: DotNetOpenMail.SmtpException: must be authenticated


Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[SmtpException: must be authenticated
]
DotNetOpenMail.SmtpServer.Send(ISendableMessage emailMessage, EmailAddressCollection rcpttocollection, EmailAddress mailfrom) +450
DotNetOpenMail.EmailMessage.Send(SmtpServer smtpserver) +121
mojoPortal.Net.Email.SendEmail(String from, String to, String cc, String bcc, String subject, String messageBody, Boolean html, String priority) +1376
mojoPortal.Net.Notification.SendBlogCommentNotificationEmail(String messageTemplate, String fromEmail, String siteName, String authorEmail, String messageLink) +137
mojoPortal.Web.BlogUI.BlogView.btnPostComment_Click(Object sender, EventArgs e) +835
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +177
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746

 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

7/4/2008 7:15:21 AM
Gravatar
Total Posts 18439

Re: Blog email error

Hi Mike,

If you have this set to false, I would try changing it to true.

<add key="SMTPRequiresAuthentication" value="false" />

I'm using Yahoo business email account which I got when registering my domain through Yahoo Domains. My settings are like this and they work for me, but of course it varies with different email providers.

<add key="SMTPServer" value="smtp.bizmail.yahoo.com" />
<add key="SMTPRequiresAuthentication" value="true" />
<add key="SMTPPort" value="587" />
<add key="SMTPUser" value="***@****" />
<add key="SMTPPassword" value="***" />
<add key="SMTPUseSsl" value="false" />

obviously I've masked out my user name and password

Hope it helps,

Joe

7/4/2008 10:42:39 PM
Gravatar
Total Posts 36
Anchorage, Alaska

Re: Blog email error

I add the key to the user.config file, set it to true, and updated web.config to force a reread.

It solved the problem.  Thanks

You must sign in to post in the forums. This thread is closed to new posts.