Does the EmailTask’s `email_to_cc` only allow for ...
# ask-community
k
Does the EmailTask’s
email_to_cc
only allow for sending one email for cc?
👀 1
n
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
Thanks. I will retry. I was sending a list of strings earlier
j
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
If that works @Kao Phetchareun we can update the docstrings to reflect that 🙂
j
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
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