class CImSmtpMobilitySettings : public CBase |
Configuration settings for an SMTP mobility account
A SMTP mobility account allows different send settings to be used by SMTP accounts depending on what access point is being used by the SMTP connection. When a connection is made for a SMTP account, its associated list of SMTP mobility accounts is examined to see which, if any, is linked to the bearer that will be used for the connection. If one is found, then the settings for the SMTP mobility account are used for the connection and subsequent email sending in preference to the settings for the SMTP account.
Private Member Functions | |
---|---|
CImSmtpMobilitySettings () | |
void | ConstructL () |
Private Attributes | |
---|---|
CImSmtpSettings * | iSmtpSettings |
IMPORT_C const TUid | DefaultMsgCharSet | ( | ) | const |
Gets which character set is used to send text in MIME email messages.
IMPORT_C const TPtrC | EmailAlias | ( | ) | const |
Gets the email alias (display name) that will be sent with outbound email.
IMPORT_C const TPtrC8 | LoginName | ( | ) | const |
Gets the login user name used for SMTP authentication
IMPORT_C TUint | Port | ( | ) | const |
Gets the port number to use for the TCP connection to the outbound SMTP email server
IMPORT_C TBool | SMTPAuth | ( | ) | const |
Gets whether SMTP authentication is used when sending emails.
IMPORT_C TBool | SSLWrapper | ( | ) | const |
Gets whether a secure TLS connection will be established directly over a TLS/SSL socket when connecting to the outbound SMTP email server
IMPORT_C TBool | SecureSockets | ( | ) | const |
Gets whether a secure TLS connection will be negotiated over a non-secure TCP socket connection when a connection to the outbound SMTP email server is being established.
Refer to RFC 3207 - "SMTP Service Extension for Secure SMTP over Transport Layer Security" for information on how a secure socket is established when sending an email.
IMPORT_C const TPtrC | ServerAddress | ( | ) | const |
Gets the configured IP address or host name of the outbound SMTP email server
IMPORT_C void | SetDefaultMsgCharSet | ( | TUid | aDefaultMsgCharSet | ) |
Sets which character set is used to send text in MIME email messages.
The default character set is ISO-8859-1 (Latin 1). The UIDs used to identify all character sets are defined in the Character Conversion API.
TUid aDefaultMsgCharSet | Character set identifier |
IMPORT_C void | SetEmailAddressL | ( | const TDesC & | aEmailAddress | ) |
Sets the SMTP email address of the user
const TDesC & aEmailAddress | SMTP email address of the user. |
IMPORT_C void | SetEmailAliasL | ( | const TDesC & | aEmailAlias | ) |
Sets the email alias (display name) that will be sent with outbound email.
const TDesC & aEmailAlias | Email alias |
IMPORT_C void | SetLoginNameL | ( | const TDesC8 & | aLoginName | ) |
Sets the login user name to use for SMTP authentication
const TDesC8 & aLoginName | Login user name |
IMPORT_C void | SetPasswordL | ( | const TDesC8 & | aPassword | ) |
Sets the password to use for SMTP authentication
const TDesC8 & aPassword | Password |
IMPORT_C void | SetPort | ( | const TUint | aPortNumber | ) |
Sets the port number of the TCP connection to the outbound SMTP email server
Defaults to port 25
const TUint aPortNumber | Port number |
IMPORT_C void | SetSMTPAuth | ( | TBool | aFlag | ) |
Sets whether SMTP authentication is used when sending emails.
See RFC 2554 "SMTP Service Extension for Authentication" for more details.
TBool aFlag | ETrue to enable SMTP authentication, EFalse to disable it. |
IMPORT_C void | SetSSLWrapper | ( | TBool | aFlag | ) |
Sets whether a secure TLS connection will be established directly over a TLS/SSL socket when connecting to the outbound SMTP email server
The port number upon which the connection is attempted is configured by calling SetPort() .
TBool aFlag |
IMPORT_C void | SetSecureSockets | ( | TBool | aFlag | ) |
Sets whether a secure TLS connection will be negotiated over a non-secure socket when a connection to the outbound SMTP email server is being established.
Refer to RFC 3207 - "SMTP Service Extension for Secure SMTP over Transport Layer Security" for information on how a secure socket is established when sending an email.
Not all SMTP servers support this protocol
TBool aFlag | ETrue if a secure socket session will be negotiated after establishing a non-secure TCP connection with the SMTP server. |
IMPORT_C void | SetServerAddressL | ( | const TDesC & | aServerAddress | ) |
Sets the configured IP address or host name of the outbound SMTP email server
const TDesC & aServerAddress | Outbound email server address to set |
void | SetSmtpSettings | ( | CImSmtpSettings * | aSettings | ) |
Sets the SMTP settings to a new value
CImSmtpSettings * aSettings | New SMTP settings |
IMPORT_C void | SetTlsSslDomainL | ( | const TDesC8 & | aFolderPath | ) |
Sets the domain name to use during TLS/SSL certificate validation.
const TDesC8 & aFolderPath | Domain name |
IMPORT_C TPtrC8 | TlsSslDomain | ( | ) | const |
Gets the domain name to use during TLS/SSL certificate validation.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.