Specifying "From" addr when emailing from a cronjob

From: Hobbs, Richard (hobbs@mongeese.co.uk)
Date: Thu Oct 16 2003 - 12:57:44 EDT


Hello,

First of all... apologies if this isn't as Solaris-related as some of the
problems on here, but this still seemed like the best place to ask for help.

I have a cronjob that automatically sends the contents of a file as the body of
an email each month. The problem is that it uses the default "From" address
(which is the username@localmachine). I therefore need to specify my own "From"
address. here's the command i'm currently using:

  mail -s 'Test' hobbs@mongeese.co.uk < /home/textFile

Setting the Reply-To isn't good enough, because i want to use this command to
email subscribers on my mailing list. My list only allows emails if the "From"
address specified is also subscribed.

My linux box has a "-a" option that allows me to specify my own headers on the
cmdline, but the version i'm using on my server doesn't allow this.

Any ideas??

Thanks in advance,
Hobbs.

-- 
Richard Hobbs            http://unixforum.co.uk     http://mongeese.co.uk
hobbs@mongeese.co.uk                                http://fishsponge.co.uk
____________________________________________________________________________
Would you like jokes in your email?   Email jokes-subscribe@fishsponge.co.uk
Would you like to discuss unix/linux? Email ufq-subscribe@unixforum.co.uk
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:27:18 EDT