IT Systems Engineering

Send mail from a script in Solaris

I used mailx command, here is the syntax:

If you want to send to one person:

echo “body of the e-mail” | mailx -s “test subject” recipient@hotmail.com

If you want to CC to multiple people:

echo “body of the e-mail” | mailx -s “test subject” –c “mail1@live.com,mail2@live.com” recipient@hotmail.com

One Comment

  • sundar kannan

    How to send the mail through an SMTP server ?
    I used the -S option , but solaris 11 didn’t understand -S option.

Leave a Reply to sundar kannan Cancel reply

Your email address will not be published. Required fields are marked *

Prove that you are a human *