I'm trying to send off a bulk email.. all BCC's.. ive tried everything i could find on google.. nothing seems to be working... ive checked my php.ini file as well and set it according to what i found on google...
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25
I get the error in my title and a portion of my php file is below... any help would be much appreciated..
$to = "";
$header = "From:me@gmail.com\r\n";
//Compiling BCC list
for($i=0; $i<$count; $i++)
{
if($i == 0)
$header .= $emailContacts[$i];
else
$header .= ",".$emailContacts[$i];
}
if(mail($to, $subject, $message, $header))
echo "MAIL pass";
else
echo "MAIL fail";
The error:
Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port"