|
|
|
|
|
- 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
gIMAPSession is emailIMAPSession
gIMAPSession.ServerAddress = "imap.gmail.com"
gIMAPSession.Name = "user@gmail.com"
gIMAPSession.Password = "secret"
gIMAPSession.Port = 993
gIMAPSession.Option = optionTLS
IF EmailStartSession(gIMAPSession) = False THEN
ErrorInfo(errFullDetails)
END
Connecting to a secure SMTP server
gSMTPSession is emailSMTPSession
gSMTPSession.ServerAddress = "smtp.gmail.com"
gSMTPSession.Name = "user@gmail.com"
gSMTPSession.Password = "secret"
gSMTPSession.Port = 587
gSMTPSession.Option = emailProtocolSMTPS
IF EmailStartSession(gSMTPSession) = False THEN
Error(ErrorInfo(errFullDetails))
END
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|