ISSUE: Send Email step error: 'Error during email construction or sending'

Last modified:


Overview

The error below occurs on the Send Email step.

Execute_SendEmailToUser: Error during email construction or sending. [ProcessResult]

Image 187

The backend Exchange logs will show following error:

2023-06-21T12:25:22|ERROR|schiller|192.168.150.254|T:72 |Execute_SendEmailToUser   | ||1    |47c92c09-6aad-4b87-8cbe-f1da00b4435d| 
||Execute_SendEmailToUser: Error during email construction or sending.
EXCEPTION: 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 172.00.012.10:25
at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.End(IAsyncResult result)
at System.Net.Mail.SmtpTransport.EndGetConnection(IAsyncResult result)
at System.Net.Mail.SmtpClient.ConnectCallback(IAsyncResult result)
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at cloudficient.EVComplete.Module.Exchange.Helpers.EmailSenderHelper.d__2.MoveNext() in E:\_w\o\1\2\s\EV2O365.OnPrem.Exchange\Helpers\EmailSenderHelper.cs:line 25
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at cloudficient.EVComplete.Module.Exchange.Executors.MigrationProcessSteps.Execute_SendEmailToUser.Phase1() in E:\_w\o\1\2\s\EV2O365.OnPrem.Exchange\Executors\MigrationProcessSteps\Execute_SendEmailToUser.cs:line 122

This error occur because the Bridgehead server is not allow to use SMTP connectors to send

Solution

Whitelist the BH server IP to allow send the emails on behalf of SMTP server.

After it's configured you can restart the failed step for affected users.


Is this article helpful for you?