I solved this using ini_set("sendmail_from", "[EMAIL PROTECTED]");
and ini_set("SMTP", "mail.server"); everytime i needed to use mail(). "Ignacio DomíNguez" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I get the following error every time I send mail. > > Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or > custom "From:" header missing > > using this code: > > mail("[EMAIL PROTECTED]", "Subject", "This is the text", "From: [EMAIL PROTECTED]"); > > > > i have configured my php.ini to read "sendmail_from = [EMAIL PROTECTED]" > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php