Uipath email activity for multiple email - uipath

Is it possible to have an array of email addresses (string) to pass into the send email activity on uipath? I can't see a way on the activity, except using the cc but I have 10 email addresses for he same email

You can have multiple to addresses separated by the ; character.
The easiest way to do this is to use string.Join method and construct a string from the array.
https://msdn.microsoft.com/en-us/library/57a79xd0(v=vs.110).aspx

Create Variable ccMail like this
string ccMail="firstMail;secondMail;thirdMail;"
then pass this variable to CC in mail Activity
for Reference:
https://www.c-sharpcorner.com/article/create-a-sequence-project-for-sending-a-mail-using-smtp-activity-by-taking-crede/

Related

Set the FROM name of a mailinglist list in mailman3

Iam using mailman3 and I just want to set a FROM name for my lists. Currently the FROM for lists for example the welcome mail etc. is just the mailaddress like LISTNAME#lists.example.com but I would like to have it like My List <listname#lists.example.com>. I could not find the correct setting here:
https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/config/docs/config.html#schema-cfg
to achieve that and hope there is a solution for that
The mailing list display name is not used when sending service emails (like the welcome email). Also, they are being sent from addresses like listname-request#lists.example.com rather than from the main list's address.
Certain emails like (un)subscription notifications might be sent from an email defined in the site-owner parameter, but they are for list owners, not regular members.

How to read gmail inbox messages and extract the data from the email in a word/excel folder using UiPath?

I'm using gmail account to extract the data, from the body of the mail and I want to store that data in a word/excel folder.
Can someone explain the process to achieve this?
The email body would be like this:
Hello!
First name
John
Last name
Doe
Email
sample#gmail.com
Message
Text
You can read the email using the Get IMAP Mail Message activity and get the Body of Email in a Text then you can use the String manipulation/regex to find the required text and then store it in Excel/Word.
You may need to keep the following things in mind.
You will need to create an App Password by going to your Google Account Settings (https://myaccount.google.com/apppasswords) and use that Password in the Get Mail Message Activity.
To Get the Email Body the EmailMessage.Body property will not work instead you will need to use the EmailMessage.Headers("PlainText") Here EmailMessage is the Each Email Message from the list of Message. Here is the screenshot.
Above If condition is used to check if the Subject of Email which we want to read.
Once you get the Email Body in a String Variable you can use either String Manipulation or Regex to extract the required data from the body of the email and write to the excel or word.
Hope this helps.

Microsoft graph API - empty bccRecipients list

This is the Scenario:
In the same Azure tenant, I used one account (user_1_address) to send emails to the other account (user_2_address) using outlook (o365).
I sent 3 emails, one where user_2_address is BCCed, one CCed, and one when it's the TO recipient.
I'm using Microsoft graph API to get a list of emails received by user_2_address in a specific time range, using this query:
https://graph.microsoft.com/v1.0/users/{<user_2_id>}/messages?$filter=
receivedDateTime ge <some date> and receivedDateTime lt <some other date>
and isDraft eq false
and sender/emailAddress/address ne '<user_2_address>'
I'm getting all the three emails user_2_address had received from user_1_address. But in the email user_2 was BCCed the bccRecipients list is empty, when it should contain user_2_address :(
I have seen this question about sending an email from Gmail and BCC an outlook user:
Microsoft graph API: empty BCC field
In that case, also the bccRecipients list was empty, but it was resolved by saying the BCC is removed when sending the emails from an external source (Gmail in that case). When for me it's not an external source - both users are using outlook in the same tenant.
So my questions are:
Is it the desired behaviour, or is it a bug?
Now, let's say I'm using the query above where I get all emails where the sender is not the user_2_address and it's not a draft. Can I assume that every email I get where user_2_address is not in the ccRecipients and toRecipients lists - that email was BCCed to user_2_address?
Thanks!
The bcc field in a Message is an envelope (P1) recipient only so you should always expect that it will be blank (no matter the context inside a tenant really make no difference). Like the other post referenced if it wasn't blank it would break the RFC and the purpose of a BCC, the only exception is the sent item (which is just a copy of the sent message)
No there are many scenarios that would break that particular logic eg forwarded email is one the comes to mind. You could certainly refine you result set that way, one thing you might want to examine is the X-MS-Exchange-Organization-Recipient-P2-Type: mail header that should get set in your internal to internal scenario (you need to look at the PidTagTransportMessageHeaders extended property to see it)

Transmission api setting wrong To header when specify header_to with multiple recipients

I'm trying to send an email to multiple people(multiple to addresses) and have them all listed in the email clients like a regular email. When I set the header_to field on all recipients to email1#foo.com, email2#foo.com I end up with emails that have a to header set to "First Name" <email1#foo.com, email2#foo.com> which is incorrect.
This shows up as a single person with multiple email addresses in most clients and the header is wrong.
Why is the sparkpost transmission api messing with the header_to field? It's docs say that it uses this in place of generating a To header for you.
After going through every page of docs I could find to try and figure out how sparkpost's backend works I've found that you must omit the Name field on all recipients.
https://developers.sparkpost.com/api/recipient-lists/#header-recipient-object

JMeter - how to simulate an email address AND a confirm email address

I'm trying to setup a JMeter test plan and need to create unique email addresses for submission. I saw this that suggested using the Random Function.
The problem is that I need to generate an email address AND reference that same created email in the confirm_email field. I need to randomly generate an email address and then use it twice. How do I do that?
Thanks.
I learned that there's an extra parameter to the __Random function that can hold a variable name that you can reference later.
So, my Parameters are:
email : ${__Random(1,10000000,refName)}#jmeter.com
email 2 : ${refName}#jmeter.com
Voila!

Resources