note 74423 added to function.chunk-split
| From: | mark | Date: | Wed, 11 Apr 2007 05:12:28 +0000 |
| Subject: | note 74423 added to function.chunk-split | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-125276@lists.php.net to get a copy of this message | ||
When using ssmtp for simple command line mailing:
$mail_to = "destination@emailbox.com";
$msg = "this would be an actual base64_encoded gzip msg";
$date = date(r);
$mail = "X-FROM: root@sender.org \n";
$mail .= "X-TO: ".$mail_to. " \n";
$mail .= "To: ".$mail_to. " \n";
$mail .= "Date: $date \n";
$mail .= "From: root@sender.org \n";
$mail .= "Subject: lifecheck \n";
$mail .= $msg." \n";
exec("echo '$mail' | /usr/sbin/ssmtp ".$mail_to);
be sure to invoke chunk_split() on your message body - ssmtp becomes unhappy with long lines and
will subsequently trash your message.
----
Server IP: 69.147.83.197
Probable Submitter: 76.22.144.240
----
Manual Page -- http://www.php.net/manual/en/function.chunk-split.php
Edit -- https://master.php.net/note/edit/74423
Del: integrated -- https://master.php.net/note/delete/74423/integrated
Del: useless -- https://master.php.net/note/delete/74423/useless
Del: bad code -- https://master.php.net/note/delete/74423/bad+code
Del: spam -- https://master.php.net/note/delete/74423/spam
Del: non-english -- https://master.php.net/note/delete/74423/non-english
Del: in docs -- https://master.php.net/note/delete/74423/in+docs
Del: other reasons-- https://master.php.net/note/delete/74423
Reject -- https://master.php.net/note/reject/74423
Search -- https://master.php.net/manage/user-notes.php