Sample code for 30+ languages & platforms
AutoIt

Demonstrates how to call AddPfxSourceData for an Email Object

Demonstrates how to call AddPfxSourceData for an Email Object

Chilkat AutoIt Downloads

AutoIt
Local $bSuccess = False

$oFac = ObjCreate("Chilkat.FileAccess")
Local $oPfxBytes
$oPfxBytes = $oFac.ReadEntireFile("qa_data/pfx/some.pfx")

$oEmail = ObjCreate("Chilkat.Email")

$bSuccess = $oEmail.AddPfxSourceData($oPfxBytes,"PFX_PASSWORD")
If ($bSuccess <> True) Then
    ConsoleWrite($oEmail.LastErrorText & @CRLF)
    Exit
EndIf

ConsoleWrite("Success." & @CRLF)