• Resolved meeshymee

    (@meeshymee)


    Emails sent to me through my contact forms are blank.
    Subject, checkboxes and content don’t appear in the email.

    An example of a form:

    <label> Your first and last Name (required)
    [text* your-name] </label>

    <label> Your Email (required)
    [email* your-email] </label>

    [checkbox* typeofannouncement label_first exclusive “Birth” “Engagement” “Wedding”]

    Description
    [textarea* announcement]

    Upload a photo. Choose high quality photos for best results.

    <p>Send File<br /<input type=”file”>
    [file your-file limit:1mb filetypes:jpg|jpeg]

    [submit “Send”]

    under mail I have:
    From: [your-name] <[your-email]>
    Subject: [typeofannouncement]

    Message Body:
    [your-message]
    [typeofannouncement]

    This email was sent from a contact form on My WordPress (https://grandbendbulletin.ca)

    Another form:

    <label> First and last name of your loved one (required)
    [text* Lovedonename] </label>

    Date of birth (required)
    [date* Dateofbirth class:datepicker-form-field]

    Date of passing (required)
    [date* Dateofpassing class:datepicker-form-field]

    <label> Your first and last Name (required)
    [text* your-name] </label>

    <label> Your Email (required)
    [email* your-email] </label>

    <label> Tell us about your loved one
    [textarea* Tellusaboutyourlovedone] </label>

    Upload a photo of your loved one. Choose high quality photos for best results.

    <p>Send File<br /<input type=”file”>
    [file your-file limit:1mb filetypes:jpg|jpeg]

    [submit “Send”]

    and a simple one:
    Your first and last Name (required)
    [text* your-name]

    Please enter your email address so we can follow up with you. (required)
    [email* your-email]

    Subject
    [text Subject]

    Please describe your news tip or story idea. (required)
    [textarea* Storyideaornewstip]

    [submit “Submit”]

    PLEASE HELP – what am I doing wrong??? I have tried so many different ways of doing it but each time nothing comes through.

    Thank you.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @meeshymee,

    You need to put the respective mail tag for each form tag you use. A mail tag is usually the custom name given to the form tag enclosed in square brackets, e.g. if the form tag is [text* your-mail], the mail tag will be [your-mail]

    In the first form you mention above, the Message body field in your Mail tab should to look this way:

    Name: [your-name]
    Email: [your-email]
    Subject: [typeofannouncement]
    Description: [announcement]

    You need also to add the [your-file] mail tag in the File attachments field.

    In the second form, the Message body field in your Mail tab should to look this way:

    Name: [your-name]
    Email: [your-email]
    Name of loved one: [Lovedonename]
    Date of birth: [Dateofbirth]
    Date of passing: [Dateofpassing]
    Description about loved one: [Tellusaboutyourlovedone]

    You need to add the [your-file] mail tag in the File attachments field too.

    And in the last form, the Message body field in your Mail tab should to look this way:

    Name: [your-name]
    Email: [your-email]
    Subject: [Subject]
    News tip or story idea: [Storyideaornewstip]

    Please read How tags work to learn more.

    Hope this can help you.

    Best regards,
    Yordan.

    Thread Starter meeshymee

    (@meeshymee)

    Hello Yordan,

    Thank you so much. I’m new to WP and though I’ve created forms with WPforms I find Contact Form 7 confusing (even after reading the documentation).

    My apologies if my question is stupid:

    1) So the [your-file] gets inserted into the attachments only if it’s the type of form that has something attached/uploaded is that correct?

    Based on your reply I assume another one of my forms is incorrect if I have this in the Mail section:

    From: [your-name] <[your-email]>
    Subject: [company-name]

    Message Body:
    [textarea-363]

    *the form itself looks like this:
    <label> Your first and last Name (required)
    [text* your-name] </label>

    <label> Your company / business name (required)
    [text* company-name] </label>

    <label> Location of business (Town) (required)
    [text* business-location] </label>

    <label> Email address (required)
    [email* your-email] </label>

    <label> Additional notes
    [textarea textarea-363]

    [submit “Submit”]

    2) Can I change the subject of the Mail tab (both in ‘subject’ section and in ‘message body’ section so that I can easily know which form it pertains to? For example, my forms all have Subject: [your-subject]
    but don’t have a ‘subject’ section in every form so I assume this will be blank in an email sent to me. (ie. Can I make the subject reflect the name of the form itself?) I hope this makes sense.
    Thanks again so much for your help!

    Thread Starter meeshymee

    (@meeshymee)

    Hello,
    I made the corrections and now when trying out my forms each one says “There was an error trying to send your message. Please try again later” (before they were going through but blank). also, i added a captcha and i followed the instructions on the contact form 7 site but i didn’t see it on any of the forms when i tried to test them by filling them out myself.

    please help!
    thank you.

    Hello @meeshymee,

    I tested the “Submit a photo” form and the messages was sent. I noticed the file field isn’t required. Maybe you should add the required attribute since don’t have sense to send a submission without a photo. To do that you only need to add an asterisk at the field type.

    E.g. Let’s say you have this file form tag:
    [file your-photo]

    You only need to add the asterisk to this field becomes required:
    [file* your-photo]

    Best regards,
    Yordan.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘blank emails sent from contact 7 forms’ is closed to new replies.