cancel
Showing results for 
Search instead for 
Did you mean: 

Forward Email using smtp

weamsamara1
Level 3
How can I forward email (not send email) using pop3-smtp object like as forward email in the Outlook object.
VBO pop3-smtp object does not contain forward action. how can I build this action in pop3-smtp object?

------------------------------
weam samara
------------------------------
3 REPLIES 3

ewilson
Staff
Staff
Hello @weam samara,

The POP3/SMTP VBO used the .NET SmtpClient class to perform the sending actions. This class does not expose a specific action for forwarding email. However, you could work around this by using the existing actions on the VBO to save the email you want to forward to disk as a .eml file (along with any attachments) and then create a new email to the destination party and attach the original email.

Does that make sense?

Cheers,


------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

how can I save the email in .eml file? 
can I do this using smtp object?

------------------------------
weam samara
------------------------------

Hi @weam samara

There is not action at this moment for save the eml , but it is easy to create a new one.

Message m =_rclient.GetMessage((int)MessageNumber);
FileInfo info = new FileInfo(path);
m.Save(info);

Is really similar to the action "Get Message". You need to indicate the message id in the variable "MessageNumber" and put the save path in the variable "path"

Then you can send the saved mail with the action "Send Message" adding this as an attachment.


Hope this helps you!

See you in the Community, bye!

------------------------------
Pablo Sarabia
Solution Manager & Architect
Altamira Assets Management
Madrid
------------------------------