Rank: Newbie
Groups: Registered
Joined: 12/10/2018(UTC)
Posts: 1
Location: PACA
Thanks: 1 times
Hello, using the ActiveX trial version for Delphi. We want to make sure everything's ok before ordering commercial one, but we got the following issue : - setting my body - BodyFormat set to 1 - Content-Type set to multipart/alternative the mail is received properly on most mail clients. However Gmail displays it with no body and a "noname" attached file that contains both the text/plain and text/html html-coded versions of my body. If I log the raw_content variable value before sending the mail, I get: <BOF> Content-Type: multipart/alternative Sender: <xxxxx@xxxxx.com> Message-ID: <a4938fd3f65d0e5028276ee500551a32@xxxxx.com> From: "=?utf-8?B?U2VjcsOpdGFpcmVzIE1lZGlmaWw=?=" <xxxxx@xxxxx.com> To: <yyyyyy@gmail.com> Subject: =?utf-8?B?TUVTU0FHRSBURVNUIEJZIFBBU01BSUwgSVRTRUxGIC0gU01U?= =?utf-8?B?UCBTU0wvVExT?= Date: Fri, 7 Dec 2018 17:14:55 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="d8309d0e7a50e40dbe2d3a91001cf03a" --d8309d0e7a50e40dbe2d3a91001cf03a Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This my body text here... --d8309d0e7a50e40dbe2d3a91001cf03a Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable This my body text here... --d8309d0e7a50e40dbe2d3a91001cf03a-- - <EOF> If I save the mail in .eml format and open it with Thunderbird: no body at all, no attached file... no error whatsoever in the EASendMail's logfile. Could it be due to the ending of raw_content, where the boundary chain is inserted but nothing lies behind? If yes, how to fix this? Shouldn't the text/html section of my body's content inside the raw_content variable show HTML tags like <html>,<body>...?
Rank: Administration
Groups: Administrators
Joined: 11/11/2010(UTC) Posts: 1,154
Thanks: 9 times Was thanked: 55 time(s) in 55 post(s)
Hi, please
do not set Content-Type manually. You just need to set
BodyFormat = 1
BodyText = "your html body"
AltBody = "your plain text body" ' if you don't set it, easendmail can generate plain text from html body automatically.
https://www.emailarchite...sendmail/sdk/?ct=altbody If you set Content-Type manually, you can see your multiple/alternative overrided the multipart/alternative header with boundary.
Content-Type: multipart/alternative
....
Content-Type: multipart/alternative;
boundary="d8309d0e7a50e40dbe2d3a91001cf03a"ou can see there is a header
1 user thanked ivan for this useful post.
Forum Jump
EmailArchitect Support
Email Component Development
- EASendMail SMTP Component - .NET Version
- EASendMail SMTP Component - Windows Store Apps
- EASendMail SMTP ActiveX Object
- EAGetMail POP3 & IMAP4 Component - .NET Version
- EAGetMail POP3 & IMAP4 ActiveX Object
Exchange Server and IIS SMTP Plugin
- DomanKeys/DKIM for Exchange Server and IIS SMTP
- Disclaimer and S/MIME for Exchange Server and IIS
EmailArchitect Email Server
- EmailArchitect Email Server (General)
- EmailArchitect Email Server Development
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.