Hello,

On 05/11/2002 04:56 AM, Tomator wrote:
>>I'm using WinXP with PHP as Apache's module and have PHP.INI in C:\winnt,
>>where is the line "SMTP = my.addres". However phpinfo() ALWAYS tells that
>>SMTP is "localhost". I can change thist only with ini_set(), but it
> 
> doesn't
> 
>>fix my problem - I can't send any e-mail from my PHP!
> 
> 
> OK, I've managed. I had to set "SMTP" and "sendmail_from" at script level,
> with ini_set() function. But I still don't know why PHP is not responding to
> changes in php.ini. Php.ini is stored in c:\winnt folder which is indicated
> (by phpinfo() ) as one containing php.ini. So, does everybody know why does
> this work that way?
> 
> I've of course restarted Apache (many times) and rebooted computer (twice),
> but I still can't see any effect of changing php.ini!

You may want to try this class to see exactly why your messages are not 
going through. I suspect that your SMTP server needs autentication.

http://www.phpclasses.org/smtpclass

You may also want to try that class with this wrapper to compose and 
send MIME formatted messages so it minimizes the chances of your 
messages being refused by servers that suspect of spam.

http://www.phpclasses.org/mimemessage



-- 

Regards,
Manuel Lemos


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

Reply via email to