Hello,
I am facing an issue while sending outlook mail(Send Outlook Mail Message) activities with attachment but recipient getting 6 mails with attachment. Where having 4 row with data in excel. I want only 1 mail with attachment will be send to recipient. How to resolve it. Please guide me.
Can you check this link
https://www.msoutlook.info/question/multiple-email-copies-being-sent#:~:text=When%20you%20are%20on%20a,the%20next%20Send%2FReceive%20interval.
If its not similar to what you are facing can you share the code without any confidential details
Hi @ujjalghosh
Could you share the screenshots of your workflow so that we will be able to provide you a better logic and solution.
Regards,
Which activity have you used below send Outlook Mail Message activity. Could you please provide that screenshot too.
You need not use Use Desktop Outlook App for Send Outlook Mail Message. You can directly use Send Outlook Mail Message acitvity.
If you want to use Use Desktop Outlook App please use Send Email activity under that container.
Regards,
If I use Send Outlook Mail Message activity then also multiple mail getting.
I have checked in Sent Items in Outlook there also duplicate mail is showing. So issue is sending duplicate mail from UiPath.
Surprisingly I checked with gmail, but result is same.
I have Used Desktop Outlook App and Send Email activity under that container but got the error now “Send Email: The Mail service is null.” and “Use Desktop Outlook App: The Mail service is null”.
Athira,
This is happen only when I send mail through UiPath, when I send mail to other by Outlook app then its normal way only 1 mail. Issue is in UiPath.
Take your Send Outlook Email Activity out of the For Each, put it after the For Each. Go to your Send Outlook Email activity, click your cursor into the Attachments property, delete what’s there, and press CTRL+K. Now name your variable, something like emailAttachments.
In the default, type New List(Of String)
Inside the loop, you use the Append Item to List activity to add each attachment path to the List.
Now you are passing a list of attachments to Send Outlook Email, and sending one email with multiple attachments.
Attachment is not issue, when mail is sending then it shoot 5 mails for 1 data record. I tried in outlook and gmail but result is same.
You have the Send Outlook Email activity inside a loop.
If this in loop then why per email id sending 6 mails, it should be indefinite.
Because the send mail activity is processed every time it loops.