Login  
Search All Forums
Dart Home | PowerTCP Mail for .NET | Custom Development Reply | PowerTCP Mail for .NET Topics | Forums   
AuthorForum: PowerTCP Mail for .NET
Topic: Forward Email does not add new message text
vensgal

From: India
Posts: 5
Member Since: 04/21/17
posted April 21, 2017 3:37 AM

Hi,

while forwarding message i am using standard format as below,

SessionManager.Message.Forward(SessionManager.SendMailAs, null, string.Empty, ForwardFormat.Standard);


In this format, i am seeing message as attached text file which has new text i typed while forwarding message.

But the message body does not have the new text instead it has HtmlPart only. The text part is attached as text file.

I need the new message i typed while forwarding the message. Please let me know how i can accomplish this task.

Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted April 21, 2017 12:04 PM

Hello,

The original message is straight cloned, so this suggests that the original message would be viewed like this by the client that is receiving the forwarded message.

It appears there are two issues:
MailMessage.ContentType.MediaType should be set to "multipart/alternative", so that the textpart is viewed by the receiving application as an "alternative" instead of "mixed".

MailMessage.Html needs to also be modified (modifying MailMessage.Text does not modify MailMessage.Html).
vensgal

From: India
Posts: 5
Member Since: 04/21/17
posted April 24, 2017 3:34 AM

HI,

Thank you for reply.

I changed contenttype.mediatype to multipart/alternative.
and i got email with no data at all and an attachment which is unknowntype.

and the html in the email is complex and not easy to add new message.

Is there any other alternative to this.
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted April 24, 2017 3:32 PM

Hello,

That suggests that the email may be more complicated; you will need to identify the multipart part in MailMessage.Parts, and set that multipart's ContentType.MediaType.

Our component is not provided as an HTML editor, so assistance with editing HTML is outside of the scope of our support. That said, the original HTML is often surrounded by a blockquote tag, and your new HTML prepended to the blockquote-surrounded original (separated by an "Original Message", from, to, date, subject, etc, section). Alternatively, you can use a third-party HTML editor.

As an alternative, you can modify the downloaded message directly, instead of using the Forward method (this will not modify it on the server).
vensgal

From: India
Posts: 5
Member Since: 04/21/17
posted May 3, 2017 3:27 AM

Hi,

I modified MediaType of the HtmlPart and i set it to
multipart/alternative.

I did not receive email after that.

Also, I tried modifying the downloaded message. still i did not receive mail.

HTML is different for different messages.
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted May 3, 2017 10:51 AM

Hello,

Not the mediatype of the HtmlPart; you'd need to modify the mediatype of the multipart part that contains the HtmlPart.
vensgal

From: India
Posts: 5
Member Since: 04/21/17
posted May 9, 2017 4:01 AM


I am using
 SessionManager.Message.Forward(SessionManager.SendMailAs, null, string.Empty, ForwardFormat.Standard);

and the following

SessionManager.ComposeMessage.ContentType - multipart/mixed
 I changed to multipart/alternative and received i did not receive any email.

SessionManager.ComposeMessage.Parts
Parts[0] - Dart.Mail.HtmlPart
.ContentType.MediaType - 'text/html' - I changed this to multipart/alternative - I received email that has html content
eg:

<meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><font face="Verdana" size="2">Please check file</font>


Parts[1] - Dart.Mail.TextPart
.ContentType.MediaType - 'text/plain'
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted May 9, 2017 1:48 PM

Hello,

Can you send your email into support@dart.com, and provide the exact code you're using? (Or if you're using our included SMTP Client sample, just say as such) Also, what email client are you using, and please clarify what you mean by "did not receive any email" (Do you see it, but are unable to view it? Is it not received at all?, etc)
vensgal

From: India
Posts: 5
Member Since: 04/21/17
posted May 10, 2017 2:43 AM

Hi,

i sent email to support@dart.com with subject
Forum Activity: Forward Email does not add new message text

Jamie Powell (Admin)

From: Rome, NY USA
Posts: 448
Member Since: 03/13/07

Extra Support Options
Custom Application Development

posted May 16, 2017 12:30 PM

Thank you for your reply. We have received your email and further communication will be handled off-line.

Regards,
Jamie
Reply | PowerTCP Mail for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX