WordPress.org

Forums

Contact Form 7 attach file email is encoded (14 posts)

  1. duncmorley
    Member
    Posted 4 years ago #

    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

    Duncan

  2. Takayuki Miyoshi
    Member
    Posted 4 years ago #

    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.

  3. duncmorley
    Member
    Posted 4 years ago #

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

  4. duncmorley
    Member
    Posted 4 years ago #

    This is what I am receiving http://www.duncanmorley.co.uk/email.jpg
    Any help would be greatly appreciated.

  5. Nadz1
    Member
    Posted 4 years ago #

    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!

  6. duncmorley
    Member
    Posted 4 years ago #

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

  7. duncmorley
    Member
    Posted 4 years ago #

    Anyone?!?!?!?!?

  8. Takayuki Miyoshi
    Member
    Posted 4 years ago #

    I checked http://www.duncanmorley.co.uk/email.jpg 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.

  9. duncmorley
    Member
    Posted 4 years ago #

    I have deactivated every plugin and reverted to the twentyten theme and default admin theme. I am still getting the same results. Check here: http://www.duncanmorley.co.uk/email2.jpg.

  10. Takayuki Miyoshi
    Member
    Posted 4 years ago #

    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.

  11. duncmorley
    Member
    Posted 4 years ago #

    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?

  12. Takayuki Miyoshi
    Member
    Posted 4 years ago #

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

  13. eieio
    Member
    Posted 4 years ago #

    @duncmorley
    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)

  14. duncmorley
    Member
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic