fusetools.comm_tools.SendGrid¶
-
class
fusetools.comm_tools.SendGrid[source]¶ Bases:
objectSendGrid’s API infrastructure.
Methods
Sends an email via SendGrid API.
-
classmethod
send_email(api_key, from_email, to_emails, subject, html_content)[source]¶ Sends an email via SendGrid API.
- Parameters
api_key – SendGrid API Key.
from_email – Email to send the message from.
to_emails – Email to send the message to.
subject – Email subject line.
html_content – HTML content to send in email.
- Returns
JSON API call response.
-
classmethod