SSPkrolik / smtp

SMTP library for D
MIT License
8 stars 6 forks source link

Encoding problem in email attachments #10

Open Patrick-Berg opened 7 years ago

Patrick-Berg commented 7 years ago

When I attach a json file to an email I get encoding problems (for example ü becomes ü) and there are 15-20 random characters at the end of the file. Now what's weird is that I can "fix" this by attaching multiple files to the email. Only the last file will have these problems even if I attach the same file multiple times. I'm using standard utf-8 and the GMailSender class. I should also mention that the problem somehow depends on the programm you use to open(!) the mail. It appears in Outlook, AppleMail and Thunderbird but not if I use the GMail website.

SSPkrolik commented 7 years ago

@Patrick-Berg, I see, I'll take a look ASAP. On the software you open the email, it depends on what fresh smtp RFC does your software support. Anyway, will try two fix the problem in few days, also contribution is welcomed :)