Forward Email is not working as expected using Aspose Email API for Java

Hi Team,

We are using Aspose Email API for Java. Here we observed one issue is related to forward functionality.

Issue - Whenever by using gmail if we clicked on forward the email GmailForward.JPG (12.4 KB) in email body forwarded data is displaying as provided the screen shot. But the same one if we used with Aspose Email API we have output like this AsposeForwardEmail.PNG (31.3 KB)

Please verify the same from your end. Below is the code snippet which we used,

SmtpClient smtpClient = new SmtpClient();
smtpClient.setHost(emailHost);
smtpClient.setUsername(userEmailId);
smtpClient.setPassword(password);
smtpClient.setPort(587);
smtpClient.forward(“fromId”, “fwdToID”, message);

Thanks
Phanikumar P

@nvphani,

According to our understanding, the issue that you are facing is that when the message is forwarded using Aspose.Email API, the original message is missing in the generated email. Please use the code snippet given below to add the original message body in the forward email.

ForwardMessageBuilder forwardMessageBuilder = new ForwardMessageBuilder();
forwardMessageBuilder.setResponseText("TEST RESPONSE");
forwardMessageBuilder.setAdditionMode(OriginalMessageAdditionMode.Textpart);
MailMessage forwardMessage = forwardMessageBuilder.buildResponse(message);

smtpClient.forward("fromId", "fwdToID", forwardMessage);

Please test the code snippet given above and share your feedback with us. We are looking forward to your response.

Thanks for Support. Only one issue observed with the provide code snippet as provided.

Issue - After forwarded that email to forward_email_address in original message content From field is showing Alias Name only.AsposeForward1.PNG (10.2 KB)
But as per the requirement we need email_address as well in the section.
Please find the attached screenshot for the same(which don’t have the email_address).

Please check and provide the details so that we can close this one.

Thanks
Phanikumar P

@nvphani,

Thank you for your feedback.
We have logged a ticket in our issue tracking system as EMAILJAVA-34458 to investigate this scenario further. We will update you here as soon as additional information is available.

The issues you have found earlier (filed as EMAILJAVA-34458) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan