InternetMailProfile
Properties:
IMAPPort
IMAPSecureAuthenticationOnly
IMAPServerAddress
IMAPUser
IMAPUseSSL
Password
POP3BeforeSMTP
POP3Port
POP3SecureAuthenticationOnly
POP3ServerAddress
POP3UseSSL
SMTPPassword
SMTPPort
SMTPSecureAuthenticationOnly
SMTPServerAddress
SMTPUser
SMTPUseSSL
Timeout
User
Constructors:
Description:
Availability:
Serializable.
Example:
Profile = New InternetMailProfile; Profile.POP3ServerAddress = POP3Server; Profile.SMTPServerAddress = SMTPServer; If ServerTimeout > 0 Then Profile.Timeout = ServerTimeout; EndIf; Profile.Password = Password; Profile.User = Login; Profile.POPPort3 = POPPort3; Profile.SMTPPort = SMTPPort; If SMTPAuthentification Then Profile.SMTPPassword = SMTPPassword; Profile.SMTPUser = LoginSMTP; EndIf; InternetMail = New InternetMail; Try InternetMail.Logon(Profile); Except Message(ErrorDescription()); DoMessageBox(" An error occurred during account settings check. |Error description is displayed in message dialog."); Return; EndTry; |
See also:
InternetMailProfile, property POP3ServerAddress
InternetMailProfile, property SMTPPort
InternetMailProfile, property POP3Port
InternetMailProfile, property Password
InternetMail, method Logon