Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Anyone encountered mails gone missing and PostSubmissionActorBase errors?

Vote:
 

Hi!

Has anyone else encountered the error below and managed to resolve it?

2021-09-16 15:06:22,206 [63] ERROR EPiServer.Forms.Core.PostSubmissionActor.PostSubmissionActorBase: Failed to send email
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, MailAddress from, Boolean allowUnicode)
   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 EPiServer.Forms.Implementation.Actors.SendEmailAfterSubmissionActor.SendMessage(EmailTemplateActorModel emailConfig)
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, MailAddress from, Boolean allowUnicode)
   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 EPiServer.Forms.Implementation.Actors.SendEmailAfterSubmissionActor.SendMessage(EmailTemplateActorModel emailConfig)

We have this weird case were mails have gone missing after forms have been submitted, but only sometimes. Therefore, since some mail arrive, the mail configuration in Web.config should be correct.

Is there some way to enable more EPiServer Forms logging? Or any other suggestion?

This is very troublesome because some people rely on the mails being delivered correctly.

#264274
Oct 01, 2021 12:07
Vote:
 

Looking at the error your log is spitting out which seems to be a connection issue lead me to https://stackoverflow.com/questions/20228644/smtpexception-unable-to-read-data-from-the-transport-connection-net-io-connect and https://stackoverflow.com/questions/1011245/how-can-i-send-emails-through-ssl-smtp-with-the-net-framework/1014876#1014876 

Is this in the DXP? Maybe you have a configuration issue if it's not

#264278
Oct 01, 2021 13:58
Vote:
 

Thanks for answering, Scott!

We're running our site on premise, on four web servers. The mail settings in web.config look like this:

<system.net>
	<mailSettings>
		<smtp from="<VALID_FROM_ADDRESS>" deliveryMethod="Network"><network host="<VALID_MAIL_SERVER>" port="25" userName="" password="" defaultCredentials="false" /></smtp>
	</mailSettings>
</system.net>

(We have our own mail server.)

Is there some way to extend the logging of the EPiServer Forms addon? Or maybe enable som retry mechanism?

#264394
Oct 04, 2021 7:44
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.