• Hello sir

    7 website running in contact form 7 plugin use.
    they are well working. but today are check my all site. contact form 7 not working every site, and when are mail function use function are working but i am can’t found any mail my id

    Please sir help me what i do?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator James Huff

    (@macmanx)

    I recommend asking at https://wordpress.org/support/plugin/contact-form-7#postform so the plugin’s developers and support community can help you with this.

    Thread Starter dinesh422

    (@dinesh422)

    hello sir

    i am not use any plugging for mail
    i use simple mail function
    i.e.

    $admin_email = “dkdineshkumar122@gmail.com”;
    $email = “pass@up.com “;
    $subject = “dummy mail”;
    $comment = “hello this dummy mail”;

    //send email
    mail($admin_email, “$subject”, $comment, “From:” . $email);

    //Email response
    echo “Thank you for contacting us!”;
    }

    it’s not working my wp

    Moderator James Huff

    (@macmanx)

    You mentioned Contact Form 7 in your subject and twice in your post.

    Why did you do that if you aren’t using Contact Form 7?

    @dinesh422, unless you own up.com, which I doubt, you can’t send mail from pass@up.com. Change your From address to your own email address.

    Moderator James Huff

    (@macmanx)

    Great catch, Postman!

    Thread Starter dinesh422

    (@dinesh422)

    change my admin mail address but not solve my problem
    now i am running code only php file w/o wp area. it’s run and find mail my id. when that code insert in wp area no mail any not any error

    Please check this URl
    That url w/o wp area
    http://yangphelguesthouse.com/demo/

    I.E. under php area
    http://yangphelguesthouse.com/?page_id=106

    If you’re trying to send mail From a Gmail address, you need to use Google’s smtp.gmail.com server authorized with your username and password. The easiest way to configure SMTP in WordPress is with an SMTP plugin (mine or any of these).

    Second, use wp_mail() instead of mail():

    //send email
    $headers = 'From: ' . $admin_email . "\r\n";
    // call wp_mail(recipient, subject, body, headers)
    $result = wp_mail( $admin_email, $subject, $comment, $headers );
    
    //Email response
    if($result) echo "Thank you for contacting us!"; else echo "Error! :-(";

    That should work for you.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘contact form 7 plugin not working’ is closed to new replies.