SMTP- gmail account

activities
studio

#1

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

Thanks.


#2

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


#3

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


#4

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


#5

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


#6

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


#7

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


#8

yes you can use and pass variable in password property


#9

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


#10

OK.
Main.xaml (4.8 KB)


#11

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


#12

Yes, ok.


#13


#14

Hi @sushmithaelluru,

Here is an example for SMTP email account

Regrads
Balamurugan.S


#15

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


#16

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


#17

OK abhyudai.


#18

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


#19

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


#20

Hi @sushmithaelluru,

Here is simple example to send the mail from gmail.

File : SendMailsushmithaelluru.zip (1.5 KB)

Regards
Balamurugan.S