PHP form mailer not working

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
iamxander
Forum Newbie
Posts: 1
Joined: Sun Aug 03, 2008 12:38 am

PHP form mailer not working

Post 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
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: PHP form mailer not working

Post by jaoudestudios »

Does your 2nd hosting account run linux?
pkbruker
Forum Commoner
Posts: 32
Joined: Sun Aug 03, 2008 9:36 am
Location: Oslo, Norway

Re: PHP form mailer not working

Post 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.
Post Reply