Lunarpages Web Hosting Forum

Author Topic: PHP mail() on Crush  (Read 2787 times)

Offline michael.w

  • Spacescooter Operator
  • *****
  • Posts: 42
PHP mail() on Crush
« on: August 05, 2010, 07:03:16 AM »
I am getting an error sending e-mail on crush.  My understanding is that the e-mail server is on localhost and that authentication is not required.

Here is the response to a simple mail test.

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 D:\inetpub\vhosts\reflective-solutions.net\httpdocs\rdp\mail.php  on line 9

Should I be using a different smtp server?  The above works fine on the Lunarpages linux hosts.

thanks,
Michael

Offline michael.w

  • Spacescooter Operator
  • *****
  • Posts: 42
Re: PHP mail() on Crush
« Reply #1 on: August 05, 2010, 07:17:10 AM »
Resolved.  There is a bit of conflicting information on the forums.  However, it appears that the SMTP server on the Windows accounts is "mail.<domain name>" and not "localhost".

Michael