Bekijk de volledige versie : esmtp remove Message-Id in the body of the mail
When i use esmtp and get emails like this:
blablabla
Date: Wed, 14 Jun 2006 23:46:39 +0200
Message-Id: <1150321599.189@Wl500g>
How to remove Date and Message-id in my command line ?
I have the same problem.
Sending an Email with:
echo "TEST MESSAGE" | sendmail user@domain.com -f user@domain.com
results in an email which shows the following text within the email body
TEST MESSAGE
Date: Thu, 26 Oct 2006 16:17:52 +0200
From: gero@zylka.de
Message-Id: <1161872272.26378@(none)>
Anyone knows how to fix that email header information are displayed in the email body?
Thanks, Gecko
DmitriyTroshin
11-02-2008, 07:39
Can`t solve this trouble too :(
/opt/etc/esmtprc
identity = wl500@isp.ru
hostname = mail.isp.ru:25
username = "username"
password = "password"
command
echo -e "From: wl500@isp.ru\nSubject: this is the subject\nReply-to: wl500@isp.ru\nHere goes the mail body" | esmtp -v -C /opt/etc/esmtprc -f wl500@isp.ru targetmail@isp.ru
result is:
Here goes the mail body
Date: Sun, 10 Feb 2008 20:18:14 -1100
Message-Id: <1202714294.7373@=>
Maybe we have to permanently define date and message-id?
DmitriyTroshin
11-02-2008, 07:49
SOLVED!
echo -e "From: wl500@isp\nSubject:\nDate:Sun, 10 Feb 2008 20:27:13 -1100\nMessage-Id:0000@000\nbody" | esmtp -v -C /opt/etc/esmtprc -f wl500@isp me@isp