Xbasic
EMAIL_SMTP_CLOSE Function
Syntax
Result_Flag as L = email_smtp_close(P pSocket )
Arguments
- pSocketPointer
A pointer variable that was populated by EMAIL_SMTP_OPEN().
Returns
- Result_FlagLogical
.T. = The connection was closed gracefully. .F. = The connection was forced closed with SOCKETS.CLOSE().
Description
The EMAIL_SMTP_CLOSE() function closes a connection with an SMTP email server.
Example
dim pm as P if (email_smtp_open(ps, "mail.alphasoftware.com", "username", "password", 25)) then '' send the email else TRACE.writeLn("Could not connect to SMTP server.","Email") end if email_smtp_close(ps)
See Also