On 10/25/07, Richard Heyes <[EMAIL PROTECTED]> wrote:
> Richard Heyes wrote:
> >> in my php.ini, I have this set
> >> sendmail_from = [EMAIL PROTECTED]
> >>
> >> yet when I do this command :("[EMAIL PROTECTED]","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("[EMAIL PROTECTED]",
> > "TEST MAIL",
> > "TESTING MAIL",
> > '[EMAIL PROTECTED]');
> > ?>
> >
>
> Oops. That should be:
>
> <?php
> mail("[EMAIL PROTECTED]",
> "TEST MAIL",
> "TESTING MAIL",
> 'From: [EMAIL PROTECTED]');
> ?>
>
> --
> 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
>
>
It sounds like you need to restart IIS to allow the changes to
php.ini to take effect.
--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107
Give a man a fish, he'll eat for a day. Then you'll find out he was
allergic and is hospitalized. See? No good deed goes unpunished....
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php