I am not a server admin at all, so forgive me.
I uploaded my website to a new windows server and am using mail()
, but it's returning false. This indicates to me that the server is not properly set up to send emails. My php.ini has
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25
which I believe is the default.
I don't even know where to go from here. How can I check if SMTP is installed and working on port 25 of localhost? If it is, how can I get it to work with php mail()
? Do I need to change something in apache?
Windows doesn't (generally) run an SMTP daemon, so you'll need to set this SMTP value to the IP of a server that: