1834149 Members
2428 Online
110064 Solutions
New Discussion

sendmail

 
SOLVED
Go to solution
Jade Bulante
Frequent Advisor

sendmail

I'd like to send email using sendmail. I need help since I've never used it before. How do I start writing? How do I end the email and send it? Sendmail is installed in our HPUX system and it works. Just need to know how to send.
4 REPLIES 4
Colin Topliss
Esteemed Contributor
Solution

Re: sendmail

Here's an example:

mail user@i.dont.know.com
This is my message


The ends your message.

You could use mailx if you like - that allows you more options:

mailx -s "This is my subject" -r myname@my.system.com user@i.dont.know.com
This is my next message


The -s allows you to specify a subject.
The -r sets the reply address.

Do a man on either mail or mailx to see what other options are available to you.

Col
Michael Tully
Honored Contributor

Re: sendmail

Do yourself a big favour, start with elm. It has an interactive screen.

You will most likely still need to ad a relay server to the /etc/mail/sendmail.cf file. Look for the line that starts with DS

e.g
DSmymailservername
Stop and restart sendmail on completion.
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
Anyone for a Mutiny ?
Jade Bulante
Frequent Advisor

Re: sendmail

Thanks guys. It works.
Jade Bulante
Frequent Advisor

Re: sendmail

It works. Thanks.