best/easiest commandline email program for mass-email

Hal Burgiss hal at burgiss.net
Tue Feb 2 17:47:56 UTC 2010


On Tue, Feb 02, 2010 at 12:32:14PM -0500, Alex Janssen wrote:
> Hal Burgiss wrote:
> > On Wed, Jan 27, 2010 at 03:09:46PM -0500, Alex Janssen wrote:
> >   
> >   echo
> >   # Body goes now ...
> >   cat $tempfile
> > ) | $sendmail $ffrom
> >
> >   
> In your example above, what is the $ffrom parameter to $sendmail?  From 
> what I read, that would be to whom the mail is sent.  Is that just a 
> dummy parameter?

You can remove/ignore that. Its the sendmail '-f' option. There are 2 From
headers: the envelope and the message From that is visible in the email
itself. The envelope 'From' is typically not visible to email clients. The
envelope From is usually a system generated thing. So it is sometimes useful
to force this to something else. For example, in a shared hosting environment
where there are many domains on the same server.


-- 
Hal




More information about the ubuntu-users mailing list