mirror of
https://github.com/pretix/pretix.git
synced 2026-08-29 13:44:40 +00:00
Add bcc to mail_send
This commit is contained in:
@@ -141,8 +141,8 @@ def mail(email: str, subject: str, template: Union[str, LazyI18nString],
|
|||||||
|
|
||||||
@app.task
|
@app.task
|
||||||
def mail_send_task(to: List[str], subject: str, body: str, html: str, sender: str,
|
def mail_send_task(to: List[str], subject: str, body: str, html: str, sender: str,
|
||||||
event: int=None, headers: dict=None) -> bool:
|
event: int=None, headers: dict=None, bcc: List[str]=None) -> bool:
|
||||||
email = EmailMultiAlternatives(subject, body, sender, to=to, headers=headers)
|
email = EmailMultiAlternatives(subject, body, sender, to=to, bcc=bcc, headers=headers)
|
||||||
if html is not None:
|
if html is not None:
|
||||||
email.attach_alternative(inline_css(html), "text/html")
|
email.attach_alternative(inline_css(html), "text/html")
|
||||||
if event:
|
if event:
|
||||||
|
|||||||
Reference in New Issue
Block a user