def sendmail(recipients, sender='', msg='', subject='[No Subject]', attachments=None, content=None, reply_to=None, cc=(), message_id=None): """send an html email as multipart with attachments and all""" mail = get_email(recipients, sender, content or msg, subject, attachments=attachments, reply_to=reply_to, cc=cc) if message_id: mail.set_message_id(message_id) send(mail)
def sendmail(recipients, sender='', msg='', subject='[No Subject]', attachments=None, content=None, reply_to=None, cc=(), message_id=None, in_reply_to=None,read_receipt=None): """send an html email as multipart with attachments and all""" mail = get_email(recipients, sender, content or msg, subject, attachments=attachments, reply_to=reply_to, cc=cc) mail.set_message_id(message_id) if in_reply_to: mail.set_in_reply_to(in_reply_to) if read_receipt: mail.msg_root["Disposition-Notification-To"] = sender send(mail)
def sendmail(recipients, sender='', msg='', subject='[No Subject]', attachments=None, content=None, reply_to=None, cc=(), message_id=None, in_reply_to=None, retry=1): """send an html email as multipart with attachments and all""" mail = get_email(recipients, sender, content or msg, subject, attachments=attachments, reply_to=reply_to, cc=cc) if message_id: mail.set_message_id(message_id) if in_reply_to: mail.set_in_reply_to(in_reply_to) send(mail, retry=retry)
def sendmail(recipients, sender='', msg='', subject='[No Subject]', attachments=None, content=None, reply_to=None): """send an html email as multipart with attachments and all""" send( get_email(recipients, sender, content or msg, subject, attachments=attachments, reply_to=reply_to))
def sendmail_to_system_managers(subject, content): send(get_email(get_system_managers(), None, content, subject))