xampp can't send mail in my local
Posted: 03. March 2011 11:33
hi all,
It seems that I can't send a test mail in my local host to test my code
and I have this in my php.ini
can someone help me so that I can send email in my local?
Many Thanks
It seems that I can't send a test mail in my local host to test my code
- Code: Select all
$from="From:xxxxxx@xxxxxx.com";
$contents="this is a test";
$subject="hello";
$to = "xxx@xxx.com";
$sent = mail($to, $subject, $contents, $from);
and I have this in my php.ini
- Code: Select all
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25
can someone help me so that I can send email in my local?
Many Thanks