I tried the below two commands.
-
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?
sendmail(or whatever it actually is), it's a good idea to examine the log files (e.g./var/log/mailin many cases). Also learn about the format of E-Mail messages ("RFC 822" should get you started).