PHP email function error

the mail() function

Moderators: macek, egami, gesf

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

Re: PHP email function error

Post by TheProdigyGuy » 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 =192.168.0.12
smtp_port = 25

; For Win32 only.
sendmail_from =validaccount@192.168.0.12
;============== 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:
validaccount@192.168.0.12

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

Who is online

Users browsing this forum: Bing [Bot] and 1 guest