InternetMailProfile

Properties:

IMAPPassword
IMAPPort
IMAPSecureAuthenticationOnly
IMAPServerAddress
IMAPUser
IMAPUseSSL
Password
POP3BeforeSMTP
POP3Port
POP3SecureAuthenticationOnly
POP3ServerAddress
POP3UseSSL
SMTPPassword
SMTPPort
SMTPSecureAuthenticationOnly
SMTPServerAddress
SMTPUser
SMTPUseSSL
Timeout
User

Constructors:

Default

Description:

Server connection property set.

Availability:

Thin client, server, thick client, external connection, Mobile application (client), Mobile application (server).
Serializable.

Example:

Profile = New InternetMailProfile;

Profile.POP3ServerAddress = POP3Server;
Profile.SMTPServerAddress = SMTPServer;
If 
ServerTimeout > 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 SMTPServerAddress
InternetMailProfile, property POP3ServerAddress
InternetMailProfile, property SMTPPort
InternetMailProfile, property POP3Port
InternetMailProfile, property Password
InternetMail, method Logon

    

1C:Enterprise Developer's Community