• Resolved khaiku

    (@khaiku)


    Hi, I bought a theme that came with Contact Form 7.

    After some testing, the e-mails go through but my issue is the way they show up in my e-mail: there is no subject/message.

    EMAIL RECEIVED:
    From: [your-name] <[email protected]>
    Subject: [your-subject]

    Message Body:
    [your-message]

    * As you can see, the E-mail does pop up, but the subject and message don’t work properly. My guess is that the theme creators messed up in the settings, though I need some of that code for it to show up effectively on the website.

    Here is how it is set up:

    FORM:
    <div class=”qodef-contact-2″>[email* your-email email-309 placeholder “EMAIL*”][text text-730 placeholder "SUBJECT"][textarea textarea-920 placeholder “Message”][submit “Send Us A Message”]</div>

    MAIL:
    To: [email protected]
    From: [your-name] <[email protected]>
    Subject: Khaiku “Contact”
    Additional Headers: Reply-To: [your-email]
    Message Body:
    From: [your-name] <[your-email]>
    Subject: [your-subject]
    Message Body:
    [your-message]

    Thank you for all the help in advance, this is the last thing from finishing my website.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The form field names and the mail field name must be the same, yours are not.

    example:

    The field you are using for the subject is in the form is named: text-730
    [text text-730 placeholder "SUBJECT"]

    in your mail you are naming it: your-subject
    Subject: [your-subject]

    if you change that to:
    Subject: [text-730]

    it would then know what field to send. You could alternately change text-730 in your form to: your-subject The important thing is, they must be exactly the same in both the form and the mail.

    Your names don’t match in all fields, that’s why it is sending nothing.

    You can see at the top of the mail section what field names you have assigned and used in your form.

    • This reply was modified 5 years, 10 months ago by joemargwp.
    • This reply was modified 5 years, 10 months ago by joemargwp.

    Hi,

    You’re using text-730 and email-309 as “name” in the field… and then you’re “calling” them with other “name” like your-name or your-subject.

    In your form, change like this:

    [email* your-email “EMAIL*”]
    [text your-subject "SUBJECT"]
    [textarea your-message “Message”]
    [submit “Send Us A Message”]

    Then, it should work.

    Thread Starter khaiku

    (@khaiku)

    Thank you to the both of you (@joemargwp , @orero) for helping out.

    At first glance I believe this was some very confusing code, since I’m a novice at web development/wordpress; it’s very simple! Great little plugin and e-mails come fast.

    For anyone in the future who may stumble upon this and have a similar issue as I did, below is the small changes I’ve made using the two suggestions above.

      FORM:

    <div class=”qodef-contact-2″>[text your-name placeholder "NAME"][email* your-email email-309 placeholder “EMAIL*”][text text-730 placeholder "SUBJECT"][textarea textarea-920 placeholder “Message”][submit “Send Us A Message”]</div>

      MAIL:

    From: [your-name] <[your-email]>
    Subject: [text-730]

    Message Body:
    [textarea-920]

    Issue has been RESOLVED.
    Thanks again! ??

    • This reply was modified 5 years, 10 months ago by khaiku.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘E-Mail Coming With No Message’ is closed to new replies.