Go
Go
Demonstrates how to call AddPfxSourceData for an Email Object
Demonstrates how to call AddPfxSourceData for an Email ObjectChilkat Go Downloads
success := false
fac := chilkat.NewFileAccess()
var pfxBytes []byte
pfxBytes = fac.ReadEntireFile("qa_data/pfx/some.pfx")
email := chilkat.NewEmail()
success = email.AddPfxSourceData(pfxBytes,"PFX_PASSWORD")
if success != true {
fmt.Println(email.LastErrorText())
fac.DisposeFileAccess()
email.DisposeEmail()
return
}
fmt.Println("Success.")
fac.DisposeFileAccess()
email.DisposeEmail()