I found the culprit! It's remove_temporary_emails() !

Although the function works as expected (tried it), it changes 'toaddr' from list of strings, to strings.

Here's the code:

    if type(toaddr) is str:
        toaddr = toaddr.strip().split(',')

up to here toaddr it's definitely list of strings...

    toaddr = remove_temporary_emails(toaddr)

Here it's a simple string

Then things start to not work as expected.

If I comment out remove_temporary_emails, everything works as expected.

I'll post a ticket. remove_temporary_emails should return list of strings.


On 6/12/2013 8:39 πμ, Theodoros Theodoropoulos wrote:
Correction:
(I also tried using list of strings in the TOADDR, with the same results)
meaning: mailutils.send_email("serverurl", ["email1","email2"], subject="test", content="test content", debug_level=9)


Reply via email to