smtp mail settings

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.
8/28/2012 4:39:47 PM
Gravatar
Total Posts 19

smtp mail settings

I setup the smtp settings. Below is the error message when I try to send an email. Can someone please help

 

2012-08-29 09:30:16,802 ERROR 122.56.122.78 - en-NZ - /contact-us.aspx - mojoPortal.Net.Email - error sending email to support@domain.com from noreply@domain.com, will retry
2012-08-29 09:31:20,008 ERROR 122.56.122.78 - en-NZ - /contact-us.aspx - mojoPortal.Net.Email - all retries failed sending email to support@domain.com from noreply@domain.com, message was: test<br />test@domain.com<br /><br />test<br /><br />HTTP_USER_AGENT: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)<br />REMOTE_HOST: 122.56.122.78<br />REMOTE_ADDR: 122.56.122.78<br />LOCAL_ADDR: 192.168.1.90<br />
System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.DelegatedStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at System.Net.BufferedReadStream.Read(Byte[] buffer, Int32 offset, Int32 count)
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)

8/31/2012 5:37:03 AM
Gravatar
Total Posts 355

Re: smtp mail settings

I'm presuming you've changed the e-mails and domain names in the content you've copied here?

8/31/2012 1:39:08 PM
Gravatar
Total Posts 2253

Re: smtp mail settings

The error message "Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host." leads me to believe this is an issue with your mail server or you are trying to connect to a server that is available but not is not an email server. Verify that your SMTP settings have a proper hostname, port, and SSL settings for the connection to the mail server. You can verify a mail server will allow SMTP traffic by using the Diagnostic tool over at MX Toolbox. If you have desktop access to the server your website is running on, you can use TELNET to test that servers connection to the mail server (read more here).

HTH,
Joe D.

9/1/2012 6:42:52 AM
Gravatar
Total Posts 18439

Re: smtp mail settings

In addition to what Joe D said, it could be an smtp server that is locked down and only allows relaying from specific ip addresses. In either case you'll need to verify your smtp server configuration and make sure your settings are correct. 

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