Registration email notification generates "System.Net.Mail.SmtpException: Failure sending mail" error

Description

Brief Description of Issue:

When an external email notification is sent to a new registrant that they've received a badge an error is sometimes logged into log.resources file

Clear Steps to Reproduce:

Step 1 - I log in as Host
Step 2 - I setup SMTP as localhost to use with PaperCut
Step 3 - I hit the site as Anonymous user
Step 4 - I register on the iste
Step 5 - I check Papercut for Welcome Email for new user
Step 6 - I check log.resources file for any errors

Actual Result:

Actual Result 1 - Welcome email to new registrant is sent
Actual Result 2 - A notification email is sent "Congratulations! You have earned a new Badge - Getting started"
Actual Result 3 - I do get an error in log.resource file about 90 seconds BEFORE the Welcome email appears in Papercut:

2013-03-14 09:44:07,224 [TST-KG-WSRV8A][Thread:49][ERROR] DotNetNuke.Services.Exceptions.Exceptions - System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: Unable to read data from the transport connection: An established connection was aborted by the software in your host machine. ---> System.Net.Sockets.SocketException: An established connection was aborted by the software in your host machine

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, Boolean allowUnicode, 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.SendMailInternal(MailMessage mailMessage, String subject, String body, MailPriority priority, MailFormat bodyFormat, Encoding bodyEncoding, IEnumerable`1 attachments, String smtpServer, String smtpAuthentication, String smtpUsername, String smtpPassword, Boolean smtpEnableSSL)

Expected Result:

Expected Result 1 - Should not be any errors in log.resources file

Note:

I only have LOCALHOST in my stmp server settings

QA Test Plan

None

Activity

Show:

Ken Grierson June 17, 2014 at 11:10 PM

CNR
Evoq Suite 2.0.1 build 520

Angel Grueso June 12, 2014 at 2:46 PM

Using build #7.3.1.183, I cannot reproduce this issue.
All messages have beensent successfully and there is not SmtpException in log file.

Notice that I'm using the Pickup Directory SMTP Configuration that .NET Framework offers. See the post: http://msdn.microsoft.com/en-us/library/ms164241.aspx

Ken Grierson April 14, 2014 at 11:30 PM

Should have never been closed

This reproduces in Social 2.0.0 build 791

Cannot Reproduce

Details

Assignee

Reporter

Fixed in Build

Story Points

Components

Sprint

Fix versions

Affects versions

Priority

Created March 14, 2013 at 1:56 PM
Updated June 18, 2014 at 6:02 PM
Resolved June 12, 2014 at 2:47 PM