Search The ForumSearch   RegisterRegister  LoginLogin

MailBee SMTP

 AfterLogic Forum : MailBee SMTP
Subject Topic: Special Body part Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
lolocas
Newbie
Newbie


Joined: 05 January 2009
Location: France
Online Status: Offline
Posts: 3
Posted: 05 January 2009 at 12:57am | IP Logged Quote lolocas

Hello Community

I am sending Email whith MailBee SMTP activX, and i have a problem to create a special Email format.

This is the Email format I have to create :

Date "My date"
From: "FromAddr"
To: "ToAddr"
Message-ID: "My Message ID"
Subject: "My subject"
MIME-Version: 1.0
Content-Type: multipart/mixed;

----_NextPart_001_1FED_75536B5C.62407F89
Content-Type: "My special content-Type"
Content-Transfer-Encoding: base64
Content-Description: "My content Description"

ATTACHEMENT FILE ENCODING IN BASE64

----_NextPart_001_1FED_75536B5C.62407F89

But i didn't found how to do with MailBee ActivX, could someone tell me how to do that ?

Thank you for your Request

best regards
Lolocas
Back to Top View lolocas's Profile Search for other posts by lolocas
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2179
Posted: 05 January 2009 at 10:56am | IP Logged Quote Alex

When you use Message.AddAttachment, you can pass Content-Type value as a parameter. What exactly causes the problem?

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


Joined: 05 January 2009
Location: France
Online Status: Offline
Posts: 3
Posted: 05 January 2009 at 11:17am | IP Logged Quote lolocas

Thanks for your reply.

When i use Message.AddAttachment, i have this

-----=_NextPart_001_5528_11984F72.45147C8C
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable


------=_NextPart_001_5528_11984F72.45147C8C
Content-Type: application/EDI-consent;
     name="000519.fif"
Content-Transfer-Encoding: base64

ATTACHEMENT FILE ENCODING IN BASE64

------=_NextPart_001_5528_11984F72.45147C8C

1)I don't want the first part with the content-Type "Text/plain".

2)I can not add a Content-Description in the Attachement part.

Thank you for your Request

best regards
Lolocas
Back to Top View lolocas's Profile Search for other posts by lolocas
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2179
Posted: 05 January 2009 at 12:27pm | IP Logged Quote Alex

This is not possible directly. You can, however, generate the message as is and then modify Message.RawBody property value to find and remove the first section from "-----=_NextPart" to the next "-----=_NextPart" and insert "Content-Description: My content Description"&vbCrLf after the first "Content-Transfer-Encoding: base64"&vbCrLf using string functions.

Not elegant but will work.

Regards,
Alex

Back to Top View Alex's Profile Search for other posts by Alex
 
lolocas
Newbie
Newbie


Joined: 05 January 2009
Location: France
Online Status: Offline
Posts: 3
Posted: 05 January 2009 at 1:48pm | IP Logged Quote lolocas

It's working, thank you Alex.

Best regards
Lolocas
Back to Top View lolocas's Profile Search for other posts by lolocas
 

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