• Resolved Marty861

    (@marty861)


    Hello,

    I have found the interesting problem when I have set the attachment in “auto confirmation” settings. Some users don’t get the (pdf) file but only this code:

    
    --b1_43d5eb2bff078b3db49a131a472b5979
    Content-Type: application/pdf; name="filename.pdf"
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment; filename=filename.pdf
    
    JVBERi0xLjcNJeLjz9MNCjggMCBvYmoNPDwvTGluZWFyaXplZCAxL0wgNDI0Njc1L08gMTAvRSA0
    MTk5MzUvTiAxL1QgNDI0NDAxL0ggWyA0NTE2IDUzOV0+Pg1lbmRvYmoNICAgICAgICAgICAgICAg
    IA14cmVmDTggMjExDTAwMDAwMDAwMTYgMDAwMDAgbg0KMDAwMDAwNTA1NSAwMDAwMCBuDQowMDAw
    MDA1MjIzIDAwMDAwIG4NCjAwMDAwMDg2NDcgMDAwMDAgbg0KMDAwMDAwODc3OCAwMDAwMCBuDQow
    MDAwMDA4ODEzIDAwMDAwIG4NCjAwMDAwMDg4NTcgMDAwMDAgbg0KMDAwMDAwODkwMSAwMDAwMCBu
    DQowMDAwMDA4OTQ1IDAwMDAwIG4NCjAwMDAwMzU1NzAgMDAwMDAgbg0KMDAwMDA1ODg4NyAwMDAw....etc.
    

    In backend there are no other options to set and I have no clue what is causing this problem. I have tried several times to get confirmation e-mail (Chrome/FF) but I got always pdf file (Thundebird, Gmail). Can someone help?

    • This topic was modified 6 years, 9 months ago by Jan Dembowski. Reason: Fixed formatting
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author bgermann

    (@bgermann)

    Actually this is what a MIME attachement looks like. This is the beginning of the textual base64 representation of the PDF. There is no issue with it, but you should give the whole email (including headers) to identify any issue.

    You should ask the persons only seeing this representation about their email client. Because it is more likely to be a bug in the email client.

    You should also think about just linking to the file instead of emailing it.

    Thread Starter Marty861

    (@marty861)

    Hey, thanks for the answer and thanks for the tip with linking! I have found more clues – if I move e-mail to the recycler, it will change to something like this without attachment:

    From: "[email protected]" <[email protected]>
    
    Reply-To: [email protected]
    
    Message-ID: <[email protected]>
    
    X-Mailer: PHPMailer 5.2.22 (https://github.com/PHPMailer/PHPMailer)
    
    MIME-Version: 1.0
    
    Content-Type: multipart/mixed;
    
    	boundary="b1_73951f92afd1ba6d561b815f2007d8e5"
    Message-ID: <434540f5442ed0cdfbb50e5f7f0136fe@>
    
    --b1_73951f92afd1ba6d561b815f2007d8e5
    Content-Type: text/plain; charset=UTF-8
    
    Hello,
    
    you will find your file in attachment below.
    
    --b1_73951f92afd1ba6d561b815f2007d8e5
    X-Mozilla-IMAP-Part: 2
    Content-Type: application/pdf; name="attachment_filename.pdf"
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment; filename=attachment_filename.pdf
    
    Obsah zprávy bude sta?en na po?ádání.
    --b1_73951f92afd1ba6d561b815f2007d8e5--

    And when I move it back to inbox and restart Thunderbird, it will change back to normal e-mail with the attachment. Really weird :-/

    Plugin Author bgermann

    (@bgermann)

    There are too many line breaks. Are they exactly as you posted?

    What kind of server (operating system, installed mail application) does your site use?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Attachment – only text instead of file’ is closed to new replies.