1833784 Members
4207 Online
110063 Solutions
New Discussion

SendMail...

 
SOLVED
Go to solution
Rafael Mendonça Braga
Regular Advisor

SendMail...

Hello Guys...

I would like to send an automatic e-mail everyday with some reports using "sendmail" utility on HP-UX 11i, but I would like to receive it with Subject and Content...

The problem is that I know only how to send it with Subject Or with Content, not woth both at the same time!!!

Can you help me?!

Thanks,

Rafael M. Braga
5 REPLIES 5
Gopi Sekar
Honored Contributor

Re: SendMail...


i hope you have mail utility which can take -s option. in that case,

echo "Body of the mail" | mail -s "Mail subject" email-ids

should do the work for you

Regards,
Gopi
Never Never Never Giveup
Jean-Luc Oudart
Honored Contributor
Solution

Re: SendMail...

Hi

what not use mailx command ?

mailx -s"" me@mycompany.com <body line1
body line 2
EOP

Regards
Jean-Luc
fiat lux
Vibhor Kumar Agarwal
Esteemed Contributor

Re: SendMail...

For everyday you can write a small scipts using cron.
Vibhor Kumar Agarwal
Geoff Wild
Honored Contributor

Re: SendMail...

Or ...

mailx -s "this is my subject" you@yourdomain.com
Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Rafael Mendonça Braga
Regular Advisor

Re: SendMail...

Thanks!! I'm using now mailx!!!