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
PHP form mailer not working
Moderator: General Moderators
- jaoudestudios
- DevNet Resident
- Posts: 1483
- Joined: Wed Jun 18, 2008 8:32 am
- Location: Surrey
Re: PHP form mailer not working
Does your 2nd hosting account run linux?
Re: PHP form mailer not working
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:
Go get your provider's SMTP server, contact them or browse their website.
Code: Select all
ini_set('SMTP','smtp.server.of.your.provider');