Re: mail from

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Richard Heyes wrote:
in my php.ini, I have this set
sendmail_from = admin.intranet@xxxxxxxxxxxxxxx

yet when I do this command :("dcastillo@xxxxxxxxxxxxxxx","TEST MAIL","TESTING MAIL"); I get this message Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\Inetpub\wwwroot\intranet\test.php on line 4

And if instead of using the php.ini directive you use the fourth argument to mail()?

Eg:

<?php
    mail("dcastillo@xxxxxxxxxxxxxxx",
         "TEST MAIL",
         "TESTING MAIL",
         'admin.intranet@xxxxxxxxxxxxxxx');
?>


Oops. That should be:

<?php
    mail("dcastillo@xxxxxxxxxxxxxxx",
         "TEST MAIL",
         "TESTING MAIL",
         'From: admin.intranet@xxxxxxxxxxxxxxx');
?>

--
Richard Heyes
+44 (0)800 0213 172
http://www.websupportsolutions.co.uk

Knowledge Base and HelpDesk software
that can cut the cost of online support

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux