Support » Plugins » Contact Form 7 attach file email is encoded

  • Hi there

    I am wanting to use the Contact Form 7 plugin to send an email and also attach a file. For some reason the attached file is coming through encoded (lots of lines of random numbers & letters). I have made sure the email is being sent as HTML.

    I read something on another forum about base64 encoding. Not really sure what this means. Can anyone shed any light on why this is doing this and/or solve this problem.

    Many thanks in advanced


Viewing 13 replies - 1 through 13 (of 13 total)
  • What kind of file do you attach? Image? Text?

    I have seen that Gmail wrongly converts encoding of attached text file. If you use Gmail, I’d suggest trying using another mail client.

    Base64 encoding is normal for attached mail. You don’t have to be concerned about it.

    I am just trying to attach an image. I have tried various email addresses and clients and keep getting the same result.

    This is what I am receiving
    Any help would be greatly appreciated.

    I’m getting the same too. It was working fine until about a week ago. Changed the receiving email to Google, Yahoo, Hotmail and back to Outlook, still all the same!!!
    All the attachments have been word docs and PDF. No idea why it happenned!

    Very frustrating as I really need that upload file functionality. Does anyone else know of any other file uploading plugins for WordPress?


    I checked and found that mail body contains some header lines which shouldn’t be there. This is often caused when something, maybe one of other plugins, inserts newline character in wrong place. Once try deactivating all other plugins and switching to the default theme for ruling out such cases.

    I have deactivated every plugin and reverted to the twentyten theme and default admin theme. I am still getting the same results. Check here:

    Then there should be something changing your mail header outside WordPress. Contact your hosting server’s support and ask if they know anything relating that. They should have log of mail.

    I’ve been told is it possible to get the contact form plug-in to use SMTP to send email rather than PHP mail()? If so, tell it to relay through an IP address unauthenticated and it should be able to relay the messages including attachments correctly.

    Is this possible with this plugin?

    There are some plugins for SMTP, for example “WP-Mail-SMTP”, but not sure if it works on your host.

    How did you even get the file attachment to send (even though encoded)?

    What do you put in the “File attachments:” field under Mail 2?

    Or where do you put the file information to attach? I’m trying to create an auto-responder with an attachment (no uploading via form)

    Not sure you can do this. The attachment field is not meant for you to attach stuff to but for the user filing out a form to send files to you.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Contact Form 7 attach file email is encoded’ is closed to new replies.