best/easiest commandline email program for mass-email
Alex Janssen
alex at ourwoods.org
Tue Feb 2 17:26:25 UTC 2010
Alex Janssen wrote:
> Hal Burgiss wrote:
>
>> You can also echo text directly to "sendmail", but you have to build your
>> headers from scratch. Not as difficult as it sounds:
>>
>> ( echo "From: $from"
>> echo "To: $to"
>> echo "Subject: $subject"
>> echo "Reply-To: $replyto"
>> ! [ "$cc" == "" ] && echo "Cc: $cc"
>> ! [ "$bcc" == "" ] && echo "Bcc: $bcc"
>> echo "$x_lines"
>> if $HTML; then
>> echo "MIME-Version: 1.0"
>> echo "Content-Type: text/html; charset=\"ISO-8859-1\""
>> fi
>> # Add required blank line to separate header/body.
>> echo
>> # Body goes now ...
>> cat $tempfile
>> ) | $sendmail $ffrom
>>
>>
>>
>>
> Would postfix work in the above example?
>
>
>
I see that was a dumb question. Postfix provides a sendmail equivalent.
--
Ourwoods.org
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. - Albert Einstein (275)
More information about the ubuntu-users
mailing list