Project

General

Profile

Bug #18701 » mail.php

Administrator Admin, 2008-04-25 17:35

 
<?php
$empfaenger = 'andreas.otto@dkd.de';
$betreff = 'Mail Test PHP';
$nachricht = 'Test 1, 2, 3 ...';
$header = 'From: john@example.com' . "\r\n" .
'Reply-To: john@example.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
$res = mail($empfaenger, $betreff, $nachricht, $header);

var_dump($res);

//$empfaenger = 'John Doe <john@example.com>';
$header = 'From: John Doe <john@example.com>' . "\r\n" .
'Reply-To: john@example.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
$res = mail($empfaenger, $betreff, $nachricht, $header);

var_dump($res);

?>
(2-2/7)