Page 1 of 1

need help getting the contact_form working

Posted: Tue Nov 30, 2004 1:07 am
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

need help getting the contact_form working

Posted: Tue Nov 30, 2004 1:15 am
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...

need help getting the contact_form working

Posted: Tue Nov 30, 2004 9:24 am
by Akrabat
Which platform are you using? If it's windows you need to set up a few bits in your php.ini file.

need help getting the contact_form working

Posted: Sat Dec 04, 2004 4:01 pm
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.