Conversion_Kitchen_Code/kitchen_counter/Blockchain2/automailtest.py

41 lines
1.5 KiB
Python

from auto_email.views import sendmail
from django.conf import settings
def TestAutoMail():
to_email = ["praveshenter9303@gmail.com"]
print("starting...")
email_code = 'BL1'
# key_value = {
# "service":"Script Pad",
# "hash": hash2,
# "public key":blockchain_obj.publicKey,
# "Transaction Hash": tx_id,
# }
key_value = {
"Product Name": "Script Pad",
"Profile url": f"https://mynextfilm.in/memberpage/#/personaldetails",
"User url": f"https://mynextfilm.ai/memberpage/#/user/47/personaldetails",
"Product output card url": "hash2",
}
sendmail(to_email=to_email , email_code=email_code, key_value=key_value, filePath=None)
print("end............")
def TestAutoMail1():
to_email = ["paveenpaul.work@gmail.com"]
print("starting...")
email_code = 'SB1'
# key_value = {
# "service":"Script Pad",
# "hash": hash2,
# "public key":blockchain_obj.publicKey,
# "Transaction Hash": tx_id,
# }
key_value = {
"Script Name" : "str(screenplay_name)",
"Audited script url" : f"{settings.SITE_DOMAIN}/audit/audits1",
"User's profile url": f"{settings.SITE_DOMAIN}/memberpage/#/user/46/personaldetails",
}
print("key value = ",key_value)
sendmail(to_email=to_email , email_code=email_code, key_value=key_value, filePath=None)
print("end............")