How to send forward one mail to other mailadresses

How to send forward one mail to other mailadresses?

I can send a email with Uipath using the Activity Send Outlook Mail Message.

But i don’t Know how to forward a incomming mail.
And i don’t know how to get the wanted incomming mail.

Please Help

First Save the Incoming Mail using Save Mail message Activity with extension “.eml”
Later,
Use Send Outlook mail
In the properties tab, You have forward mail message.
Give the Save Mail path there.

Thanks Rahul

But in the Send Outlook Mail Message in the Properties tab Forward Mail message I can not give the Save Mail path

Forward

  • MailMessage - The message to be forwarded. This field only supports MailMessage objects.

OutlookForwardEmail.zip (2.0 KB)

Attached workflow :

  • It will forward only top 3 unread outlook messages
  • change the outlook email status to read
  • forward to specific email
  • update the email subject adding “FW”
  • update the email body adding “Forwarded Email”

Modify the Get Outlook Email Properties to meet your Incoming Email Filter.
Or process each email and flag if the email meet your forwarding filter.

1 Like

Activity could not be loaded because of errors in Youre XAML file on mine comp.
I have Uipath version 2018.3.1 Enterprise Edition.
Do i have to opdate?

1 Like

image

Make sure the myEmails variable Type is Microsoft MailMessage

@nicostegeman

Try to replicate the workflow as above screenshot.
Hopefully will work without upgrading your UiPath.

It works but the forwarded mail lost the original layout of the original mail.

I know when i use save mail message and write the mail to an .eml file it stil have the original layout.

How can i forward a mail in the original layout?

@nicostegeman

Try this:
Send Outlook Mail Messages activity :

  • Subject : mail.Subject
  • Body : mail.Body

Send Outlook Mail Messages Properties:

  • Options\isBodyHtml : On

It forwarded the mail
But the layout got worse

Please try this:

  • Save Mail Message
  • Send SMTP Mail Message and use the Save Mail Message in the Forward Option
1 Like

Hi Hermawan,
I am also the same issue while forwarding the email with a certain format/ layout. Tried with IsHtml but it’s making it worse. Why isn’t the IsHtml not working?

Thanks,
Rudrava.

Hi nicostegeman,
were you able to get a solution to forward the email with the layout?

Thanks,
Rudrava.

1 Like

Works very fine! Thanks a lot. Be careful to edit the “type argument” in the for each. Something i forgot and had some issues

1 Like

you can use forward mail activity. Please refer this :
https://docs.uipath.com/integrations/docs/office365-forward-mail

Hello everyone,

Forwarding a mail with Send Outlook Mail Message activity is not a proper way because it can’t preserve the format and images if exist. Here I created a custom activity to forward outlook mail message, it keeps the original mail formatting and content.

2 Likes

Hi Hermawan,

I am also the same issue while forwarding the email with a certain format/ layout. You can refer to email the layout below. Please advise fixing the issue

  • Original
    image
  • Forward(Follow your step)
    image

Hi Adrian,

What is the “type argument”? Because
Hi Hermawan,

I am also the same issue while forwarding the email with a certain format/ layout. You can refer to email the layout below. Please advise fixing the issue

  • Original
    image
  • Forward(Follow your step)
    image

Hi weerato,

you can find the ‘TypeArgument’ in the For each activity of mails. Just select TypeArgument as “System.Net.MailMessage”