SMTP mail message - without credentials send Email

Hi guys,

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?

Thanks in advance.

1 Like

Can someone give me the fix for this?

Hi, what is the activity you want to use for this?

Need to use “SendSMTPMailMessage” activity

So did you try just not supplying the credentials?

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.

image image

Error 535 means: authentication required.

I can achieve the same if i supply credentials.

ok, maybe try using a execute code activity like this:

string to = "";
    string from = "";
    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);

    catch (Exception ex)
        Console.WriteLine("Exception caught in CreateTestMessage2(): {0}",

Still getting same authentication error.

Also can some one tell me how this sendSMTPmailmessage works in terms of authentication?

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.

tried other options but still no luck :frowning:

when i send smtp mail with pdf attachment in unit testing it work properly but when i use same code in the flow of project.

(Send smtp mail message value can’ot be null parameter name)
Please sir help me

While sending pdf attachment in unit testing, what are the properties you have updated? please share.

same file if i using in workflow of project it shows me error

Remove the from email address and also check if that email and test machine has proper rights?

sir i am not able to understand “test machine has proper rights”.means computer name

Nope…Test machine should have proper authentication/rights to send SMTP mails from BOT.