Search The ForumSearch   RegisterRegister  LoginLogin

MailBee Objects

 AfterLogic Forum : MailBee Objects
Subject Topic: Set charset for attachment Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
laf1974
Newbie
Newbie


Joined: 04 December 2010
Location: Italy
Online Status: Offline
Posts: 4
Posted: 07 May 2011 at 12:54pm | IP Logged Quote laf1974

Hi,
I need to set utf-8 charset for an xml attachment, and keep the body charset as 7bit.
I tried with ms.Attachments.Add (see below) but I cannot doing it.

msg.Attachments.Add(Temp + "daticert.xml", "daticert.xml", "", "application/xml", null, NewAttachmentOptions.None, MailTransferEncoding.QuotedPrintable);

There is a way to set a charset for the attachment?
Regards
Luca
Back to Top View laf1974's Profile Search for other posts by laf1974
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 08 May 2011 at 2:51am | IP Logged Quote Alex

msg.Attachments.Add(Temp + "daticert.xml", "daticert.xml", "", "application/xml; charset=utf-8", null, NewAttachmentOptions.None, MailTransferEncoding.QuotedPrintable);

This will add Content-Type with charset parameter.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide