muquit / mailsend

A program to send mail via SMTP from command line
Other
295 stars 68 forks source link

mailsend mail encoding doesn't work right #65

Closed deajan closed 9 years ago

deajan commented 9 years ago

Hello,

I've setup some batch scripts where i used SendEmail from Brandon Zehm (http://caspian.dotconf.net/menu/Software/SendEmail/). As SendEmail didn't work with for every tls secured server, i switched to mailsend which works great.

The problem is, the scrips are OEM-863 encoded to keep french chars like é, à, ê When sending a mail with SendEmail, the characters display well (tested so for with Outlook 2013 and zarafa webmail). When sending a mail with mailsend, the characters display like they are UTF8 chars. Here's an example: "trop longs ont �t� d�tect�s"

How to reproduce: Create the following script with NOTEPAD++

mailsend1.17b15.exe -f mail@example.com -t mail@example.com -sub "Test accès mail accentués " -M "Ceci est un test avec des mots à accents comme détéction ou être." -smtp smtp.gmail.com -port 465 -auth -user mail@example.com -pass PASSWORD -starttls -v

Encode that script to OEM863 (encoding > character set > western europe) then send it.

Anything i missed in the config options ? Regards, Ozy.

muquit commented 9 years ago

This is a known limitation of mailsend in Windows. It is mentioned in the mailsend FAQ "Does mailsend support multibyte non-ascii input?"

Thanks.

deajan commented 9 years ago

Well then sorry for not having read the full FAQ yet :) Hopefully this will make it into a next version.