Click to See Complete Forum and Search --> : PHP: SMTP Settings


jakkihm
01-10-2007, 09:22 AM
Hi,

I'm testing an email form I've made but I keep receiving this error message:

Warning: mail(): Failed to connect to mailserver at "localhost" port 25,
verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
in c:\program files\easyphp1-8\www\Contact\send_email.php on line 8

Here are my mail settings in php.ini. How should I change them so that
I can send email form.

[mail function]
; For Win32 only.
SMTP = localhost
; For Win32 only.
sendmail_from = me@localhost.com


Thanks !

MrCoder
01-10-2007, 06:28 PM
You will need to setup some kind of SMTP service on your local machine, or use settings from another SMTP server such as your ISP's

jakkihm
01-11-2007, 09:36 AM
Thanks MrCoder,
But how can I setup a SMTP service on my machine ?

MrCoder
01-11-2007, 10:51 AM
If you contact your ISP they will most likely give you the details you need mate.