curl / Mailing Lists / curl-users / Single Mail


Mail received but message body is empty

From: Dutch Raf via curl-users <>
Date: Tue, 20 Jun 2017 14:26:39 +0000

Hello all,

My problem: Mail received but message body is empty

I have tried plain text and html format for the --upload-file numerous times now, but I can't get the message body to work.

I receive the e-mail, the subject is ok and corresponds to the subject in the --upload-file but the message body is ignored. So the e-mail does not show any text.

I have used the following: (the content of the file is between the "-----", the "-----" are not part of the content)


From: "server1" <>
To: "myName" <>
Subject: This is a test message from server1
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

This should be the e-mail text message,

and this could go on for a couple of lines.



the command I used from bash:

curl -v smtp:// --mail-from --mail-rcpt --upload-file ./mailtext.txt

Because I receive the mail, something must be wrong with the content of the --upload-file ./mailtext.txt.

Any help is very welcome. 😊



Received on 2017-06-20