Under windows there is a bug in php/mail
See here: http://bugs.php.net/bug.php?id=28038
this results in you being unable to send 'From: Full Name <me@domain.com>'
Workaround is:
Set the following before calling the mail function:
ini_set('sendmail_from', 'me@domain.com);
- Einführung
- Installation/Konfiguration
- Vordefinierte Konstanten
- Mail-Funktionen
- ezmlm_hash — Berechnet den Hash-Wert, der von EZMLM benötigt wird
- mail — E-Mails senden
Some guy
01-Sep-2008 02:17
01-Sep-2008 02:17
dev at realynospamspcweb dot nl
22-Aug-2008 11:16
22-Aug-2008 11:16
@Crusiatus Black
23-May-2008 05:00
Code below works without errors
<?php
$Name = "Da Duder"; //senders name
$email = "email@adress.com"; //senders e-mail adress
$recipient = "PersonWhoGetsIt@emailadress.com"; //recipient
$mail_body = "The text for the mail..."; //mail body
$subject = "Subject for reviever"; //subject
$header = "From: ". $Name . " <" . $email . ">\r\n"; //optional headerfields
mail($recipient, $subject, $mail_body, $header); //mail command :)
?>
