Hi Mike, > I'm trying to make PHP send email from a windows server, or rather, I'm > trying to help my girlfriend do it.
=well seeing there's a lady involved... > in php.ini the SMTP variable is set to her mail server (which does relay > for her netblock). > Also, the sendmail_from line is also set. =those are the two main settings to worry about - can I assume that you have checked that the PHP.INI file is being read? =please run the phpinfo() test and check the SMTP registration. =If you haven't already, please PING the SMTP server. > She is mainly trying to use ACID to mail intrusion detection reports out. > However, the test script I wrote for her that calls mail() also refuses to > send mail. =do you have/can you throw together an ultra-simple email script and see if that will go through? eg mail( you@youraddress, "THis is the subject", "This is the message", "From: emailfordummies@youraddress\n"); echo "mail away<BR>"; NB you may not need the \n, but you will need a sensible ToAddress (the first argument). > The error messages are not very helpful in diagnosing the problem. > Incidently, she is running PHP 4.0.6 with Apache 1.3.20. All other php > functions appear to work. =nevertheless they might help point/discard ideas. =also a snippet of code might be relevant. =Please advise, =dn (about the same s/w on WinNTWS 4.0 SP6a, with email working well) -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]