Author |
|
lolocas Newbie
Joined: 05 January 2009 Location: France
Online Status: Offline Posts: 3
|
Posted: 05 January 2009 at 12:57am | IP Logged
|
|
|
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 |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 05 January 2009 at 10:56am | IP Logged
|
|
|
When you use Message.AddAttachment, you can pass Content-Type value as a parameter. What exactly causes the problem?
Regards,
Alex
|
Back to Top |
|
|
lolocas Newbie
Joined: 05 January 2009 Location: France
Online Status: Offline Posts: 3
|
Posted: 05 January 2009 at 11:17am | IP Logged
|
|
|
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 |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 05 January 2009 at 12:27pm | IP Logged
|
|
|
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 |
|
|
lolocas Newbie
Joined: 05 January 2009 Location: France
Online Status: Offline Posts: 3
|
Posted: 05 January 2009 at 1:48pm | IP Logged
|
|
|
It's working, thank you Alex.
Best regards
Lolocas
|
Back to Top |
|
|