cancel
Showing results for 
Search instead for 
Did you mean: 

Subject in SENDMAIL

Subject in SENDMAIL

Hi,

As it is placed "subject" (do I title of the content) when I use sendmail?

Thanks,

Orlando
Orlando Oliveira
3 REPLIES
Steven E. Protter
Exalted Contributor

Re: Subject in SENDMAIL

I'm attaching a script that acutally uses sendmail to send an email with a subject. A more detailed question would let me help more.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Helen French
Honored Contributor

Re: Subject in SENDMAIL

If you meant sending mail with a subject, use this command:

# mailx -s "type your subject here" user_email_id < email_content_file

OR

# elm -s "subject" ....
Life is a promise, fulfill it!
Mel Burslan
Honored Contributor

Re: Subject in SENDMAIL

(echo "subject: whatever subject";echo " "; cat textfile)|sendmail name@domain.com

should do what you want to do I believe, provided you have the text to send in a textfile. of course you can change "cat textfile" portion of command with multiple echo commands inside the paranthesis signs if it is more suitable to your purpose. Make sure to keep the echo " " portion as it is the header separator.
________________________________
UNIX because I majored in cryptology...