You are currently viewing the new Anvil Editor Docs.
Switch to the Classic Editor Docs
You are currently viewing the Classic Editor Docs.
Switch to the new Anvil Editor Docs

anvil.google.mail Module

Functions

send

Functions

send([to=], [subject=None], [text=None], [html=None], [cc=], [bcc=], [from_address=None], [draft=False])

Send an email via GMail. ’to’, ‘cc’ and ‘bcc’ may be strings (email addresses) or lists of strings (multiple addresses). At least one of ’text’ and ‘html’ need to be provided (both strings). Passing draft=True will create a draft message rather than sending it.



    Do you still have questions?

    Our Community Forum is full of helpful information and Anvil experts.


    anvil.google.mail