Send SMPT error message: AuthenticationException

Scenario:

Error when trying to send SMTP email

The SMTP email works from the PC I’m trying to do it with the robot. I tried it with the following vba code:

Set objEmail = CreateObject("CDO.Message")
objEmail.From = Inputbox("Spefify the FROM: address","VB SMTP","testfrom@mail.com")
objEmail.To = Inputbox("Spefify the TO: address","VB SMTP","testto@mail.com")
objEmail.Subject = Inputbox("Spefify the SUBJECT: address","VB SMTP","Message Subject")
objEmail.Textbody = Inputbox("Spefify the MESSAGE BODY:","VB SMTP","This is the email body")
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") =     Inputbox("Spefify the SMTP server: name or IP address","VB SMTP") 
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objEmail.Configuration.Fields.Update
objEmail.Send

When I try in UiPath I get the following error:

The only difference I see between the vba code and UiPath is the logon (email & password) section in the UiPath activity, but it does not make any difference if I leave it blank or not.

Any ideas?

Steps to reproduce:

Current Behavior:

Expected Behavior:

Studio/Robot/Orchestrator Version:

Last stable behavior:
Last stable version:
OS Version:
Others if Relevant: (workflow, logs, .net version, service pack, etc):

Check this thread also

Thanks for the link, but I’m not using Gmail, this is a corporate system. The solution to ‘Allow low secure apps checkbox in Gmail’ I cannot apply it.

Is there any other way to tell windows that UiPath is a secure app or do I need to go through IT to enable somehow this option?

i would check with IT on how the smtp server is secured, You may need to install a certificate on the robot machine.

To fix you all issues just follow the steps:

  1. Open your email program
  2. Go through the account menu
  3. Click on the email account an go through the properties menu
  4. Click on the general tab
  5. Ensure the email address as a valid address
  6. Go through the server tab
    Contact us by dialing 1-800-789-560 to fix all the technical seatbacks…
1 Like