Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
scalino  
#1 Posted : Monday, December 10, 2018 3:11:26 AM(UTC)
scalino

Rank: Newbie

Groups: Registered
Joined: 12/10/2018(UTC)
Posts: 1
France
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>...?

ivan  
#2 Posted : Tuesday, December 11, 2018 6:46:56 AM(UTC)
ivan

Rank: Administration

Groups: Administrators
Joined: 11/11/2010(UTC)
Posts: 1,148

Thanks: 9 times
Was thanked: 54 time(s) in 54 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
thanks 1 user thanked ivan for this useful post.
scalino on 12/11/2018(UTC)
Users browsing this topic
Forum Jump  
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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.070 seconds.

EXPLORE TUTORIALS

© All Rights Reserved, AIFEI Software Limited & AdminSystem Software Limited.