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.
When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:
You may also want to review the installation or upgrading documentation.
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 retry2012-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 hostat 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)
I'm presuming you've changed the e-mails and domain names in the content you've copied here?
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.
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.