Email sending failed using SMTP activity via UIpath Studio

Hello Team,


Email sending failed using “send SMTP mail message” activity, getting given error “The handshake failed due to an unexpected packet format” message. I have tried using all the options in the secure-connection property.

Jaikee Soni

I am having valid client SMTP server name and port to send email, but still getting error.
I have tested same smtp server details using VBA code and its working fine.
Sub test()
sMailServer = “” 'Not just any old smtp
sMailFromAddress = “
sMailToAddress = “

Set ObjMessage = CreateObject(“CDO.Message”)
sToAddress = “
sSubject = “Subject”
sBody = “MailBody”

ObjMessage.subject = sSubject
ObjMessage.From = sMailFromAddress
ObjMessage.To = sToAddress
' = sCCAddress
ObjMessage.TextBody = sBody
'ObjMessage.AddAttachment sMailAttachment
ObjMessage.Configuration.Fields.Item(“”) = 2
ObjMessage.Configuration.Fields.Item(“”) = sMailServer
ObjMessage.Configuration.Fields.Item(“”) = 25
'More info:
End Sub

Could you please share a sample xaml file, to understand which all property i need to select in send email SMTP activity.


Added all values to mandatory properties but still getting error.
Any idea about given “ObjMessage.Configuration.Fields.Item(“”) = 2” value where needs to set in UiPath SMTP activity.

@aksh1yadav @ddpadil team, could you please help Jaikee Soni

SMTP properties:

SMTP does not required much details. make sure your server is stopping to use mail schema.
if you configure outlook on your machine then you can use Send outlook Mail Message activity.
it will automatically pick up all details from your local outlook configuration file.

Please give a try if you can.

Hello Team,

Thanks for the updates.
Please find the screen shot of SMTP activity from my end. Please check and let me know if any correction required.
Do any changes need to be required at SMTP server side. Please let me know so i can asked the client to makes such changes.


while giving LOGON email and password, i’m getting from Assets so it will be variables as email and password. Is it a problem?
Because while doing that i’m getting error saying that Authentication is too weak etc…