My config file is set correctly, with no mention of localhost, and yet when I send an email I get:-
mail(): Failed to connect to mailserver at “localhost” port 25, verify your “SMTP” and “smtp_port” setting in php.ini
The relevant part of php.ini is:
[mail function]
; For Win32 only.
smtp = relay.advantage.co.nz
smtp_port = 25
There are no stray php.ini files on the server. Localhost is not selected on the IIS SMTP E-Mail settings.
Where is it getting the localhost from?