Commands to send mail from linux machine


1. sendmail command:
/usr/sbin/sendmail abc@xyz.com
Subject: Test subject
This is a test mail.

Use CTRL + D to send mail. 

2.  mail command:
echo "Mail body" | mail -s "Mail subject" abc@xyz.com
Share on Google Plus

About Admin

Arun is a JAVA/J2EE developer and passionate about coding and managing technical team.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment