SMTP- gmail account

In send SMTP for gmail account, can I know how to create email and password , either as variables or arguments?

Thanks.

@sushmithaelluru
In send SMTP Mail Messages Activity you can directly set your Email and password in the property panel.
You can even send your Email and password as a variable and even as an argument too.

Let me know if you have any clarifications or queries.

Yes @abhyudai_munna, should I keep password as securestring data type or simply string?

@sushmithaelluru you can use Get password activity it will store your password in encrypted format using datatype string

@sushmithaelluru
Simple String will only work here.
If you want to securely pass the password, you can use get credentials Activity which will return a secure string and then convert it to a String and pass it to SMTP Activity.

Ya @indra, Can I use separate activity, for password to send email ?

Ok @abhyudai_munna, but if I keep value to the password with string data type, it is showing that
“Compile error encountered processing expression”.

yes you can use and pass variable in password property

@sushmithaelluru
could you please share us with the sample workflow you built so that i can understand the issue clearly?
(With dummy credentials)

OK.
Main.xaml (4.8 KB)

I have replicated it at my end it works perfectly fine.
could you provide us with the error screenshot what you are getting?

Yes, ok.

Hi @sushmithaelluru,

Here is an example for SMTP email account

Regrads
Balamurugan.S

1 Like

Thanks @balupad14, can I know what is there inside the zip file you have given?

Try changing the port number to 465 and give it a try.
let me know if it works.

OK abhyudai.

But am getting the following error if I give 465 port.

Hi @sushmithaelluru,

There is xl sheet with email. It reads the xl sheet will send the mail which comes from the xl sheet.

Then main sheet is SelectingRowsFromExcelMain.xmal

Regards
Balamurugan.S

Hi @sushmithaelluru,

Here is simple example to send the mail from gmail.

File : SendMailsushmithaelluru.zip (1.5 KB)

Regards
Balamurugan.S