1) You might need to add enableSsl="true" in the smtp/network node of web.config.
2) Check the log if email is failing
3) Try sending test email from your own controller and put it in try catch to see if email is successfully going or failing due to any specific reason.
I am new to umbraco so not sure how to do all the points.
1) Could not find this in the web.config file. Where do I find these settings?
2) Yes, the email failed
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
Health checked the connection
SMTP settings are configured correctly and the service is operating as expected.
Error
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
It may be this particular email provider. Is that a possibility?
namespace MyProject.EventHandlers
{
public class RegisterEvents : ApplicationEventHandler
{
protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
{
//Listen for when content is being saved
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
}
}
}
form workflow not sending email
I have tried several ways to set this up but it does not send emails
I am using the following in the config
The health check is fine SMTP settings are configured correctly and the service is operating as expected.
I receive an entry in the form file.
The workflow is set up
Anyone with any ideas what i can try to make this work?
Hi Mark,
Please can you try below options:-
1) You might need to add enableSsl="true" in the smtp/network node of web.config.
2) Check the log if email is failing
3) Try sending test email from your own controller and put it in try catch to see if email is successfully going or failing due to any specific reason.
Please let me know how it goes?
Regards, Shaishav
Thanks Shaishav
I am new to umbraco so not sure how to do all the points.
1) Could not find this in the web.config file. Where do I find these settings?
2) Yes, the email failed 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
3) Do not know how to do this.
Hi Mark,
Please can you update config with enableSsl="true" and try,
Error from log suggest that your SMTP is not setup correctly causing the issue.
Regards,
Shaishav
Thanks Shaishav
I updated the config file.
Health checked the connection SMTP settings are configured correctly and the service is operating as expected.
Error 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
It may be this particular email provider. Is that a possibility?
Hi Mark,
Yes it is possible. Try adding below code when project is started
You can refer this link:- https://our.umbraco.com/Documentation/Reference/Events/Application-Startup-v7 and add code in ApplicationStarted.
Regards,
Shaishav
Thanks Shaishav
We tested another email account and it worked without your new code option. It seems worldsecureemail.com blocks anyone trying to use it
Nice Mark! - lets close this issue.
Have a nice weekend.
Cheers,
Shaishav
is working on a reply...