note 60863 added to ref.mail

From: Date: Wed, 18 Jan 2006 18:08:34 +0000
Subject: note 60863 added to ref.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-102037@lists.php.net to get a copy of this message
As the wrapper script is the only solution on an ISP level, but not every distro ships with PHP CLI enabled, here is a similar wrapper script in perl (written by Henk vd Toorn) #!/usr/bin/perl use strict; use warnings; use Digest::MD5 qw(md5_hex); my @input = <STDIN>; my $file = join "", @input; my $tmpfile = "/tmp/php_mail/temp".md5_hex($file).".mail"; open(TMP, ">$tmpfile") or die "Could not open $tmpfile\n"; $file =~ s/^bcc:/x-wlsspam-bcc:/img; $file =~ s/^cc:/x-wlsspam-cc:/img; print TMP $file; print $file; close(TMP); my $cmd = '/usr/sbin/sendmail -t -i '; $cmd .= join " ", @ARGV; $cmd .= "<$tmpfile"; $cmd; unlink ($tmpfile); ---- Server IP: 194.109.193.119Probable Submitter: 213.84.75.124 ---- Manual Page -- http://www.php.net/manual/en/ref.mail.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+60863 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60863&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60863&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60863&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60863&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60863&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60863&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60863&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+60863&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#102037) next »