MozillaZine

Emoji in the e-mail object through command line

Discussion of general topics about Mozilla Thunderbird
sqrt(-1)
 
Posts: 1
Joined: October 17th, 2016, 11:45 am

Post Posted April 6th, 2017, 3:43 am

Hi all,
I've developed an application that launches Thunderbird Composition window when the user wants to send an e-mail.
The composition window is opened through the Windows command line (http://kb.mozillazine.org/Command_line_arguments_(Thunderbird)) and it contains some data passed as command line arguments (recipient, object and subject).
This works fine but now I need to pre-compose email with emoji in the mail object. The problem is that emojis are unicode characters but unicode characters are not supported by the Windows command line. When emojis are included in the command line arguments, the result is strange characters in the e-mail.

Do you know any work-around or solution to this?
I've also thought to write subject and object data in a text file to be used to fill up email fields. This avoid to insert emoji characters in the command line arguments but there is no command supported by Thunderbird that allows this operation.

Thanks

tanstaafl
Moderator

User avatar
 
Posts: 42870
Joined: July 30th, 2003, 5:06 pm

Post Posted April 8th, 2017, 9:37 pm

Nope. My impression is that the command line interface is a backwater that the developers will ignore unless something breaks. I know of several smtp utilities that support using .xml files to specify the headers etc. but none that will let you save a copy of the sent message in Thunderbird's profile. http://kb.mozillazine.org/Mail_Utilities#SMTP_utilities

Have you thought of having your application using the SimpleMAPI API to call the default email client (Thunderbird) instead? http://kb.mozillazine.org/MAPI_Support

Return to Thunderbird General


Who is online

Users browsing this forum: No registered users and 1 guest