- Connecting to an IMAP server by using an emailIMAPSession variable
- Connecting to a secure SMTP server
EmailStartSession (Example)
Connecting to an IMAP server by using an emailIMAPSession variable
// The IMAP account is defined at gMail gSessionIMAP is emailIMAPSession gSessionIMAP.ServerAddress = "imap.gmail.com" gSessionIMAP.Name = "user@gmail.com" gSessionIMAP.Password = "secret" gSessionIMAP.Port = 993 gSessionIMAP.Option = optionSSL // Start the gMail session IF EmailStartSession(gSessionIMAP) = False THEN // The opening failed ErrorInfo(errFullDetails) END
Connecting to a secure SMTP server
// It is a gMail server in this example // Secure SMTP session gSessionSMTP is emailSMTPSession gSessionSMTP.ServerAddress = "smtp.gmail.com" gSessionSMTP.Name = "user@gmail.com" gSessionSMTP.Password = "secret" gSessionSMTP.Port = 587 gSessionSMTP.Option = emailOptionSecuredTLS // Start the session IF EmailStartSession(gSessionSMTP) = False THEN Error(ErrorInfo(errFullDetails)) END
This page is also available for…
|
|
|
|