@Crusiatus Black
23-May-2008 05:00 

Code below works without errors

"Da Duder"//senders name
$email ""//senders e-mail adress
$recipient ""//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 :)
2008-08-22 17:16:46
Under windows there is a bug in php/mail

See here:

this results in you being unable to send 'From: Full Name <>'

Workaround is:

Set the following before calling the mail function:

ini_set('sendmail_from', ';
2008-09-01 08:17:35
The workaround mentioned above only works with IIS 5 assuming you've configured the Virtual SMTP Server to accept relays. 

In IIS console, right-click SMTP Virtual Server and choose "Properties". On "Access" tab, click "Relay..." button and make sure "All except the list below" is selected. 

Warning: This is just a quick fix which exposes a security risk because allowing your SMTP server to be a relay with anonymous access could make your computer susceptible to becoming a spam zombie.  You should properly add your computer's IP address to the list and choose "Only the list below" instead to lock it down.
2008-11-06 00:15:26
2 points have to be set :

("SMTP","" );

or set them in the php.ini file

By doing this, i have fixed definetly this problem :-)
2009-04-15 13:34:37
I use this script to test webapps using mail with this little php script saved as /usr/sbin/sendmail : 

    // Program : Fake send mail
    // Author : pouletfou at gmail
    // Description : save this file as /usr/sbin/sendmail
    //  and you can test your PHP applications using mail
    //  by looking at the /tmp/fakesendmail.log files.


$log fopen (LOGFILE,'a+');

fwrite($log,"\n".implode(' ',$argv).
" called on : ".date('Y-m-d H:i:s')."\n");


2009-08-06 13:39:31

    Поддержать сайт на родительском проекте КГБ