Send SMPT error message: AuthenticationException

email
activities

#1

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):


#2

Check this thread also


#3

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?


#4

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