Re: mail() problems...

From: Date: Fri, 06 Dec 2002 19:43:42 +0000
Subject: Re: mail() problems...
References: 1 2 3 4 5 6  Groups: php.windows 
Request: Send a blank email to php-windows+get-17326@lists.php.net to get a copy of this message
Anthony, > The PHP mail scripts were taken from Julie Meloni's book on PHP called "Fast > and East" on pp. 116-117. (PrimaTech). > In fact, she writes: > "If you're using PHP4 on Windows, look for the following lines in your > php.ini file: > 1. For the SMTP entry, use 'localhost" or the name of the outgoing > mailserver you use in your e-mail client. > 2. For the sendmail_from entry, enter your e-mail address. > For example in my php.ini file on Windows contains this: > [mail function] > SMTP = localhost > sendmail_from = julie@thickbook.com > END QUOTE > > So that's what I did -using localhost - and I get: > "failed to connect". Ok, and it didn't work, so have you tried the alternative Julie offers? Please review our earlier posts: you can only use localhost if the local machine is running an SMTP server - if it's not, you'll have to point PHP at someone else's SMTP server. All this allows you/PHP to use an SMTP server anywhere, but it MUST see an SMTP server somewhere! Regards, =dn

« previous php.windows (#17326) next »