Quantcast
Channel: WordPress.org Forums » [Contact Form 7] Support
Viewing all 49016 articles
Browse latest View live

Тhe Test Email is sent with WP-Mail-SMTP but isn’t sent using CF7

$
0
0

Replies: 0

Hosting: GoDaddy
WordPress: 4.7.5
Contact Form 7: 4.8, 4.7.5
Additional plugin: WP-Mail-SMTP 0.10.1

I always get the following message when I try to send email by Contact Form 7: There was an error trying to send your message. Please try again later.

In settings of WP-Mail-SMTP plugin Use the PHP mail() function to send emails option is selected and test emails are successfully sent.

I have read a lot of text related to this issue but didn’t figure out which one is my case.

  • This topic was modified 30 minutes ago by haydave.
  • This topic was modified 28 minutes ago by haydave.
  • This topic was modified 23 minutes ago by haydave.
  • This topic was modified 22 minutes ago by haydave.
  • This topic was modified 19 minutes ago by haydave.
  • This topic was modified 19 minutes ago by haydave.

reCAPTCHA not showing up in the contact form pop-up

$
0
0

Replies: 0

Hi,
I am having difficultly in getting reCAPTCHA to show up in my contact form. The keys are all in place in the integration section. I am not sure what else I am missing here. If I press submit after entering al lthe required details, and since I can’t see the reCAPTCHA, I couldn’t submit without an error. Please help.
The contact form I am using has coded to as follow:

<label> Your Name (required)
[text* your-name] </label>

<label> Your Email (required)
[email* your-email] </label>

<label> Subject (required)
[text* your-subject] </label>

<label> Your Inquiry (required)
[textarea* your-message] </label>

[recaptcha size:compact]
[submit “Send”]

Thanks.

getting POST 403 () error when i submit CF7

$
0
0

Replies: 0

Hi,
I am facing an error when i submit the CF7 form. kindly please help. the link is https://www.wrld3d.com/contact-us/ Thanks in advance. following is the error i received.
“POST https://www.wrld3d.com/contact-us/ 403 ()
send @ jquery.js?ver=1.12.4:4
ajax @ jquery.js?ver=1.12.4:4
a.fn.ajaxSubmit @ jquery.form.min.js?ver=3.37.0:11
b @ jquery.form.min.js?ver=3.37.0:11
dispatch @ jquery.js?ver=1.12.4:3
r.handle @ jquery.js?ver=1.12.4:3″

Custom shortcode not working in the ‘To’ mail settings field?

$
0
0

Replies: 1

I’ve created a hidden custom contact form 7 shortcode called [office_email] which I’m using to dynamically populate the email address that the contact form will send to (see below).

wpcf7_add_form_tag(array('email', 'office_email'), 'wpcf7_office_email_shortcode_handler', true); /*[office_email office_email]*/
function wpcf7_office_email_shortcode_handler($tag) {

    // if (!is_object($tag)) return '';
    // $name = $tag->name;
    // if (empty($name)) return '';

    $output = "";

    // Make sure a query string exists
    if (isset($_GET['location']))
    {
        $location = $_GET['location'];
    }

    // Get our default location name/email
    $allLocations           = get_field('office_locations', 'option');
    $defaultLocationName    = $allLocations[0]['location'];
    $defaultLocationEmail   = $allLocations[0]['contact_email'];

    // Loop over the locations
    if( have_rows('office_locations', 'option') )
    {
        while( have_rows('office_locations', 'option') ): the_row();

            // Get each locations name & email address
            $locationName  = get_sub_field('location', 'option');
            $locationEmail = get_sub_field('contact_email', 'option');

            // If the query string value in $location is found in our locations repeater, store the email address in a variable
            if ( isset($location) && $location == $locationName )
            {
                $sendTo = $locationEmail;
                break;
            }
            // If it's not found (or there is no query string), store the first value from the repeater in a variable
            else
            {
                $sendTo = $defaultLocationEmail;
            }

        endwhile;

        // Output our hidden field
        $output .= "<input type='hidden' class='location-email' value='".$sendTo."' required/>";
    }

    return $output;

}

However it doesn’t appear to let me use this shortcode in the ‘To’ mail settings, just says “Invalid mailbox syntax is used”.

I believe I’m getting this error because the shortcode isn’t defined as an email address but there doesn’t appear to be anywhere to define what the shortcode is returned as e.g. email, number etc?

