• I am getting issue where contact form 7 is not sending any email.

    define(‘WPCF7_LOAD_JS’, false);
    define(‘WPCF7_LOAD_CSS’, false);

    I tried option to set CSS and JS to false, but this did not work.

    Then I checked firefox debugger and got that after I click submit javascript throwing an error TypeError: $form is undefined

    what can be the issue and how to solve please help.

    WORDPRESS – 4.5.1
    CF& – 4.4.2

    https://wordpress.org/plugins/contact-form-7/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Suyash87

    (@suyash87)

    I could get upto this code which is showing error

    $.fn.wpcf7InitForm = function() {
    this.ajaxForm({
    beforeSubmit: function(arr, $form, options) {
    $form.wpcf7ClearResponseOutput();
    $form.find(‘[aria-invalid]’).attr(‘aria-invalid’, ‘false’);
    $form.find(‘img.ajax-loader’).css({ visibility: ‘visible’ });
    return true;
    },
    beforeSerialize: function($form, options) {
    $form.find(‘[placeholder].placeheld’).each(function(i, n) {
    $(n).val(”);
    });
    return true;
    },
    data: { ‘_wpcf7_is_ajax_call’: 1 },
    dataType: ‘json’,
    success: $.wpcf7AjaxSuccess,
    error: function(xhr, status, error, $form) {
    var e = $(‘<div class=”ajax-error”></div>’).text(error.message);
    $form.after(e);//THIS LINE IS SHOWING THE ISSUE
    }
    });

    Plugin Author Takayuki Miyoshi

    (@takayukister)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘contact form 7 is not sending any email and spinning infinitely’ is closed to new replies.