We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Exists a possibility to forward an email?

HelloAspose-Team,

we need a functionallity “Forward an email”. How can i implement this funtionallity with the “MailMessage” or “MapiMessage” objects?

At the moment i fetch the message from exchange, change the Property “To” in the mail object and send the changed mail. But in this case the original reciever informations will be lost. So we need an other posibillity to forward an email.

Please find her my current code lines:
// select the message
imapClient.SelectFolder(ImapFolderInfo.InBox, false);

// fetch message
MailMessage mailMsg = imapClient.FetchMessage(uniqueId);

// set new reciever
mailMsg.To = mailTo;

// send messasge
smtpclient.Send(mailMsg);

Best regards
Ralf

Hi Ralf,


Thank you for inquiry.

I am sorry, forwarding of messages is not supported as there is in MS Outlook or other UI based programs. But you may modify the body of message and add the original receiver’s information before sending the email.

mailMsg.Body = mailMsg.To.ToString() + “\n” + mailMsg.Body;
mailMsg.Subject = "FW: " + mailMsg.Subject;

Hi,


Its been a couple of years since this post, is there now a better way to achieve this, that is to embed the original email details into a message for forwarding?

Thanks
Trent

Hi Trent,


I am afraid to inform that this feature is not implemented yet and not found even in the future plans of the development team due to other high priority tasks.

Please feel free to write us back if you have any other query related to Aspose.Email.