Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

SendMail.Sign

Signs the email.

Component Version macOS Windows Linux Server iOS SDK
SendMail 11.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "SendMail.Sign"; EmailID; X509Ref; PKeyRef )   More

Parameters

Parameter Description Example
EmailID The email reference number obtained using SendMail.CreateEmail function. $EmailID
X509Ref The reference to the X509 certificate. $cert
PKeyRef The reference to the private key. $pkey

Result

Returns OK or error.

Description

Signs the email.
Wraps email source with S/Mime signature.
Please make sure you assemble the email before as doing changes later will remove the signature.

After signing, you can use SendMail.PrepareCURL or SendMail.GetSource.

Examples

Sign an email:

Set Variable [ $cert ; Value: MBS( "X509.Read"; EMail::Certificate ) ]
Set Variable [ $key ; Value: MBS( "PKey.Read"; EMail::Certificate ) ]

Set Variable [ $r ; Value: MBS("SendMail.Sign"; $EmailID; $cert; $key) ]
If [ MBS("IsError") ]
    Show Custom Dialog [ "Failed to sign email" ; $r ]
End If

Set Variable [ $r ; Value: MBS( "PKey.Release"; $key ) ]
Set Variable [ $r ; Value: MBS( "X509.Release"; $cert ) ]

See also

Release notes

  • Version 11.4

Blog Entries

Created 22nd August 2021, last changed 23th August 2021


SendMail.SetSubject - SerialPort.AvailableBytes

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins

Start Chat