Page 1 of 1

PHP form mailer not working

Posted: Sun Aug 03, 2008 12:49 am
by iamxander
Hi guys, sorry for posting a question too early(this is my very first post). I'm using a form script found here. http://thedemosite.co.uk/phpformmailer/ - i've tried it on a godaddy hosted account. No problem. But when I applied it to a different site hosted in a different webhost it doesn't work.. We do get to receive the "message sent" confirmation but I am not recieving any message off the form.

I've tried to ask the web host to resolve this but it seems they are a bit incompetent in resolving this either, Any chance any of you guys encountered this? Is there a work around using the existing scripts? Or do I need to look for a different script just for this hosting account? thanks in advance

Re: PHP form mailer not working

Posted: Sun Aug 03, 2008 2:07 am
by jaoudestudios
Does your 2nd hosting account run linux?

Re: PHP form mailer not working

Posted: Sun Aug 03, 2008 9:53 am
by pkbruker
I'm unfamiliar with the script you use, but generally when sending mails through PHP, you must specify a SMTP server. The SMTP server (mail server) differs from provider to provider. To change the SMTP server PHP uses to send e-mails, use the following code:

Code: Select all

 
ini_set('SMTP','smtp.server.of.your.provider');
 
Go get your provider's SMTP server, contact them or browse their website.