Execute .vbs file in Uipath

Hi …

Manually we are sending the SMTP mail through VBS file. Can we invoke that VBS file in Uipath?

Thanks in advance…!!

1 Like

Try using Start process activity and choose vbs file

Hi @olgu,

I shared my script below… Can u please help how to pass arguments?

Set objEmail = CreateObject(“CDO.Message”)

With objEmail
.From = "Abishek@xyz.com"
.To = "Someone@xyz.com"
.Subject = “Success-process”
.Textbody = “Files has been successfully processed.” & VbCrLf & VbCrLf & VbCrLf & “Thanks,” & VbCrLf & “Application Support team.”
.Configuration.Fields (“http://schemas.microsoft.com/cdo/configuration/smtpserver”) = “relaysmtp.xxx.yyy”
.Configuration.Fields(“http://schemas.microsoft.com/cdo/configuration/sendusing”) = 2
.Configuration.Fields.Update
.Send
End With

Thanks in advance!!!

Hi all,

I shared my script below… Can anyone please help on this?

Set objEmail = CreateObject(“CDO.Message”)

With objEmail
.From = "Abishek@xyz.com"
.To = "Someone@xyz.com"
.Subject = “Success-process”
.Textbody = “Files has been successfully processed.” & VbCrLf & VbCrLf & VbCrLf & “Thanks,” & VbCrLf & “Application Support team.”
.Configuration.Fields (“http://schemas.microsoft.com/cdo/configuration/smtpserver”) = “relaysmtp.xxx.yyy”
.Configuration.Fields(“http://schemas.microsoft.com/cdo/configuration/sendusing”) = 2
.Configuration.Fields.Update
.Send
End With

Thanks in advance!!!