1838246 Members
3980 Online
110125 Solutions
New Discussion

sendmail

 
Dave Elliott
Frequent Advisor

sendmail

Just a quickie, i ahve after much swearing got sendmail working and it is currently sending server check info to NT mail accounts.
the slight prob is that it has no subject is there an option that i can include to give a subject, i have reviewed the man page to no avail.
can some help.


there is no such thing a problem just a challenge.
andy
Oracle DBA
8 REPLIES 8
Andreas Voss
Honored Contributor

Re: sendmail

Hi,

i don't know what kind of 'sending server check' you use.
if it's a script you can use
mailx -s 'subject' ....
to add subject to the email.

Regards
Pete Randall
Outstanding Contributor

Re: sendmail

Hi Andy,

Here's a thread that ought to do the trick for you:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf6e75e938a10d6118ff40090279cd0f9,00.html


Pete

Pete
Robin Wakefield
Honored Contributor

Re: sendmail

Hi Andy,

To get a subject with sendmail, send the following example:

echo 'Subject: hello\n\nthis is a message' | /usr/lib/sendmail address@yourcompany.com

in other words the 1st line contains the word "Subject:" followed by the subject, then a blank line, then the body of the message.

rgds, Robin
Robert-Jan Goossens
Honored Contributor

Re: sendmail

Hi,

Mailx -s "subject a/z" user@mail.com

Robert-Jan.
Dave Elliott
Frequent Advisor

Re: sendmail

guys
just to say that i have assigned pionts although they don't seem to want to show.
can a replyer let me know if they have assigned ok.
regards

andy
Oracle DBA
Robert-Jan Goossens
Honored Contributor

Re: sendmail

Hi Andrew,

No points added :-)

Robert-Jan.
Pete Randall
Outstanding Contributor

Re: sendmail

Andy,

No, the points don't show. Sometimes people have to assign them a couple of times to get them to stick. The folks at HP are working on the problem.

Give it another try.

Pete

Pete
Dave Elliott
Frequent Advisor

Re: sendmail

tyied again and it says its done it
regards
andy
Oracle DBA