saucepleez / taskt

taskt (pronounced 'tasked' and formely sharpRPA) is free and open-source robotic process automation (rpa) built in C# powered by the .NET Framework
http://www.taskt.net/
1.09k stars 350 forks source link

Error: System.Net.Mail.SmtpException: Server does not support secure connections. #230

Closed aldolares closed 3 years ago

aldolares commented 4 years ago

Hello

I'm trying to send an email on a server that does not support secure connections, and fails. By looking at the source code at taskt/Core/Automation/Commands/SMTPSendEmailCommand.cs I notice that EnableSsl flag is always true, var client = new SmtpClient(varSMTPHost, int.Parse(varSMTPPort)) { Credentials = new System.Net.NetworkCredential(varSMTPUserName, varSMTPPassword), EnableSsl = true };

I think that this should be overridable (may using the SSL Validation option)

This is an extract of the error logs,

2020-08-06 09:51:51.101 -05:00 [INF] Result Code: Error 2020-08-06 09:51:51.101 -05:00 [INF] Error: System.Net.Mail.SmtpException: Server does not support secure connections. at taskt.Core.Automation.Engine.AutomationEngineInstance.ExecuteCommand(ScriptAction command) at taskt.Core.Automation.Engine.AutomationEngineInstance.ExecuteScript(String data, Boolean dataIsFile)