Mail received but message body is empty
Date: Tue, 20 Jun 2017 14:26:39 +0000
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" <server1_at_domain.com>
To: "myName" <myemail_at_domain.com>
Subject: This is a test message from server1
Content-Type: text/plain; charset="us-ascii"
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://smtprelay.domain.com --mail-from server1_at_domain.com --mail-rcpt myemail_at_domain.com --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. 😊