Email

analyze.email.create_template(body)

Creates a new email template

Parameters

body (str) – HTML Body of email

Returns

None

analyze.email.delete_template(template_id)

Deletes the specified template

Parameters

template_id (str) – Email Template ID

Returns

None

analyze.email.history()

Provides email sending history and status of the emails for the workspace

Returns

list of emails sent

Return type

list

analyze.email.send(subject, html_body, text_body, member_ids, attachment_account_id, attachment_path, template_id)

Sends email using the specified values to the list of members specified

Parameters
  • subject (str) – Subject of the Email

  • html_body (str) – The body of the email in HTML format

  • text_body (str) – The body of the email in Text format for multipart messages

  • to_address (str) – email address (or formatted distro list) to send to

  • attachment_account_id (int) – The Document account Id

  • attachment_path (str) – The path to the files to attach

  • template_id (str) – Email Template ID

Returns

None

analyze.email.templates()

Provides list of available email templates for use

Returns

None

analyze.email.update_template(template_id, body)

Updates the specified template

Parameters
  • template_id (str) – Email Template ID

  • body (str) – HTML Body of email

Returns

None