I tried the below two commands.
1.
From: mail_id
To: Recipient_mail_id
Hi, this is my message, and I'm sending it to you!
.
echo "My message" | sendmail -s subject Recipient_mail_id
But didn't get any mail to the recipient's mail address.
SMTP server is installed on another server and it is up and running. So can anyone help me out on how to send a test email through that SMTP server using sendmail or smtp commands?