Chilkat2-Python
Chilkat2-Python
Demonstrates how to call AddPfxSourceData for an Email Object
Demonstrates how to call AddPfxSourceData for an Email ObjectChilkat Chilkat2-Python Downloads
import sys
import chilkat2
success = False
fac = chilkat2.FileAccess()
# pfxBytes is a memoryview
pfxBytes = fac.ReadEntireFile("qa_data/pfx/some.pfx")
email = chilkat2.Email()
success = email.AddPfxSourceData(pfxBytes,"PFX_PASSWORD")
if (success != True):
print(email.LastErrorText)
sys.exit()
print("Success.")