Note: I cannot test this as smtp access is blocked at work but I only changed the on_done function and the signature and subject assignment in the send_gmail function (so it would work as well as it did before).

Thanks for the reply! No, it doesn't seem to work. I figured I needed to change the on_done function. I'm more used to vanilla C programming for microcontrollers and object-oriented programming seems a bit confusing for me ... Especially the lambda function and s variable as it doesn't seem to be defined.

I'm sorry I have to necropost this thread too, but there is apparently an issue with special characters with this plugin. I used the above code (which allows setting an email subject), but will always get an error when using special characters, at least the "ç". It have done several trials prior to identify that this was what caused the error. Any idea on how to solve that?

Also, a few minor issues:- How can I change the display name of the emails I send? I tried to change the "From:" in the gmail.py to "Firstname Name", but it will still show the username of my Gmail address (which is "firstname.name").- Any way to send an email in "thread" mode, where all messages with the same subject are put in the same conversation?- How should I proceed to send an email to multiple recipients? Should I use "," or ";" as a separator, is it supported?

Kabouik wrote:I'm sorry I have to necropost this thread too, but there is apparently an issue with special characters with this plugin. I used the above code (which allows setting an email subject), but will always get an error when using special characters, at least the "ç". It have done several trials prior to identify that this was what caused the error. Any idea on how to solve that?

Also, a few minor issues:- How can I change the display name of the emails I send? I tried to change the "From:" in the gmail.py to "Firstname Name", but it will still show the username of my Gmail address (which is "firstname.name").- Any way to send an email in "thread" mode, where all messages with the same subject are put in the same conversation?- How should I proceed to send an email to multiple recipients? Should I use "," or ";" as a separator, is it supported?

Many thanks in advance for the answers.

1) Not sure about the unicode issue...I'll have to look closer

2) To set the display name, use the following format for the "from":Display Name <address@gmail.com>

1. Hope you'll find something about that, I think accented characters also cause the issue, so that's a big one for my language.

2. Thanks. I've just tried that but it still seems to show my username instead of the display name. I was using an Alias in Gmail so I disabled it and put my Gmail address as default sender again, but still the same issue.

Kabouik wrote:2. Thanks. I've just tried that but it still seems to show my username instead of the display name. I was using an Alias in Gmail so I disabled it and put my Gmail address as default sender again, but still the same issue.

(although this won't work if you have unicode characters in your name - you need to encode the name part of the string if you want to do that)

It looks like the creating emails in python that have unicode is a bit difficult. I did some research and tried some things out but it's tough when I can't actually test out the sending code. Even so, I started running into problems as soon as I start using unicode characters...

It's very possibly that my errors are a result of my limited python knowledge - I seem to frequently have issues handling unicode in my plugins.

If I get some time later I'll give it another shot and see if I can get any further.

Don't bother too much for the display name if you don't find anything about the unicode issue, this is by far the most problematic issue because I cannot use the plugin without unicode characters anyway. Display name and other details might be discussed later if that big one can be solved. :p

I am sorry I don't code, there is no way I can help you with python, I'm afraid. :/