I have set up my pc as a web server using apache2triad.
Everything runs fine for my web but having problems using the mail() function.
I have setup my email account in outlook to test it and I can send mail to a friends hotmail and receive mail back fine.
however like I said everytime I use mail() to send something it just doesn't work.
If the mail() is sending to my email address on my server it works ok though.
using windows xp
php.in configured as follows.
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
I've also tried
[mail function]
; For Win32 only.
SMTP = smtp_port = 25
but still nothing goes outside my LAN.
If I couldn't send/receive from outlook I might understand a little more but I'm not sure how that works and mail() doesn't.
I'm new to php and was wondering if there was some small detail I'm missing.
Here's one of the many attempts.
$email = mail ( "my_email@hotmail.com", "Please work", "Running out of hair very rapidly",
"From: admin@
Any advice would be appreciated (Big time)
Everything runs fine for my web but having problems using the mail() function.
I have setup my email account in outlook to test it and I can send mail to a friends hotmail and receive mail back fine.
however like I said everytime I use mail() to send something it just doesn't work.
If the mail() is sending to my email address on my server it works ok though.
using windows xp
php.in configured as follows.
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
I've also tried
[mail function]
; For Win32 only.
SMTP = smtp_port = 25
but still nothing goes outside my LAN.
If I couldn't send/receive from outlook I might understand a little more but I'm not sure how that works and mail() doesn't.
I'm new to php and was wondering if there was some small detail I'm missing.
Here's one of the many attempts.
$email = mail ( "my_email@hotmail.com", "Please work", "Running out of hair very rapidly",
"From: admin@
Any advice would be appreciated (Big time)