PHP email function error

the mail() function

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 215
Joined: Wed Dec 07, 2011 5:25 pm

Fri Feb 24, 2012 3:44 pm

Hello prog.
You need setup mail server on you machine to send mails.
Install Hmail server (it's free and great software) then configure your php.ini

;=========== snippet from php.ini
[mail function]
; For Win32 only.
smtp_port = 25

; For Win32 only.
sendmail_from =validaccount@
;============== END OF SNIPPET==============

note: You have create simple rule on your mail server to send mails without authentication(for localhost only)
Plus you have to change:

to your needs.

I'm using it and i would like to say it works like charm for me.*At least on my network.

Post Reply