Mercurial > libervia-backend
comparison libervia/backend/tools/common/email.py @ 4238:b0c36f3d3e04
core: update `pygobject` version and replace deprecated `configparser.SafeConfigParser`
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 11 May 2024 13:16:13 +0200 |
parents | 4b842c1fb686 |
children | 0d7bb4df2343 |
comparison
equal
deleted
inserted
replaced
4237:a1e7e82a8921 | 4238:b0c36f3d3e04 |
---|---|
30 | 30 |
31 | 31 |
32 def send_email(config, to_emails, subject="", body="", from_email=None): | 32 def send_email(config, to_emails, subject="", body="", from_email=None): |
33 """Send an email using SàT configuration | 33 """Send an email using SàT configuration |
34 | 34 |
35 @param config (SafeConfigParser): the configuration instance | 35 @param config (ConfigParser): the configuration instance |
36 @param to_emails(list[unicode], unicode): list of recipients | 36 @param to_emails(list[unicode], unicode): list of recipients |
37 if unicode, it will be split to get emails | 37 if unicode, it will be split to get emails |
38 @param subject(unicode): subject of the message | 38 @param subject(unicode): subject of the message |
39 @param body(unicode): body of the message | 39 @param body(unicode): body of the message |
40 @param from_email(unicode): address of the sender | 40 @param from_email(unicode): address of the sender |