• Resolved styleandblooms

    (@styleandblooms)


    Hi All,

    For some reason, none of my attachments are coming through in an email.

    I am following all the steps, have gone through Contact form 7 user guides as well.

    So below is the code for my contact form

    <div class="testimonial-section">
        <h2>Leave a Testimonial</h2>
    
        <div class="rating-section">
          <label for="rating">Please rate us:</label>
          <span class="star-rating">
            <i id="star5" class="fa fa-star" aria-hidden="true"></i>
            <i id="star4" class="fa fa-star" aria-hidden="true"></i>
            <i id="star3" class="fa fa-star" aria-hidden="true"></i>
            <i id="star2" class="fa fa-star" aria-hidden="true"></i>
            <i id="star1" class="fa fa-star" aria-hidden="true"></i>
          </span>
          <input type="hidden" name="rating" id="rating" value="0">
        </div>
    
    <div class="user-name">
        <input type="text" name="user-name" placeholder="Your name">
      </div>
    
        <div class="testimonial-text-section">
          <label for="testimonial-text">Enter your testimonial:</label>
          <textarea id="testimonial-text" name="testimonial-text"></textarea>
        </div>
    
    [file file-476 limit:800000 filetypes:png|jpg]
    
    [submit "Submit"]
    

    mail tag generated by the form is as below:

    “You can edit the mail template here. For details, see?Setting up mail.
    In the following fields, you can use these mail-tags:
    [file-476]”

    I have used [file-476] in the attachments.

    I have set the uploads folder /wp-content/uploads/wpcf7_uploads to 7,7,7

    To trouble shoot I have used WP mail logging and it doesnt show any attachment either . I have intentionally removed the email id from below log.

    {
        "mail_id": "2",
        "timestamp": "February 24, 2023 8:55 am",
        "host": "114.142.160.91",
        "receiver": "XXXXXXXXXXXXXXXXXXXXXX"
        "subject": "Style & Blooms Testimonial Received",
        "message": "From: test\n\nRating : 5\nTestimonial : tet\nAttachments:  Copy-of-Flower-Care.png",
        "headers": "From: Style & Blooms <[email protected]>\nX-WPCF7-Content-Type: text\/plain\n",
        "attachments": "",
        "error": null,
        "plugin_version": "1.10.5"
    }

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

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Attachments are not coming through CS7’ is closed to new replies.