Email sending failed using SMTP activity via UIpath Studio

studio

#1

Hello Team,

Send%20email%20using%20SMTP%20activity

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.

Thanks,
Jaikee Soni


#2

https://portal.smartertools.com/kb/a2862/smtp-settings-for-outlook365-and-gmail.aspx


#3

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 = “mpsmtp2.kkr.com” 'Not just any old smtp
sMailFromAddress = "jaikee.soni@kkr.com"
sMailToAddress = "jaikee.soni@kkr.com"

Set ObjMessage = CreateObject(“CDO.Message”)
sToAddress = "jaikee.soni@kkr.com"
sSubject = “Subject”
sBody = “MailBody”

ObjMessage.subject = sSubject
ObjMessage.From = sMailFromAddress
ObjMessage.To = sToAddress
'ObjMessage.cc = sCCAddress
ObjMessage.TextBody = sBody
'ObjMessage.AddAttachment sMailAttachment
ObjMessage.Configuration.Fields.Item(“http://schemas.microsoft.com/cdo/configuration/sendusing”) = 2
ObjMessage.Configuration.Fields.Item(“http://schemas.microsoft.com/cdo/configuration/smtpserver”) = sMailServer
ObjMessage.Configuration.Fields.Item(“http://schemas.microsoft.com/cdo/configuration/smtpserverport”) = 25
ObjMessage.Configuration.Fields.Update
ObjMessage.Send
'More info: http://msdn.microsoft.com/en-us/library/ms
End Sub

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

Thanks


#4

#5

Added all values to mandatory properties but still getting error.
Any idea about given “ObjMessage.Configuration.Fields.Item(“http://schemas.microsoft.com/cdo/configuration/sendusing”) = 2” value where needs to set in UiPath SMTP activity.


#6

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


#7

image
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.


#8

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.
SMTP%20mail%20activity%20

Regards,
Jaikee


#9

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…