add ccid and url information in the email

This commit is contained in:
2022-04-27 14:55:25 +02:00
parent ab3566e062
commit 8e27702836
5 changed files with 16 additions and 18 deletions
-13
View File
@@ -5,9 +5,7 @@ from mako.template import Template
import boto3
import definitions
import params
from notification.AcceptedResultPojo import AcceptedResultPojo
from pojo.ReserveResultPojo import ReserveResultPojo, PublishType
TEMPLATE_NAME = 'scrapy_template_email'
AWS_CLIENT_NAME = "sesv2"
@@ -53,14 +51,3 @@ class Mailer:
},
}
)
if __name__ == '__main__':
result = ReserveResultPojo(email="purge_jigsaws_0p@icloud.com", phone="0649614591", url="url", firstName="wenjing",
lastName="Chen", message="msg", type=PublishType.SUCCESS, passport="Ed1543183",
slot_position=1, sim_position=1)
# mytemplate = Template(filename=definitions.ROOT_DIR + "/templates/appointment_results.html")
# print(mytemplate.render(result_list=[result]))
mailer = Mailer()
mailer.send_email([result])