what is smtp,smtp_port?and how can it get?
+1
A:
If you have a Windows server, you need to specify the address (domain name och IP) to an sending e-mail server. On real operating systems PHP will always use your local Mail Transer Agent (MTA).
This is clearly explained in the PHP manual: http://php.net/manual/en/mail.configuration.php#ini.smtp
Also, this question is better asked on Serverfault.com
Emil Vikström
2010-01-08 07:30:33
Something in your answer tells me you don't like Windows :D
Gordon
2010-01-08 08:17:42
Gordon ;-) It's just really frustrating to work with such unlogical design choices.
Emil Vikström
2010-01-08 10:38:28