I currently have the following problem: I like to send an e-mail using the
indy components TIdMessage/TIdSMTP. When I send the e-mail in HTML format,
it works fine. But when I add an attachment to the e-mail, the body text is
defined by text/plain and not text/html. How can I change the ContentType
tag? Is there an article in a FAQ section somewhere that handles this
problem?
Thanks for your help in advance!
Pat
You have to define MessageParts of type TIdText with the html e-mail and
then add the attachments. Look at the mail-demo. It's very self-
explanatory.
The code I use:
TIdText* idtext;//=new TIdText;
IdMsgSend->MessageParts->Add();
idtext = new TIdText(IdMsgSend->MessageParts, Memo1->Lines);
idtext->ContentType = "text/html";
idtext->ContentTransfer = "quoted-printable";
The collection count of IdMsgSend->MessageParts seems to be increased by one
using these operations.
It would be very nice, if somebody could help me!!!
Thanks again!
Pat
"Hadi Hariri - Team Indy" <had...@pbe.com> schrieb im Newsbeitrag
news:3b7a9211_1@dnews...