need help getting the contact_form working

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
lopazopy

need help getting the contact_form working

Post by lopazopy »

I've got the contact_form tag in one of my pages and it says that my message has sent successfully, but I never get the email. Here is my code:

Code: Select all

{contact_form email="lopazopy@gmail.com"}

Is there something I need to know about my server to get it working? Here is the source from that page:

Code: Select all

<form action="" method="post" name="contactForm" style="font-weight: bold;">
	Your Name:<input type="text" name="name" value="" size="50" style="width: 350px; border: solid 1px black; display: block; margin-bottom: 7px;">
	Your Email Address:<input type="text" name="email" value="" size="50" style="width: 350px; border: solid 1px black; display: block; margin-bottom: 7px;">
	Subject:<input type="text" name="subject" value="" size="50" style="width: 350px; border: solid 1px black; display: block; margin-bottom: 7px;">
	Message:<TEXTAREA NAME="message" COLS="40" ROWS="10" style="width: 350px; border: solid 1px black; display: block; margin-bottom: 7px;"></textarea>

	<input type="submit" value="Submit"><input type="reset" value="Clear">
	</form>
TIA
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

need help getting the contact_form working

Post by Ted »

The PHP mail function is a little weird sometimes. Sometimes, depending on the platform, it might need some help getting to work. I've never really mastered it.

However, if you want to get an idea what the problem is, edit plugins/function.contact_form.php, and remove the @ from in front of the mail function call on line 55. This should at least give you a valid error and should help you track down the problem.

For information on the mail function, check out http://php.net/mail

Sorry I can't help anymore than that...
Akrabat

need help getting the contact_form working

Post by Akrabat »

Which platform are you using? If it's windows you need to set up a few bits in your php.ini file.
lopazopy

need help getting the contact_form working

Post by lopazopy »

I'm running on a linux server and the path to the sendmail is /usr/sbin/sendmail

I'm getting a "Your message was successfully sent." after I submit the form, but the email is never making it to my inbox.

I looked for a php.ini file, but couldn't find it anywhere. Where would it be located?

Thanks for your help. Sorry I don't know enough about programming and web servers to figure this out on my own.
Locked

Return to “[locked] Installation, Setup and Upgrade”