invantive documentation
Invantive Support ForumsLog In / Sign Up

aws_ses

The aws_ses package provides functions to assist in handling mail through AWS SES.

configure: Configure the AWS SES settings.

Configure the settings for use with AWS SES.

Parameters:

  • region_endpoint (string, required): Region endpoint.
  • access_key_id (string, required): Access key ID.
  • secret_access_key (string, required): Secret access key.

create_template: Create a template.

Create a template consisting of subject, text and HTML which can be expanded and filled using template data upon send.

Parameters:

  • client (object, required): The AWS SES client object.
  • template_name (string, required): Name of the template.
  • subject (string, required): Subject template for the emails generated.
  • html_body (string, required): HTML template for the emails generated.
  • text_body (string, required): Text template for the emails generated.

delete_template: Delete a template.

Delete an existing template.

Parameters:

  • client (object, required): The AWS SES client object.
  • template_name (string, required): Name of the template.

get_rendered_template_email: Get a rendered template email.

Get the rendered result of a templated email.

Parameters:

  • client (object, required): The AWS SES client object.
  • template_name (string, required): Name of the template.
  • template_data (string, required): Data for the template. Required when a template name is specified.

send_email: Send an email.

Send an email.

Parameters:

  • client (object, required): The AWS SES client object.
  • from_email (string, required): Email address used as sender.
  • to_email (string, required): Email address used as addressee.
  • subject (string, required): Subject of email.
  • html_body (string, optional): Body of email in HTML-format.
  • text_body (string, optional): Body of email in text format.

send_raw_email: Send a raw email.

Send a raw email.

Parameters:

  • client (object, required): The AWS SES client object.
  • from_email (string, required): Email address used as sender.
  • to_email (string, required): Email address used as addressee.
  • raw_content (string, required): Raw email contents.

send_templated_email: Send a templated email.

Send a templated email.

Parameters:

  • client (object, required): The AWS SES client object.
  • from_email (string, required): Email address used as sender.
  • to_email (string, required): Email address used as addressee.
  • template_name (string, required): Name of the template.
  • template_data (string, required): Data for the template. Required when a template name is specified.

update_template: Update a template.

Update a template consisting of subject, text and HTML which can be expanded and filled using template data upon send.

Parameters:

  • client (object, required): The AWS SES client object.
  • template_name (string, required): Name of the template.
  • subject (string, required): Subject template for the emails generated.
  • html_body (string, required): HTML template for the emails generated.
  • text_body (string, required): Text template for the emails generated.