fusetools.comm_tools.SendGrid

class fusetools.comm_tools.SendGrid[source]

Bases: object

SendGrid’s API infrastructure.

../_images/sendgrid1.png

Methods

send_email

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.