Title
k

Kao Phetchareun

03/05/2021, 5:48 PM
Does the EmailTask’s
email_to_cc
only allow for sending one email for cc?
đź‘€ 1
n

nicholas

03/05/2021, 5:58 PM
Hi @Kao Phetchareun - under the hood, the
EmailTask
implements the
smtplib
python module, which I believe supports sending emails to multiple recipients (including with CC) by providing a comma-separated string, i.e.:
<mailto:hello@prefect.io|hello@prefect.io>, <mailto:marvin@prefect.io|marvin@prefect.io>, <mailto:me@prefect.io|me@prefect.io>
k

Kao Phetchareun

03/05/2021, 5:59 PM
Thanks. I will retry. I was sending a list of strings earlier
j

jack

03/05/2021, 6:06 PM
The comments in the source code do make it sound like it's singular:
Ah, but @Kao Phetchareun and I are running version 0.14.1, which has a different signature altogether:
So any additional args are probably just forwarded on as part of **kwargs
n

nicholas

03/05/2021, 6:31 PM
If that works @Kao Phetchareun we can update the docstrings to reflect that 🙂
j

jack

03/05/2021, 6:37 PM
I wonder if it would work to upgrade the agent's virtualenv to 0.14.11 even though the standalone server is still running 0.14.1. Anyone know if these are compatible?
n

nicholas

03/05/2021, 6:37 PM
Hm I'm not sure of the specifics there but I would say matching the server and agent versions is usually desirable, since the agent polls the API there's always a risk of a schema mismatch