Read Theme Contact Template Issue

  • Posted in : Read WP
  • voc

    The Read theme Contact template sends emails FROM the contact’s email address.
    This should be FROM an email address at the website’s domain.

    Recreating the issue:
    I used the Local app from WP Engine.
    This has MailHog built in, which is an email testing tool.

    – Logs every email request from WordPress
    – Does not send an email
    – Never generates errors

    I do the following:
    Create a new WordPress install
    Add the Read theme and activate it
    Add a new Contact page based on Contact template
    View the Contact page

    I set the fields:
    – Your Name = contact
    – Your Email =
    – Subject = subject
    – Your Message = message

    I click “Send it”
    I open MailHog and I find 1 email.
    Here is the email source (lightly edited):
    From: contact <>
    Message-ID: …
    Received: from localhost by mailhog.example (MailHog) …
    Return-Path: …
    Subject: [Test] subject
    X-PHP-Originating-Script: 502:send-mail.php

    Name: contact


    Message: message

    What is the problem?
    The message is being sent from the contact’s email address.

    Why is this wrong?
    A domain’s “SPF Record” defines which servers can send emails from that domain.
    Imagine the WordPress site with the Contact form is
    This means just sent an email FROM
    The receiving SMTP server will ask the domain if is allowed to send emails from will check if it’s “SPF Record” includes
    If is on the list, says yes, then the contact email is delivered.
    Otherwise, then the contact email is deleted.

    In reality, will not be explicitly on the “SPF Record” of
    Instead, the check will be done against the “all” clause at the end of the “SPF Record”:
    ~all and the contact message is delivered but flagged as insecure or spam
    -all and the contact message will be rejected
    +all and the contact message will be delivered (and the site admin is a lunatic)

    Therefore, if you use the contact’s email address, the email is either delivered flagged as possible spam, or deleted.

    Worse still, I don’t think PHP mail() knows about this delivery result.
    Therefore the Contact form always says “SUCCESS”.

    How to fix this?
    Change line 52 of send-mail.php which sets the FROM email to the contact’s email address.
    Send it from an address at, for example, …etc
    Perhaps make this a configuration option.


    Could you please try to use ninja form plugin instead of our default contact form?
    Also, please install and activate the following plugin. Then configure it from its settings page for your site. Thanks

    WP Mail SMTP:



    I was asked to investigate a problem with lost contact messages on a website, which uses version 1.0 of the Read theme from 10 years ago.

    I found the problem which I describe above.

    I thought updating the Theme would fix the problem. A new Theme licence had to be purchased as the old licence information had disappeared into the mists of time.

    But no, the Contact template code in Read theme v4.6.1 is exactly the same as v1.0. It has not changed in 10 years.

    Therefore, for the last 10 years, all users of the Read theme’s built in Contact page have been randomly losing contact messages.

    The site I am working on has definitely lost contact messages. You have been paid twice for the theme. I estimate that I could fix the code in 2 hours or less.

    Therefore, I want you to fix the error in the Contact template and release a new version of the Read theme, as a matter of priority!



    I will forward this topic to our developer and I will keep you updated.


    Thats great, thank-you 👍

    Mehmet S.

    Hi, we have recreated the contact form with the “Contact Form 7” plugin in our demo site and released an update with a fresh demo data. Thanks for the feedback.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register