I have created a simple php code
$toName = "Ricky";
$to_email = "ricky@hotmail.com";
$fromName = "Sam";
$fromEmail = "sam@pacific.net.hk";
$toSubject = "Sam has sent you a Flash ecard";
$message = "TESTING";
mail($toName." <".$to_email.">",$toSubject, $message, "From:
".$fromName." <".$fromEmail.">");
Also I have changed php.ini
[mail function]
;For Win32 only.
SMTP = smtp.pacific.net.hk
;For Win32 only.
sendmail_from = me@localhost.com
;For Win32 only.
sendmail_from = sam@pacific.net.hk
But there is an error:
Warning: Failed to Connect in c:\apache\htdocs\wi\test3.php on line 8
Could somebody give me some hints why I couldn't send out email. Is there any setting I have missed?
Thanks