i have a requirement to send email through SMTP mail message and our network does not need any credentials to send email using SMTP. But sendSMTPmail message activity not sendign email with out credentials. can some one give some idea to implement the same?
Just tried withtout credentials and getting the error attached.
Also my requirement is the network does not require username & password for SMTP mail service. and bot has to send mail using SMTP.
ok, maybe try using a execute code activity like this:
string to = "jane@contoso.com";
string from = "ben@contoso.com";
MailMessage message = new MailMessage(from, to);
message.Subject = "Using the new SMTP client.";
message.Body = @"Using this new feature, you can send an email message from an application very easily.";
SmtpClient client = new SmtpClient(server);
try
{
client.Send(message);
}
catch (Exception ex)
{
Console.WriteLine("Exception caught in CreateTestMessage2(): {0}",
ex.ToString());
}
Ok, so, if you are sure your SMTP server accepts anonymous requests, then it must be the SecureConnection, go back to uipath activity and change it from Auto to other options.