Post Installation Email Configuration Troubles

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.
9/3/2011 3:25:24 PM
Gravatar
Total Posts 5

Post Installation Email Configuration Troubles

My name is Jeremy. I've installed version 2.3.6.7 on my site and am experiencing difficulties in getting the email configured properly.

I've included relevant excerpts from the User and Web config files below as well as the application's log file entry. I cleared the log prior to trying to send an email so it's all that is in the log. I've reviewed the Email Configuration article but I must be missing something. According to my host, I should need to enter the server address and standard port 25. No username/pwd is required. Any help is greatly appreciated. (Domain name intentionally masked below)

Host Info:
IIS7 (Running in Classic Mode)
MySQL
.NET 4

User.Config Setting:
<add key="SMTPServer" value="smtpmailer.hostek.net" />
<add key="SMTPRequiresAuthentication" value="false" />
<add key="SMTPPort" value="25" />
<add key="SMTPUser" value="" />
<add key="SMTPPassword" value="" />

Web.Config Setting:
<system.net>
<mailSettings>
<smtp from="noreply@mydomain.com">
<network host="smtpmailer.hostek.net" port="25" password="" userName="" />
</smtp>
</mailSettings>
</system.net>

CMS Log File Entry:
2011-09-03 14:45:13,125 ERROR mojoPortal.Net.Email - error sending email to noreply@mydomain.com from web@mydomain.com, will retry
2011-09-03 14:45:16,135 ERROR mojoPortal.Net.Email - all retries failed sending email to
noreply@mydomain.com from web@mydomain.com, message was: Webmaster<br />web@.com<br /><br /><p>
test message</p>
<br /><br />HTTP_USER_AGENT: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)<br />
System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: Unable to read data from the transport connection: net_io_connectionclosed.
at System.Net.Mail.SmtpReplyReaderFactory.ProcessRead(Byte[] buffer, Int32 offset, Int32 read, Boolean readLine)
at System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader caller, Boolean oneLine)
at System.Net.Mail.SmtpReplyReaderFactory.ReadLine(SmtpReplyReader caller)
at System.Net.Mail.SmtpConnection.GetConnection(ServicePoint servicePoint)
at System.Net.Mail.SmtpClient.Send(MailMessage message)
--- End of inner exception stack trace ---
at System.Net.Mail.SmtpClient.Send(MailMessage message)
at mojoPortal.Net.Email.Send(SmtpSettings smtpSettings, MailMessage message)


 

9/5/2011 9:29:11 AM
Gravatar
Total Posts 18439

Re: Post Installation Email Configuration Troubles

Hi,

Make sure the default email from address is configured correctly in Administration > Site Settings

Your email account probably requires you to send it from a specific address or at least a valid address for the email domain.

Other than that I would refer you to your host for help, possibly they may need to configure the mail server to allow relaying from the web server.

Note that only the user.config settings are needed, the ones in Web.config in the system.net section are no longer used in mojoPortal so we don't need the settings in 2 places anymore.

But when you edit settings in user.config the runtime will not automatically detect changes to that file so after editing user.config you need to touch Web.config to make it reload settings, ie type a space in it and save it.

Hope that helps,

Joe

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