from .ses_send_email import send_email templates = { "export_finished": { "subject": "Exporting your audience is finished", "template": "html/integration_export_confirmation.html", }, } attach_images = [ {"name": "fansifter-email-templates/Welcome/g14.png", "cid": "g14_png"} ] def send_export_confirmation_email( recipient, audience_name, external_service_name, number_of_fans, external_list_name, external_list_id, ): """Send confirmation of Exporting the data to external Service.""" # default template params template_params = { "audience_name": audience_name, "external_service_name": external_service_name, "number_of_fans": number_of_fans, "external_list_name": external_list_name, "external_list_id": external_list_id, } email_params = { "sender": '"FanSifter" ', "recipients": recipient, "subject": templates["export_finished"]["subject"], } send_email( templates["export_finished"]["template"], template_params, email_params, attach_images, )