1753797 Members
8704 Online
108805 Solutions
New Discussion юеВ

sending mail

 
SOLVED
Go to solution
Khashru
Valued Contributor

sending mail

I am using the following command to send mail

mailx -s "Helpdesk unauthorized access" xyz@abc.com

I want to mark the mail as urgent. ie change priority.
13 REPLIES 13
Steven E. Protter
Exalted Contributor

Re: sending mail

Shalom,

I don't think mailx can do that.

I know that mailer's like squirrelmail can do this on the command line with sendmail, but mailx is a little more baisc.

I read the man page and found this on google.

http://www.calpoly.edu/~ias/userguides/CentralUNIX/word/AIX80501.DOC

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
Khashru
Valued Contributor

Re: sending mail

if i want to cc the mail then what will be the format.
Steven E. Protter
Exalted Contributor
Solution

Re: sending mail

Shalom,

-r address

mailx -s "Helpdesk unauthorized access" xyz@abc.com -r schmo@bagel.com

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
Khashru
Valued Contributor

Re: sending mail

-r cahnges the sender address. i want to send the mail as cc to someone.
Steven E. Protter
Exalted Contributor

Re: sending mail

Oops.

I'll test it this time.

Tests didn't work out.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=30423&admit=-682735245+1139875361845+28353475

The following script, which is admitedly over engineerred does do cc with sendmail, not mailx.

http://www.hpux.ws/mailfile2


I apologoize for my inaccurate response before. Feel free to zero point this one without fear of offense.

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
Cem Tugrul
Esteemed Contributor
Cem Tugrul
Esteemed Contributor

Re: sending mail

The links above for you to
"if i want to cc the mail then what will be the format."
Good Luck,

Ps: Do not forget to submit points!!!
:-))
Our greatest duty in this life is to help others. And please, if you can't
Muthukumar_5
Honored Contributor

Re: sending mail

You can not achive this with mailx client. Go with sendmail with << operation as,

sendmail -t <<-EOF
To: id@domain.com
Cc: cid@domain.com
Subject: Subject

Contents
EOF

It will do it.

--
Muthu
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: sending mail

Hello,

Why dont you use "pine", a good email client for HP-UX. It has got lot of oprions and nifty too.

"pine" is part of Internet express,

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1111

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"