Help with Script that sends out HTML emails [SOLVED-Agn]

Sam Varshavchik mrsam at courier-mta.com
Tue Sep 20 02:26:54 UTC 2005


Ow Mun Heng writes:

> 
> $PORTFOLIO_SCRIPT --html > $TEMPFILE 2>/dev/null>&1
> && /usr/sbin/sendmail -t < $TEMPFILE && rm $TEMPFILE
> 
> Next, I think the above code can be enhanced by not using a tempfile.
> perhaps a < EOF 

Use a pipe:

$PORTFOLIO_SCRIPT --html | /usr/sbin/sendmail -t

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20050919/36c573bf/attachment-0002.bin 


More information about the users mailing list