|
Posted by Jean Pierre Daviau on 07/27/07 17:14
On the command line
I have tried helplessly "C:\Program
Files\EasyPHP1-8\php\php.exe" -check-f mail.php
function bureaudeposte($message){
ini_set(SMTP, 'relaixxxxxxxx.xxxx.xx);
$subject = 'Bonjour ';
$headers = 'From: Jean Pierre Daviau
<6eWmA67gxAebq@jeanpierredaviau.com>' . "\r\n";
// Envoi
//$text = str_replace("\n", "<p>", $environs);
$text = wordwrap($message, 70, " ", 1);
//$text = chunk_split($message, 70, "\n");
$text = str_replace(chr(26), ' ', $text);
//$text = wordwrap($message, 70, true)
mail('Moi <6eWmA67gxAebq@jeanpierredaviau.com>', $subject,
$text , $headers);
}
$environs = "";
foreach ($_ENV as $key => $value) {
$environs .= $key . $value . "\n";
}
bureaudeposte($environs);
[Back to original message]
|