Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $mail -s "Some random subject" -a "From: some@mail.tld" to@mail.tld
- mail -s Subject -S from=sender@example.com recipient@example.com
- echo 'my message blablanSecond line (optional of course)' |
- mail -s "Your message title"
- -r 'Your full name<yourSenderAdress@yourDomain.abc>'
- -Sreplyto="yourReplyAdressIfDifferent@domain.abc"
- destinatorEmail@destDomain.abc[,otherDestinator@otherDomain.abc]
- apt-get install mailutils
- $mail -s "Subject" destination@example.com
- From: Joel <joel@example.com>
- Hi!
- .
- -aFrom:Servername-Server@mydomain.com
- cat /root/Reports/ServerName-Report-$DATE.txt | mail -s "Server-Name-Report-$DATE" myemailadress@mydomain.com -aFrom:Servername-Server@mydomain.com
- echo "This is the main body of the mail" | mail -s "Subject of the Email" recipent_address@example.com -- -f from_user@example.com -F "Elvis Presley"
- echo "This is the main body of the mail" | mail -s "Subject of the Email" recipent_address@example.com -aFrom:"Elvis Presley<from_user@example.com>"
- echo "Sample body" | mail -s "Test email" from=sender-addrs@example.com recepient-addres@example.com
- $ echo -e "testing email via yourisp.com from command linennsent on: $(date)" | mailx -r "Foghorn Leghorn <sender@yourisp.com>" -s "test cli email $(date)" -- recipient@somedomain.com
Add Comment
Please, Sign In to add comment