![]() |
Mail function..
Hi!
I'm having some trouble with my mail function. Or well.. erh.. just look :-P php Code:
gives me this.. Code:
Warning: mail() [function.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:\..user.php on line 358but does the email function work other than that? Cause I can't test it.. since I don't have an smtp server.. |
yes it does work, this means you have no smtp server for it to actually transfer the email. but like the error said, you can set it in the ini or use the ini_set function.
|
Quote:
|
Quote:
PHP Code:
|
Quote:
|
Quote:
localhost:6065 as the port for the smtp or 127.0.0.1:6065 or whatever. |
What do I need to set that up? xDD hhaha, sorry for basic questions :O
|
how to set up smtp server - Buscar con Google
;) stmp server is like apache or mysql server. This mean that it also has an open port and do stuff.... |
You may not need to set one up, if your ISP provides you with a POP3 email address, chances are they have an outgoing SMTP server that you can use. Look up your ISP's website, or contact their tech support, and look up information regarding 'setting up your email'. Find out the address of their SMTP, usually mail.yourisp.com, and then you just need to add this into your PHP.INI file, and wala. Much easier than setting up sendmail or some equivalent.
-m |
| All times are GMT. The time now is 03:45 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0