Difference between revisions of "Sendmail"

From RHS Wiki
Jump to navigation Jump to search
(Created page with "Create a file with your email:<syntaxhighlight lang="text"> To: my@email.com Subject: sendmail test two From: me@myserver.com And here goes the e-mail body, test test test.....")
Tag: visualeditor
 
m
Tag: visualeditor
 
Line 7: Line 7:
 
</syntaxhighlight><syntaxhighlight lang="bash">
 
</syntaxhighlight><syntaxhighlight lang="bash">
 
sendmail -vt < ~/mail.txt
 
sendmail -vt < ~/mail.txt
 +
</syntaxhighlight>
 +
 +
== Swaks (SMTP Swiss Army Knife) ==
 +
<syntaxhighlight lang="bash">
 +
echo "This is the message body" | swaks --to rafael.herrero.contractor@bbva.com --from "rraboards@dyndns.org" --server in-v3.mailjet.com --auth LOGIN --auth-user "9******fe" --auth-password "8e1********fc" -tls
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest revision as of 11:25, 29 January 2020

Create a file with your email:

To: my@email.com
Subject: sendmail test two
From: me@myserver.com

And here goes the e-mail body, test test test..
sendmail -vt < ~/mail.txt

Swaks (SMTP Swiss Army Knife)[edit]

echo "This is the message body" | swaks --to rafael.herrero.contractor@bbva.com --from "rraboards@dyndns.org" --server in-v3.mailjet.com --auth LOGIN --auth-user "9******fe" --auth-password "8e1********fc" -tls