cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Form mail not sending

 
1 REPLY 1

Re: Form mail not sending

I think I posted a blank message by mistake... when submitting a form from my website I get this error message:

 

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 G:\PleskVhosts\rrb-parts.com\httpdocs\contactformmailer.php on line 30

 

By adding these 2 lines to the form mail php script:

 

ini_set('SMTP','relay-hosting.secureserver.net');
ini_set('smtp_port',25);

 

it gets past the error message but the contents of the form are not being mailed. Can anyone help please?

 

Thanks, Nigel.