Support » Fixing WordPress » [Plugin: Contact Form 7] Attachments not getting attached

  • Resolved digitz



    1. I’ve designed a form with attachments enabled.
    2. I’ve inserted [file-598] in the attachment text box in report design section.
    3. The form is submitted successfully, but the attachment is not delivered to my inbox.

    I’ve checked with my host, and they claim that this is a coding issue.

    What could be the problem?

Viewing 15 replies - 1 through 15 (of 23 total)
  • The form upload element:
    [file* file-598 filetypes:doc|docx|pdf|jpg|gif|zip|rar|]

    This is inserted in the attachment text field: [file-598]

    How about the mail header?

    where can the email header be found?

    Dosn’t your mail client have a menu like “See header” or “See source of this mail”?

    I want to confirm how was the Content-Type, in specific. It should be “multipart/mixed”.

    I’ve changed the email addresses so they won’t be collected by spam bots:

    Return-Path: <>
    Delivered-To: serv-musavis.c0m
    Received: (qmail 3181 invoked by uid 399); 14 Mar 2009 21:00:52 -0000
    X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on
    X-Spam-Level: ****
    X-Spam-Status: No, score=4.7 required=5.0 tests=FORGED_YAHOO_RCVD,HTML_MESSAGE,
    	MIME_HTML_ONLY,RDNS_NONE autolearn=disabled version=3.2.1
    Received: from unknown (HELO (
      by with ESMTP; 14 Mar 2009 21:00:52 -0000
    Received-SPF: none ( domain at does not designate permitted sender hosts)
    	identity=mailfrom; client-ip=;
    Received: from (smh04 [])
    	by (Postfix) with ESMTP id 5A1732A814CC
    	for <serv-musavis.c0m>; Sat, 14 Mar 2009 17:00:52 -0400 (EDT)
    Received: (from mail@localhost)
    	by (8.13.8/8.13.8/Submit) id n2EL0qb5005099
    	for serv-musavis.c0m; Sat, 14 Mar 2009 17:00:52 -0400
    X-Authentication-Warning: mail set sender to using -f
    Received: from ( [])
    	by (Postfix) with ESMTP id 3D2DA2A814A7
    	for <servi-musavis.c0m>; Sat, 14 Mar 2009 17:00:52 -0400 (EDT)
    Received: from ( [])
    	by (8.13.8/8.13.8) with ESMTP id n2EL0p3S030948
    	for <serv-musavis.c0m>; Sat, 14 Mar 2009 17:00:51 -0400
    Received: (from digitall@localhost)
    	by (8.13.8/8.13.8/Submit) id n2EL0pqQ030943;
    	Sat, 14 Mar 2009 17:00:51 -0400
    To: serv-musavis*c0m
    Subject: =?UTF-8?B?2K/Ysdiu2YjYp9iz2Kog2K7Yr9mF2KfYqiDYqtix2KzZhdmHINin2Ybar9mE?=  =?UTF-8?B?2YrYs9mKLdmB2KfYsdiz2Yo=?=
    Date: Sat, 14 Mar 2009 17:00:51 -0400
    From: =?UTF-8?B?2LPbjNivINmF2KzbjNivINi12K/YsduM?= <>
    Message-ID: <>
    X-Priority: 3
    X-Mailer: PHPMailer ( [version 2.0.2]
    MIME-Version: 1.0
    Content-Transfer-Encoding: 8bit
    Content-Type: text/html; charset="UTF-8"
    X-EsetId: 2DC65F25DCB432367D86

    By the way, this happens with every sender, not just yahoo emails. Even with my own personal email

    Content-Type: text/html; charset="UTF-8"

    This seems to be the problem. What should I do to fix it?

    Anybody here to enlighten us?

    I tried changing the encoding in the main cf7 php file from text/html to multipart/mixed. This breaks the HTML markup in the results sent to my email account and still doesn’t attach the attachments.

    Sorry, I’m late. digitz, do you always fail to send mails with attachment? or you can successfully send them with other form? If I can see the site, please tell me the URL.

    It was working until 3 weeks ago and then suddenly BANG! The attachments don’t come through since then.
    I designed a new form to see if that particular form was in trouble, but no, all CF7 forms are not sending in attachments.
    Take a look at it here:

    Do you have alternate email address? If so, send to the address as a test. I think it is possible that some mail filterings are working on recipient side.

    nope 🙁

    No use, switched to gmail.

    the email comes through but no attachment.

    did you notice? in the email header the content type is not as you said. it’s text/html.


    I don’t know what you changed in the new version 1.9.4, but the problem is fixed.

    I’ll have the new FARSI .po file your way ASAP. 😉

    Thank you

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘[Plugin: Contact Form 7] Attachments not getting attached’ is closed to new replies.