HomeHome Product Discus... Product Discus...SmithCartSmithCartEmails never get sentEmails never get sent
Previous
 
Next
New Post
5/30/2010 3:41 PM
 

Hi,

Emails are never getting sent when orders are placed. For each email that the Cart should be sending, I'm getting one these in the event log:

AssemblyVersion: 5.2.3
PortalID: 0
PortalName: xxx
UserID: 1
UserName: host
ActiveTabID: 81
ActiveTabName: Junior Infants
RawURL: /Shop/SchoolBooks201011/JuniorInfants/tabid/81/ctl/Confirm/mid/462/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.xxxxxxx.xxx/Shop/SchoolBooks201011/JuniorInfants/tabid/81/ctl/Confirm/mid/462/Default.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: e1e4c87f-af4a-4a15-a4aa-e8789e3f0739
InnerException: Failure sending mail.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Net.Mail.SmtpReplyReaderFactory.ProcessRead
StackTrace:
Message: 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.CheckCommand.Send(SmtpConnection conn, String& response) at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, String from) 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: IP-0AE45F34

I know my DNN SMTP settings are setup ok as I can get the Test email and I'm using the same email address/login for the Cart as I am on DNN. My DNN hosting is in an Amazon ECS instance that is all mine (i.e. not shared). Ports 25 and 110 are opened in both the Amazon security group and on the Windows firewall (both in and out).

Any ideas?

Thanks,

Jeff

 
New Post
5/31/2010 6:43 AM
 

Issue sorted. It was a transient problem at the mail server end of things. However, this does raise a couple of points:

  • Is it possible to resend emails that fail to send? I dont want customers complaining they didn't get confirmation emails etc.
  • Are there plans to make sending emails more resilient? Perhaps submit them to a queueing system that runs in the background.

Thanks,

Jeff

 
New Post
5/31/2010 10:47 PM
 

Glad to hear you sorted out the issue with your mail server.

1. Yes you can resend the confirmation emails from the manage orders screen there is a button at the bottom of the screed titled "Send Email"

2. No plans to implement a mail queueing system as it would require a third party queueing server that people would have to purchcase and would complicate the cart setup. We wouldnt want to recreate the wheel and write a queueing server.

If you dont mind post what you did to solve your email server issue so others having similar problems can benefit. Configuring a mail server to send emails from a website especially if the website is running on a different ip address then your mail server can take some configuration to get working. Here are some forum posts that have helped others:

http://www.smith-consulting.com/forum...

http://www.smith-consulting.com/forums/forumid/1/postid/176/scope/posts.aspx#176


http://www.smith-consulting.com/forum...

http://www.smith-consulting.com/forum...


At your service,
Dave Smith
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartEmails never get sentEmails never get sent