hi all Im using wamp 2.0 because i couldnt get wamp 5 to work. Any way Im having trouble with the mail function this is what my ISP told me-
The type is pop3. The incoming needs to be pop.centurylink.net
and the outgoing needs to be smtp.centurylink.net
and the incoming port needs to be 110 and the outgoing port needs to be 587. also make sure that use SSL is not selected and outgoing server requires authentication is selected. the account name needs to have the entire email address including the @centurylink.net.
And this is my code-
$to = $email;
$subject = "subject here";
$message = "message goes here<br />"
. $name . "," . $name2;
$from = "site name";
$headers = "From:" . $from;
mail($to,$subject,$message,$headers);
and this is from my php.ini file thats path is C:\wamp\bin\php\php5.3.0-
[mail function]
; For Win32 only.
;
http://php.net/smtp
SMTP =
smtp@centurylink.com
;
http://php.net/smtp-port
smtp_port = 587
; For Win32 only.
;
http://php.net/sendmail-from
sendmail_from =
smtp@centurylink.com
and this is the error I get-
Warning: mail() [function.mail]: Failed to connect to mailserver at "smtp@centurylink.com" port 587, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in on line 178
Can somebody please tell me whats wrong