<< back to sysax.com Product page

11.5. Sending Email securely

The MailSendSSL or MailSendTLS methods can be used to send an email message securely.

Exhibit 11.9. IDL Definition of method to sending email securely


HRESULT MailSendSSL ([in] BSTR b_address, [in] UINT n_port, [in] BSTR b_rcptname, [in] BSTR b_rcptemail, [in, defaultvalue("")] BSTR b_username, [in, defaultvalue("")] BSTR b_password);
HRESULT MailSendTLS ([in] BSTR b_address, [in] UINT n_port, [in] BSTR b_rcptname, [in] BSTR b_rcptemail, [in, defaultvalue("")] BSTR b_username, [in, defaultvalue("")] BSTR b_password);


Exhibit 11.10. Example usage of method to sending email securely (VBScript)


app.MailSendSSL "mail.mailserver.com", 25, "joe rec", "joe@mydomain.com", "mailuser", "mailpass"
app.MailSendTLS "mail.mailserver.com", 25, "joe rec", "joe@mydomain.com", "mailuser", "mailpass"