Tcl
Tcl
Transition from Email.CreateMdn to Email.ToMdn
Provides instructions for replacing deprecated CreateMdn method calls with ToMdn.Chilkat Tcl Downloads
load ./chilkat.dll
set success 0
set email [new_CkEmail]
# ...
# ...
set explanation "..."
set statusFieldsXml "..."
set headerOnly 0
# ------------------------------------------------------------------------
# The CreateMdn method is deprecated:
# emailObj is a CkEmail
set emailObj [CkEmail_CreateMdn $email $explanation $statusFieldsXml $headerOnly]
if {[CkEmail_get_LastMethodSuccess $email] == 0} then {
puts [CkEmail_lastErrorText $email]
delete_CkEmail $email
exit
}
# ...
# ...
delete_CkEmail $emailObj
# ------------------------------------------------------------------------
# Do the equivalent using ToMdn.
# Your application creates a new, empty Email object which is passed
# in the last argument and filled upon success.
set emailOut [new_CkEmail]
set success [CkEmail_ToMdn $email $explanation $statusFieldsXml $headerOnly $emailOut]
if {$success == 0} then {
puts [CkEmail_lastErrorText $email]
delete_CkEmail $email
delete_CkEmail $emailOut
exit
}
delete_CkEmail $email
delete_CkEmail $emailOut