Msmtp: Difference between revisions

imported>Onny
mNo edit summary
imported>Onny
More compatible mail test command
Line 24: Line 24:


<syntaxhighlight lang="console">
<syntaxhighlight lang="console">
# sendmail john.doe@mail.com
# echo -e "Content-Type: text/plain\r\nSubject: Test\r\n\r\nHello World" | sendmail john.doe@mail.com
Subject: Test Send Mail
Hello World
control d (this key combination of control key and d will finish the email.)
</syntaxhighlight>
</syntaxhighlight>


The line break after the "Subject" line is mandatory. A mail with the subject ''Test Send Mail'' will be send to the recipient ''john.doe@mail.com'' including the body text ''Hello World''.
A mail with the subject ''Test" will be send to the recipient ''john.doe@mail.com'' including the body text ''Hello World''. A Mime-Header is added to the mail content for better compatibility.


== Configuration ==
== Configuration ==