Transaction Emails

class dotmailer.transactional_emails.TransactionEmail(**kwargs)
classmethod get_stats(since_date, end_date, aggregate_by)

This operation retrieves your transactional email reporting statistics (number sent, delivered, opens, clicks, ISP complaints and bounces) for a specified time period.

This time period can be set with a specific end date, or statistics can be aggregated by all time, week, month or day.

Parameters:
  • since_date – A date/datetime object which represents the start date for which transactional email reporting statistics will be returned.
  • end_date – A date/datetime object which represents the end date up to which transactional email reporting wil be returned (inclusive).
  • aggregate_by – The data aggregation period for transactional email reporting statistics
Returns:

classmethod send_transactional_triggered_campaign(to_addresses, campaign_id, personalisation_values=None)
Parameters:
  • to_addresses – A list of email addresses which the campaign should be sent to.
  • campaign_id – The DotMailer ID value of the campaign you wish to trigger.
  • personalisation_values – A dictionary of any personalisation values that should be used to fill in the email.
Returns: