eMail¶
Mail controller allows to send to list of mails.
Send Generic Mail¶
Send mail to multiple destination.
Generic emails (basically for feedback within apps/workflows)
from src.genomcore.client import GenomcoreApiClient
api=GenomcoreApiClient(token="A_VALID_TOKEN", refresh_token="A_VALID_REFRESH_TOKEN")
api.mail.send(mails=["email@domain.com"],
mail_subject="Send Test subjet",
mail_body="<b>Test</b>",
mode=api.mail.MODE_GENERIC)
Note
The mail_body argument is allow html tags, for example: <b>Test</b>”