Sending mutiple email at one go from Array

Hi, I am receiving multiple email id’s and need to send email to all those id’s together. What can I do before this send activity for this .
ss-1:-


ss-2:-

@shashank_dullu

Can you please tell which send email activity is that?

if it needs array then use in_Config("strSender").ToString.Split(";"c).ToArray

cheers

1 Like

Hi @shashank_dullu

Which Mail activity are you using? please specify and try using Send SMTP Mail Message activity and give the same config parameters. It should work

Check out this thread. This will help you sort the error.

Regards

UiPath Gsuite Activity

@shashank_dullu

Use this

cheers

1 Like

Can’t use SMTP .its G-suite activity .complete project is using Gsuite

Hi @shashank_dullu

Try this way:
Before Send Email take an assign activity and give the below way:

emailArray= in_Config("strSender").ToString.Split(";"c).ToArray

emailArray is of DataType Array(System.String)

Regards

@Anil_G - Data is already in string array format . you still want to use this before send email activity .

Hi @shashank_dullu

Try this way:

in_Config("strSender")(0).ToString.Split(";"c)

Pass the above syntax in Send Email activity.

Regards

@shashank_dullu

it is not in that format…if you keep semicolon in between strings and inclose in curl braces then it is considered as one string but not multiple array

eg:

{"A;B"} is different from {"A";"B"}

what you currently did is the first one…the formula with split will help you convert string to array like the second format

Hope this clarifies

cheers

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.