If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
September 16, 2012 at 2:28 pm #16356
I configured the “Contact” page to send messages to my own email address ” (Email address hidden if logged out) “.
here is the link:
the web site is in Arabic, and i set the encoding of “/includes/contact-form.php” to UTF-8
still the messages never received.
I contacted the web hosting company & contacted Google Apps while the email is configured in their services. Both confirm that the problem is in the PHP script.
please help me to fix this issue.
– KhaledSeptember 16, 2012 at 3:17 pm #91200
Not sure about having a problem with the PHP script of the Choices contact form because I tried it on my test site and it works fine. Please try another plugin like Contact Form 7 for the meantime.
IsmaelSeptember 16, 2012 at 8:27 pm #91201
I tried Contact Form 7 and it works fine. Can’t we fix the Choices contact form?September 17, 2012 at 2:27 am #91202September 18, 2012 at 11:13 am #91203September 19, 2012 at 5:51 pm #91204
Strange, both contact forms use the wp_mail function which runs it through wordpress. I’m not sure what would cause it to work with the plugin and not with the built in contact form.
Did you try using the contact form without any modification the the contact-form.php?
DevinSeptember 20, 2012 at 3:57 am #91205
I restored the original file (contact-form.php), and the problem is still there. is there anything wrong in the AJAX stuff? somthing in the encoding?September 22, 2012 at 10:27 pm #91206
Please install this plugin which will test if there is an issue with email itself. http://wordpress.org/extend/plugins/check-email/ Its old but still does its job.
You can also try installing this plugin http://wordpress.org/extend/plugins/wp-mail-smtp/ and afterwords please check if mail is coming in.
NickOctober 2, 2012 at 9:42 pm #91207
The first plugin (check-email) is working find and send emails correctly.
The second plugin (wp-mail-smtp) has two options:
when I choose Mailer:
– Send all WordPress emails via SMTP. it does not work and emails are not being sent.
and when I change the option to:
– Use the PHP mail() function to send emails. works fine and emails sent correctly.
I think your plugin is not using the PHP mail(). is there anyway to configure that?
thanksOctober 3, 2012 at 6:07 am #91208
Kriesi’s form/send code already uses the standard php mail function. The code can be found in choicesframeworkphpclass-form-generator.php – search for following two lines:
mail($to, $subject, $message, $header);
and for the autoresponder:
mail($from, $this->form_paramas['autoresponder_subject'], $message, $header);October 3, 2012 at 1:05 pm #91209October 5, 2012 at 3:06 pm #91210
Your form doesn’t have input id, and names fields correctly set, thus the mail never gets sent. What I think is happening is that the input fields have an English avia_ prefix at which point the Arabic suffix attempts to attach and for whatever reason that doesn’t seem to work.
What’s interesting is that the user name itself is in English (the field) so the hidden field carries over without a problem. Is the WordPress backend in Arabic? I think if language is kept consistent in those fields which visitors won’t see, that will solve the problem.
[Edit] Now that I took a further look, Perhaps you could look in Choices > Theme Options > Contact and see if you have a value set for the Labels field, one for each form element, because I don’t see any on the form itself as I fill it out. I think those labels are actually the variable name that gets attached to the prefix. Would you set the Labels please in the Theme Options, and we can always make them not display with css.
NickOctober 30, 2012 at 8:29 pm #91211
The problem with the form is that it applies input IDs based on sanitized names.
for example if you got 3 input fields named: Name, Email and Message the theme tries to create valid ids by those names and converts them to avia_name, avia_email and avia_message.
Problem in your case is that your language will get filtered out compeltly because avia_الرسالة is not a valid id. I have modified the framework to work better with your language, the next theme update tomorrow should fix the issue.
The topic ‘Contact form is not working’ is closed to new replies.