Support » Theme: Zerif Lite » Contact Form is not sending Email

  • Resolved Felhamed

    (@felhamed)


    Hello,

    I am having problems with your contact form not sending emails, I have tested it without any plugins and with both the postman-smtp and wp mailer plugins and still it does not work.

    For reference to my post regarding the same issue on postman-smtp forum.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Alexandra

    (@alexandrastan001)

    ThemeIsle Support

    Hi,

    Please check this document: http://docs.themeisle.com/article/42-unable-to-receive-contact-form-submissions and let me know if you still have this issue.

    Best regards,
    Alexandra

    Hi,

    I have already configured Postman-SMTP and I do receive the test emails, however for some reason the contact submit doesn’t do anything and gives me a sorry, there was an error message.

    Please see the following image: Test emails are successfully sent, however when trying to send from the contact form I get an invalid email error.

    View post on imgur.com

    I believe the issue lies somewhere here, the form sends the following to wp_mail, how do I edit the contact form so that only the email addresses are sent into the wp_mail function?

    From: john <<ahref=”mailto:contact@domain.com”>contact@domain.com >
    To: <contact@domain.com >

    Thanks,
    Firas

    I have fixed the problem:

    1. Replaced this line $zerif_contactus_email = get_theme_mod('zerif_contactus_email'); with $zerif_contactus_email = 'contact@mydomain.com'; in the front-page.php file.

    2. Removed .$name. and <> brackets around '<'.$emailTo.'>' from $headers = 'From: '.$name.' <'.$emailTo.'>' . "\r\n" . 'Reply-To: ' . $email; also in the front-page.php file.

    Regards,
    Firas

    Marking as resolved.

    Alexandra

    (@alexandrastan001)

    ThemeIsle Support

    Good! Glad that you got it solved!:)
    and thank you for sharing your fix with us.
    Best regards,
    Alexandra

    a non-code solution is to enable Postman’s Prevent plugins from modifying this field feature for the Message From Email Address in advanced settings. Then Postman will ensure the From field stays exactly the way you have configured it.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Contact Form is not sending Email’ is closed to new replies.