SmtpSSL Property

<< Click to Display Table of Contents >>

Navigation:  Reference > SmtpMail >

SmtpSSL Property

 

SmtpSSL property specifies whether outgoing mail server requires an encrypted connection (TLS/SSL).

 

Syntax

 

[Visual Basic]


objSmtpMail.SmtpSSL = True

 

[VBScript]


objSmtpMail.SmtpSSL = True

 

[C#]


objSmtpMail.SmtpSSL = true;

 

[C++]


HRESULT get_SmtpSSL(VARIANT_BOOL*);

HRESULT put_SmtpSSL(VARIANT_BOOL);

 

spSmtpMail->PutSmtpSSL(VARIANT_TRUE);

 

 

Remarks

 

SmtpSSL property is False by default. Set SmtpSSL property to True if you want to use TLS/SSL connection, for example when using smtp.gmail.com server on port 465.