add ccid and url information in the email
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user