| Author |
|
scotty Newbie

Joined: 27 August 2007
Online Status: Offline Posts: 25
|
| Posted: 18 October 2007 at 1:48am | IP Logged
|
|
|
Hi,
I created and saved an email-message with a .jpg image as attachment using the following code:
MailBee.Mime.MailMessage message = new MailBee.Mime.MailMessage();
message.Subject = "Testmail";
message.BodyPlainText = "This is a Test-Message - Please ignore!";
message.From = new MailBee.Mime.EmailAddress("testfrom@onlytesting.com", "TestTo", "Test");
message.To.Add(new MailBee.Mime.EmailAddress("testto@onlytesting.com", "TestFrom", "Test"));
byte[] data = LoadImageData("c:\Test.jpg");
message.Attachments.Add(data, "Test.jpg", string.Empty, null, null, MailBee.Mime.NewAttachmentOptions.None, MailBee.Mime.MailTransferEncoding.Base64);
message.SaveMessage("c:\\TestMailSaved.txt");
In the saved e-mail-file the binary data of the attachment is not base64-encoded:
MIME-Version: 1.0
X-Mailer: MailBee.NET 3.0.0.43
Subject: Testmail
From: "TestTo" <testfrom@onlytesting.com> (Test)
To: "TestFrom" <testto@onlytesting.com> (Test)
Content-Type: multipart/mixed;
boundary="----=_NextPart_000_D 827_509323CA.1B339FD7"
------=_NextPart_000_D827_509323CA.1B339FD7
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
This is a Test-Message - Please ignore!
------=_NextPart_000_D827_509323CA.1B339FD7
Content-Type: image/jpeg;
name="Test.jpg"
Content-Disposition: attachment;
filename="Test.jpg"
Content-Transfer-Encoding: base64
ÿØÿà JFIF ÿÛ C
%# , #&')*)-0-(0%()(ÿÛ C
(((((((((((((((((((((((((((((((((((((((((((((((((((ÿÀ à€" ÿÝ (ÿÄ
ÿÄ µ } !1AQa"q2�‘¡#B±ÁRÑð$3br‚ &nb sp;
%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyzƒ„…†‡ˆ‰Š’“ ”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚáâãäåæçèéêñòóôõö÷ øùúÿÄ
ÿÄ µ w !1AQaq"2�B‘¡±Á #3Rð brÑ
$4á%ñ&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz‚ƒ„…†‡ˆ ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚâãäåæçèéêòóôõ ö÷øùúÿÚ ? ú£ RRŠRQŠ( aEPEPEPEPEPEPEPEPEPRɵO¹í`™b�H[n=+£~‡¦+Y ’!†nh.6<âá±ïP.Gj¹xC;qÆjŒžÝ(±ˆã9À¤•‡qYZÄÖ÷ícµ»U9µ) c
s‘FÃésxm犒»Ó�\¸Õegž*SªË–@S“ŒI-l=޾DRÝ1P]¤ )ÐɽTž¤f†ïÒ¥$Y–»—�QJª¸1lYz¾©�|àñÀ£–á{+²ÉUô¸ c·‰tð™/ ýŠDñ&œì
ÊÀ{®(pÒÖ%Mt5
¨6ŠBªF*‚k6o÷eÕàë,jÈx=êymº±K]†2.ãòŽ•�BŸ”rjCŒži£î‚YXhÎ×D qéòp:W'cl'p±ªôç5Òx®Mºscé\ÖŸ�nÒÆê¥xÚ [¡¤•Ø'ïj] —KòyhÔ¯µY€:Œ{V�±’8ãYòAü©·%pW'oµrûF��šV¹‡"f#+ÐV‘Ž3�”UkGŽÞ ØðU�$ÔûòF:WD$§},fÕ†ìŒJ>Q‚1U-¬¢!À¤ºp&@
%ª°`£¶hm%vgY£jö¶‘…•Ðb¯jž"Ðá[i‚‹‰Ä¡ˆÇ
Ðו]Å#K!8=k5f[w‘e¥_îÚºÔˆ99Y莿S¸mgXše�"².Z0[…ÿ
åuˆ¡†GB¶x"®Û^Iq¥ªFØP}zV^¡JÁF~^äu®Noy¦nå}V†·‚!�í,BŒš¡ñQ‘ä† £ŽMkøBÎXd2„¸ïˆ7¦}nDÏ1Å8F2ž…NMBÇ,(8
´Ö†, QsS8ç4ÅRÒ(í]йÍ-�:Ò"ñ¦Á‚kè¿Û%Ÿ‡mÐ( â¼/ÂÖ†çW¶Œ7+ßï1o¦ª \RœRvALó_24Ì0:×ÐÆOÜ¿â9L—oϬLíVJ1Z$hîÕˆ–ÿ º)¯}Ð}*©ìj9 ühš�µu2ïb�(úVkÅO-@Æ%ˆR÷¥»®F ‹��R#éµEJHÉëI´1æ©Æ2CÝXˆCBƒJO*?îT„`ñM=¹¥Ë‚÷ ß*21åŠo’ƒ"ÔËÈëLl�¥>X®‚kÆb<”šÑGžT‡¨çŽ€QˈWè0à Å'•~è¤=)¼Œ�MÂ-\�V¬O&<çË\S1òv
~N:R)ùHéM(ôB½÷`°ÅÙ)<˜±÷@>‚ž2£9?(ü)Ù%~‚³kr?³ÄøP Œð@§–Æ9¤8Èì(ä�QJvÒçÿÐú Râ’–ƒ$QE QE QE QE QE QE QE QE QE QE 2D9éXº¿Ù<–B0Þ¸©X*ó\λ( 쌨 ¸ÞÚUþÔ�ÕNW<f³çÀsP¿lV| �ž¢š±&ˆñû¢§5€Ë&Æ2�+kĸ ã£t¬ |¥YIOK¿@Iu+‡“¢Xä�2‡oââ ûB!lô튉d;ÃgåÍ(è
Ç©X¶aŒž»iìxlU]1ói²*Á`CqM+#O!ŽHÅr>6l¤Zê¤?(®;Ælv ÷â¡í¨¯¡Í˜¿Ñ¤aØVjŒçúU÷Þ¶Ž7db²ã$Q{’\¶Vf<
ô4m²€Ë^inÛ$\¦½&ÌŸ³Â?Ù¦ØÑcø‰íN!v�ŠŒ3“Å;x g¥$ï¹ksžñn~ʨ½IéT´½4¬{çPŽ=kOZ‘¦u[p¬À÷ªÎeޤïb9ç¥sֿ‹‡*ÔK‹† ˜á
[...]
If such an e-mail is sent and received the email-client is not able to decode the attachment properly.
Can you give me a hint what I am doing wrong here?
|
| Back to Top |
|
| |
Andrew AfterLogic Support

Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
| Posted: 18 October 2007 at 3:16am | IP Logged
|
|
|
We tried to reproduce the issue, but have not succeeded yet. Please try the latest version (3.0.1.70) of MailBee.NET.dll.
If you're able to reproduce the issue with the latest version of MailBee.NET.dll, please provide us with the following info:
- Which OS (exact name and version) do you use?
- Which versions of .NET Framework are installed on your workstation?
- Which version of MS Visual Studio (including service packs) do you use?
- Exact sample code you use, including LoadImageData method, Test.jpg file etc.
So we would be able to reproduce your environment exactly. Please use Request Support Form for this purpose.
Best regards,
Andrew
|
| Back to Top |
|
| |
scotty Newbie

Joined: 27 August 2007
Online Status: Offline Posts: 25
|
| Posted: 18 October 2007 at 4:06am | IP Logged
|
|
|
With the latest version (3.0.1.70) i couldn't reproduce the described behavior. The problem seems to be fixed.
Thank you for your quick response.
|
| Back to Top |
|
| |