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#BR$3br &nb sp;
%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz
w !1AQaq"2B #3R br
$4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ? RRRQ( aEPEPEPEPEPEPEPEPEPRɵO`bH[n=+~+Y !nh.6<P.GjxC;qj(9qYZcU9) c
sFsxm犒Ӂ\eg*S@SI-l=DR1P] )ɽTfҥ$YQJ1lYz|{+U ct/ D&
{(p%Mt5
6BF*k6oe,jx=ymK]2.BrjCiYXhD qp:W'cl'p5xMsc\֟nx ['j] KyhԯY:{V8YA%pW'orFV"f#+V3UkG U$F:WD$},fՆJ>Q1U-!p&@
%`hm%vgYjbj"[iġ
ו]#K!8=k5f[we_ںԈ99Y莿SmgXe".Z0[
uGBx"^IqFP}zV^JF~^uNoyn}V!,BQ MkBXd27}nD18F2NMB,(8
ֆ, QsS84R(]-:"k%m( /ֆW7+1o \RRvAL_240:O9LoLVJ1Z$hՈ )}}*j9 hu2b(VkO-@%RF R#EJHI12CXCBJO*?T`M= *21o"Ll>Xkb<GT玀QW0 '~=)M-\VO&<\S1v
~N:R)HM(B`)<@>29?()%~kr?P @98(QJv R⒖$QE QE QE QE QE QE QE QE QE QE 2D9X<B0X*\λ( UԝNW<fsPlV| &5&2+kĸ t |YIOK@Iu+X2o B!l튉d;g(
ǩXaixlU]1i*`CqM+#O!Hr>6lZ?(;lv ͘ѤaVjU7db$Q{\Vf<
4m^in$\&̟?٦cN!v3;x g$ksn~ʨIT4{P=kOZu[peb9sֿ*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 |
|
|