[EMAIL PROTECTED] wrote on 29-08-2003 04:38:24 PM:

> 
> > Hi - I'm new to this group, and relatively new to linux....
> > (I work in it every day and have done for the past 8-10months or so - 
but
> > it has been all in VI editing HTML & PERL scripts etc. so no specific
> > linux commands besides the basics)
> > 
> > but now I have reached a point in the PERL scripts that it sends 
emails
> > out to a list of users... however, when they receive them, it is 
addressed
> > from 'nobody'. We REALLY REALLY need to change that!!!
> > 
> > I use the command 'mail'  in the form
> > mail -s subject [EMAIL PROTECTED] < /tmp/mailout.$$
> 
> You're better off using the Perl module Mail::Sendmail
> to send mail (and no, this doesn't use the sendmail
> program undeneath).
> 
If this is not possible to install the module, use the sendmail command
`sendmail -f [EMAIL PROTECTED] [EMAIL PROTECTED] < /tmp/mailout.$$`

(Remember, you will need to have "Subject: Your subject here" on the first 
line of of /tmp/mailout.$$)
Also note, that sendmail is not normally in a users path.

Cheers,

Scott
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to