Search The ForumSearch   RegisterRegister  LoginLogin

MailBee Objects

 AfterLogic Forum : MailBee Objects
Subject Topic: The attachment file can not encode Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Jason
Newbie
Newbie


Joined: 29 May 2013
Online Status: Offline
Posts: 3
Posted: 29 May 2013 at 2:27am | IP Logged Quote Jason

Hi,

If the attachment contains some words like "Algeria (الجزائر)", then the file after sent with email will be shown as "Algeria (?????)"


I set like this:
msg.Attachments.Add(fileContent, fileName, "", "application/xml; charset=utf-8", null, NewAttachmentOptions.None, MailTransferEncoding.QuotedPrintable);


If any other settings?
Back to Top View Jason's Profile Search for other posts by Jason
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 5902
Posted: 29 May 2013 at 2:44am | IP Logged Quote Igor

Try using EncodeAllHeaders method before sending mail out. Does it help?

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Jason
Newbie
Newbie


Joined: 29 May 2013
Online Status: Offline
Posts: 3
Posted: 29 May 2013 at 4:00am | IP Logged Quote Jason

Used, but there is no effect.
Back to Top View Jason's Profile Search for other posts by Jason
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 5902
Posted: 29 May 2013 at 4:12am | IP Logged Quote Igor

To assist you on this further, we need a self-contained sample (with no external dependencies) so that we could run it and replicate the problem. You can submit the sample project via our HelpDesk.

By the way, make sure you run the latest build of the DLL available for download here.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Jason
Newbie
Newbie


Joined: 29 May 2013
Online Status: Offline
Posts: 3
Posted: 29 May 2013 at 7:05am | IP Logged Quote Jason

I submit the sample:
http://www.afterlogic.com/helpdesk/view-thread.aspx?thread=XXXXXXXX
Back to Top View Jason's Profile Search for other posts by Jason
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 5902
Posted: 29 May 2013 at 3:00pm | IP Logged Quote Igor

I'm afraid we can't use that code without the attachment the issue can be reproduced with.

And please avoid posting URLs to your HelpDesk tickets, thanks!

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 5902
Posted: 29 May 2013 at 10:27pm | IP Logged Quote Igor

Well, the issue is not confirmed. Using your code, I've sent message out, then fetched it from recipient's box and downloaded the attachment, its content is identical to one sent out.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

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