Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Unable to Send Mail in DNN 5.5Unable to Send Mail in DNN 5.5
Previous
 
Next
New Post
8/25/2010 3:21 PM
 
It seems that there are dozens of threads in the forums about email issues, and most of them are pretty simply relaying type issues.  However, I have one that doesn't seem to line up with this.  I have several DNN installations from 4.94 on up on this same server all identical  SMTP settings.  All of the other installations but the DNN 5.5. work flawlessly. I can send a SMTP test email in Host > Host Settings.  However if I send using Admin > Newsletters or any other module I have a delay of around a minute, I get a message that the email could not be sent, and I see an error in the event logs.  I've tested just about every configuration possible and have boiled it down to the following facts:
  • This installation was originally DNN 5.4.4 and we had the issue with this DNN version. We upgraded to DNN 5.5 after we saw an excellent blog post from Chad Nash and the issue remains.
  • No URL rewriting is being done.  We were using the URL Master module, but it is now disabled.
  • The admin and host emails are both set to valid email accounts on the server, but in our tests this did not make any difference.
  • The exact same SMTP settings are being used on our other DNN installations on this same server without an issue.
  • We run our own mail server (MailEnable Enterprise 4.2.4), located on a seperate physical box, and it is configured properly to allow relay from the web server's IP.
  • I have also tested using authenticated SMTP and this didn't make a difference.  
  • If I restart the application in Host > Host Settings I can get email sent by Admin > Newsletters to work for a few times.  After a a seemingly random number of tests (I have seen it send 5 -30 without fail) it starts to fail again. 
  • From what I can tell, I cannot send again until the application pool recycles.
  • When I can get some emails to work in Admin > Newsletters after a application restart, it sends out a "SMTP Configuration Test" email each time I send email from Admin > Newsletters.
  • When I can get it to work, I am able to send to email addresses local to the mail server and remote addresses.
  • I can ALWAYS send a SMTP test email in Host > Host Settings.
  • I get one of the two errors in the event log after each failure:
============================================

AssemblyVersion
: 5.5.0
PortalID: 6
PortalName: Go Find the Answer
UserID: 3
UserName: shackney
ActiveTabID: 237
ActiveTabName: Newsletters
RawURL: /Admin/Newsletters.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.gofindtheanswer.com/Admin/Newsletters.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 1636c128-7a64-43a3-a110-8f26cdf1a941
InnerException: The operation has timed out.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Net.Mail.SmtpClient.Send
StackTrace:
Message: System.Net.Mail.SmtpException: The operation has timed out. at System.Net.Mail.SmtpClient.Send(MailMessage message) at DotNetNuke.Services.Mail.Mail.SendMail(String MailFrom, String MailTo, String Cc, String Bcc, String ReplyTo, MailPriority Priority, String Subject, MailFormat BodyFormat, Encoding BodyEncoding, String Body, List`1 Attachments, String SMTPServer, String SMTPAuthentication, String SMTPUsername, String SMTPPassword, Boolean SMTPEnableSSL)
Source:
Server Name: NS2

============================================

AssemblyVersion: 5.5.0
PortalID: 6
PortalName: Go Find the Answer
UserID: 3
UserName: shackney
ActiveTabID: 237
ActiveTabName: Newsletters
RawURL: /Admin/Newsletters.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.gofindtheanswer.com/Admin/Newsletters.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 43212b84-2f9c-47c5-b794-c9e136053907
InnerException: Failure sending mail.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Net.Sockets.NetworkStream.Read
StackTrace:
Message: 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.CheckCommand.Send(SmtpConnection conn, String& response) at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception) at System.Net.Mail.SmtpClient.Send(MailMessage message) --- End of inner exception stack trace --- at System.Net.Mail.SmtpClient.Send(MailMessage message) at DotNetNuke.Services.Mail.Mail.SendMail(String MailFrom, String MailTo, String Cc, String Bcc, String ReplyTo, MailPriority Priority, String Subject, MailFormat BodyFormat, Encoding BodyEncoding, String Body, List`1 Attachments, String SMTPServer, String SMTPAuthentication, String SMTPUsername, String SMTPPassword, Boolean SMTPEnableSSL)
Source:
Server Name: NS2

============================================

So, does anyone have any ideas about this?  Any direction for troubleshooting?  I sure appreciate it!

Spence
 
New Post
8/27/2010 11:53 AM
 
Wow...the silence is deafening. Any ideas at all?
 
New Post
8/27/2010 12:25 PM
 
Spence, we will be investigating this item as a high priority item for the next release.

My comments are my own and are offered WITHOUT PREJUDICE

Shaun Walker
http://www.siliqon.com
 
New Post
8/27/2010 12:33 PM
 
do you experience same behavior in sync and async mode? According to the vault, there have been no changes in Newsletter.ascx.vb, SendTokenizedBuldkmail.vb or mail.vb since 5.4.3 code.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
8/27/2010 2:40 PM
 
Shaun, thanks so much for your willingness to escalate this.  I am happy to help in any way we can.  We own all of our own servers so we have complete control if you need any sort of diagnostics.

Sebastian, I just ran around 20 back-to-back tests in Synchronous and Asynchronous modes and I cannot find a definite pattern, however it seems that the problem *may* be related to the Asynchronous mode .  In these 50 tests it failed 5 times, all using the Asynchronous option.    On two of the tests I did get a slightly different error message in the Event Viewer:

AssemblyVersion: 5.5.0
PortalID: 6
PortalName: Go Find the Answer
UserID: 3
UserName: shackney
ActiveTabID: 237
ActiveTabName: Newsletters
RawURL: /Admin/Newsletters.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.gofindtheanswer.com/Admin/Newsletters.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 25511117-ac0e-4267-a59e-513d0d5381eb
InnerException: Failure sending mail.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Net.Sockets.Socket.DoConnect
StackTrace:
Message: System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 192.168.6.200:25 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) --- End of inner exception stack trace --- at System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout) at System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback) at System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback) at System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout) at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port) at System.Net.Mail.SmtpClient.Send(MailMessage message) --- End of inner exception stack trace --- at System.Net.Mail.SmtpClient.Send(MailMessage message) at DotNetNuke.Services.Mail.Mail.SendMail(String MailFrom, String MailTo, String Cc, String Bcc, String ReplyTo, MailPriority Priority, String Subject, MailFormat BodyFormat, Encoding BodyEncoding, String Body, List`1 Attachments, String SMTPServer, String SMTPAuthentication, String SMTPUsername, String SMTPPassword, Boolean SMTPEnableSSL)
Source:
Server Name: NS2

============================================================

AssemblyVersion: 5.5.0
PortalID: 6
PortalName: Go Find the Answer
UserID: 3
UserName: shackney
ActiveTabID: 237
ActiveTabName: Newsletters
RawURL: /Admin/Newsletters.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.gofindtheanswer.com/Admin/Newsletters.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 8148118c-6b93-4232-bfdd-415918784bca
InnerException: Failure sending mail.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Net.Sockets.NetworkStream.Read
StackTrace:
Message: 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.CheckCommand.Send(SmtpConnection conn, String& response) at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception) at System.Net.Mail.SmtpClient.Send(MailMessage message) --- End of inner exception stack trace --- at System.Net.Mail.SmtpClient.Send(MailMessage message) at DotNetNuke.Services.Mail.Mail.SendMail(String MailFrom, String MailTo, String Cc, String Bcc, String ReplyTo, MailPriority Priority, String Subject, MailFormat BodyFormat, Encoding BodyEncoding, String Body, List`1 Attachments, String SMTPServer, String SMTPAuthentication, String SMTPUsername, String SMTPPassword, Boolean SMTPEnableSSL)
Source:
Server Name: NS2
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Unable to Send Mail in DNN 5.5Unable to Send Mail in DNN 5.5


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out