Any help greatly appreciated?

Manually submit form with jquery post in 4.8

$
0
0

Replies: 0

Hi there!

I used to submit my cf7 forms manually via jquery post like this:


$.post($form.attr('action'), $(this).serializeArray(), function (callback) {}

It worked fine in version 4.7, but doesn’t work anymore after the update to 4.8. Did something change that prevents submitting the form via jquery post? Anyone got an idea what might cause the problem?

Thanks and have a great weekend!

FC7 error updating wordpress version 4.8

$
0
0

Replies: 0

I have updated wordpress to version 7.8 and when updating the plugin but now at the time of sending messages it keeps with the wheel thinking and it does not show sent message.

Contact form 7 is not sending messages

$
0
0

Replies: 0

Hello,

My contact form is not working. I’m not sure why because it works form my other sites. Please, someone help!

CF7 / Bootstrap for CF7 conflict

$
0
0

Replies: 0

I use Contact Form 7 along with the CF7 addon plugin Bootstrap for Contact Form 7 (BfCF7). Both are wonderful and usually work brilliantly together – until recently. BfCF7 is now causing a problem with CF7 ajax validation.

I know that this is not a problem with CF7, and that BfCF7 authors will need to fix the problem, but if anyone here can offer suggestions or insights into what the nature of the problem is, or work together to help solve the problem, that would be greatly appreciated!

With both plugins installed and active, an error message appears when there is an invalid field, but the invalid fields are not highlighted and no tips appear. (Deactivating BfCF7 fixes the issue, so that is clearly where the conflict comes from.)

Bootstrap for Contact Form 7 now seems to be loading an additional script:
/wp-includes/js/jquery/jquery.form.min.js?ver=3.37.0
which wasn’t loaded with earlier versions. Can this be part of the problem?

If you need to see the problem in action you can visit this page:

(Site is under active development) You’ll need to log in:
login: guest
pw: thisisunderdevelopment

http://www.ultra-seal.com/packaging/contact-ultraseal/

Submit the form without filling anything in; required fields are not highlighted and no tips are displayed.

Any suggestions appreciated!!


Word Count Not Changing

$
0
0

Replies: 2

The wordcount shows as 0 no matter how many characters I type. here’s the shortcode I use :

[textarea your-message-1 ]

[count your-message-1]

Admin Notifications Not Being Sent

$
0
0

Replies: 1

I have tried to figure this out and can’t.. I have migrated my wordpress site from a different registrar and server only to have my contact form 7 no longer send confirmation emails to admin. Are you familiar with a similar issue, could you direct me? Thank you

formatting (span styles) does not work on Safari

$
0
0

Replies: 0

Hi
I have a form with h1 and selected font and size
This works fine on all browsers other than Safari
I think Safari does not like the Span html code
The appearance is of double spaced letters
Is there any way around this without manually editing the html code?
Thanks in advance for any help you can give

Font awesome icon in submit button

$
0
0

Replies: 0

Hi Guys,

I have been asked to specifically style the submit button on a form to include the word “Send” alongside a font awesome hand icon but despite trying for hours can’t get it to work. Has anyone managed to do this please, and if so how?

  • This topic was modified 11 hours ago by fonefixer. Reason: Typo

Forbidden on save

$
0
0

Replies: 1

When i am click on save button at that time this error message is displayed

Forbidden
You don’t have permission to access /wp-admin/admin.php on this server.

Can you tell me what is a reason behind this problem.

Unique Autu Reply

$
0
0

Replies: 0

How can I make an auto-reply for a contact form on my site with a unique number for each customer (personal promocode)?

I can not find how to add a unique (or random) number to emails, that it is sending to visitors.

Thanks for any advices.

Custom Validation Message Not Showing

$
0
0

Replies: 3

Hi,

I’m trying to prevent duplicate email submission to my database using the filter below, which I added in Shortcodes, Actions, and Filters plugin, and CFDB plugin.

Everything works fine, i.e., once the email already exists in the database the user won’t be able to submit another form. The only problem is that when such an error occurred I still get the default validation error instead of the one I customized in the code below.

Any help? I really appreciate it!
thanks
/**
* @param $formName string
* @param $fieldName string
* @param $fieldValue string
* @return bool
*/
function is_already_submitted($formName, $fieldName, $fieldValue) {
require_once(ABSPATH . ‘wp-content/plugins/contact-form-7-to-database-extension/CFDBFormIterator.php’);
$exp = new CFDBFormIterator();
$atts = array();
$atts[‘show’] = $fieldName;
$atts[‘filter’] = “$fieldName=$fieldValue”;
$atts[‘unbuffered’] = ‘true’;
$exp->export($formName, $atts);
$found = false;
while ($row = $exp->nextRow()) {
$found = true;
}
return $found;
}

/**
* @param $result WPCF7_Validation
* @param $tag array
* @return WPCF7_Validation
*/
function my_validate_email($result, $tag) {
$formName = ‘MembershipClub’;
$fieldName = ‘m-email’;
$errorMessage = ‘A user with this email address is already registered’;
$name = $tag[‘name’];
if ($name == $fieldName) {
if (is_already_submitted($formName, $fieldName, $_POST[$name])) {
$result->invalidate($tag, $errorMessage);
}
}
return $result;
}

add_filter(‘wpcf7_validate_email*’, ‘my_validate_email’, 10, 2);


СF7. Form does not return a message about the order

$
0
0

Replies: 0

Good day! There is a problem with contact form 7. Form fills, emails are sent, but the “wheel” is spinning and a message stating that the order is shipped will not be refunded. In some browsers the error shows, but not in others. Updated WordPress to 4.8. Error remained. Changed the template, turned off the plugins. Nothing happens. Sincerely, Galina

Constant loading Icon at Sending Button

$
0
0

Replies: 0

Whenever I check the contact form on my website it shows that loading circle at the send button constantly.

What can I do to solve that?

User ID is not saving to the database with $wpdb->insert()

$
0
0

Replies: 0

I have noticed that the user id is not saving to the database in 4.8. For example this section of code works fine in 4.7 but comes up null for $user_ID in 4.8:

	global $wpdb;
	$user = wp_get_current_user();
	$user_ID = $user->ID;
. . .
				$wpdb->insert(wp_cartpauj_pm_messages, array(
					'from_user'			=> 1,
					'to_user'			=> $user_ID,
					'last_sender'		=> 1,
					'date'				=> current_time( 'mysql' ),
					'last_date'			=> current_time( 'mysql' ),
					'message_title'		=> 'Treatment Consent',
					'message_contents'	=> "Attached is your copy of your signed treatment consent. The Notice of Privacy Practices is available at this link: [url=https://www.testurl.pdf]Notice of Privacy Practices[/url]. Please down load both documents and save for your records.",
					'message_read'		=> 0,
					'to_del'			=> 0,
					'from_del'			=> 0
				), array('%d', '%d', '%d', '%s', '%s', '%s', '%s', '%d', '%d', '%d'));

				$message_id = $wpdb->insert_id;

				$wpdb->insert(wp_cartpauj_pm_attachments, array(
					'message_id' => $message_id,
					'filename'   => $filename,
					'mimetype'   => 'application/pdf',
					'contents'   => $contents
				), array('%d', '%s', '%s', '%s'));

$user_ID will work in other parts of my code, for example to insert into my pdf but it will not save to database. The same is true for CFDB. No user ID is saving there either. I understand that it is a CFDB issue. Complaints have been made on that forum. Nevertheless, for my code, I would like to be able to save some things to database with the $user_ID. What may be a work around?

  • This topic was modified 2 hours, 49 minutes ago by cravaus.

Contact Form 7 – Redirect to Custom URL

$
0
0

Replies: 0

Hi There,

Thanks for the great plugin. So I noticed the new redirect method for Contact Form 7 (https://contactform7.com/redirecting-to-another-url-after-submissions/).
I my case I would like to redirect to a custom url for each submission. It used to be done by:
on_sent_ok: “var name = $(‘.wpcf7 input[name=your-name]’).val();var email = $(‘.wpcf7 input[name=your-email]’).val();location.replace(‘http://www.mywebsite.com/thankyoupage?your-name=’+name+’&email=’+email’+”);”

Does anybody have any suggestion on how to do that with the new method?
Thanks.

checkbox value vs label

$
0
0

Replies: 0

I like to give every option a specific value (for calculation function) but I don’t want the label to be as the value.
Is it possible?

Viewing all 49016 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>