//flex table opened by JP

Click to See Complete Forum and Search --> : :Failed to connect Mail PHP


lastrezort
04-30-2003, 06:24 AM
I'm trying to send mail through PHP's Mail command. Here's what I've got;

mail($receiver, getMLText("notify_subject"), $msg);

$receiver = email taken from a mysql database field
getMLText gets the subject of the email
$msg = the message I'm sending (this works, don't worry)

I'm getting a Warning error saying

Warning: Failed to Connect in [path the php script is in] on line [# of line]

I checked my php.ini file and this is what is writen in the mail section:

SMTP=localhost ;for win32 only
sendmail_from = [my e-mail];for win32 only
;sendmail_path =;for unix only, may supply arguments as well (default is 'sendmail -t -i')

BTW, I'm worlink with WINNT4 with Apache server v. 1.3.24, php v.4.2.0 and MySQL DB v. 3.29.49

I've also tried to send an email using this form and getting the same message:

mail("[my e-mail adress]","","");

BTW, not behind a firewall

I've also seen that I need to have the "sendmail" configured correctly but I can't find anything that helps on the net... If that's my problem, could somebody here help with that please?

What could be the problem???

:confused:

lastrezort
05-06-2003, 10:07 AM
Never mind... stupid me... found out why... SMTP server's name not good... :rolleyes: