The EmailConnectSSL function connects to the email server using SSL over Stunnel. Required for sending mail through gmail, yahoo mail and other mail providers.
Most often the only differences in settings between each mail provider are the server names and the SMTP ports. The SSL port numbers are values that like 465, 587 and other port numbers.
Provider Port Server Name
-------- ---- -----------
GMAIL 465 smtp.gmail.com
995 pop.gmail.com
993 imap.gmail.com
HotMail 587 smtp.live.com
995 pop3.live.com
Yahoo 465 plus.smtp.mail.yahoo.com
995 plus.pop.mail.yahoo.com
MS Online 587 smtp.mail.microsoftonline.com
995 pop.mail.microsoftonline.com
Sympatico 587 smtphm.sympatico.ca
995 pophm.sympatico.ca
Syntax: |
---|
connected = EmailConnectSSL( serverName, [returnEmail], [replyEmail], [userName], [password], [port] ) |
Parameter: |
Description: |
---|---|
serverName |
The name of the email server. |
[returnEmail] |
Optional: The return address. |
[replyEmail] |
Optional: The reply address. |
[userName] |
Optional: The user's "username-ID" for their email account. |
[password] |
Optional: The password for the email account. |
[port] |
Optional: The Out-Going SMTP connection port number. |
Example: |
---|
' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
Returns: |
---|
connected = True, when a connection is successful, and a False when it fails. |
Links: |
---|
|
See Also: |
|
Edit Time: 9/12/2020 2:16:04 PM |
Topic ID#: 275 |