4D Internet Commands v14SMTP_Auth |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D Internet Commands v14
SMTP_Auth
SMTP_Auth
The SMTP_Auth command allows sending a message referenced by smtp_ID when an authentication mechanism is required by the SMTP server. This type of authentication is required by some SMTP servers in order to reduce the risk that messages have been falsified or that the sender's identity has been usurped, in particular for the purpose of spamming. This command can be used whether authentication is needed or not since it is only executed if userName and password are not null strings. smtp_ID is the long integer reference to the mail message created with the SMTP_New command. userName is the authentication user name on the SMTP server. userName should not contain the domain. For example, for the address “jack@4d.com,” userName would just be “jack.” password is the authentication password for userName on the SMTP server. Note: If userName and/or password are null strings, the SMTP_Auth command is not executed. The optional authMode parameter allows the “forcing” of the authentication mode used. You can pass 0, 1, 2 or 3 in this parameter:
This example enables sending a message with or without authentication depending on the content of specific fields stored in the 4D database: C_INTEGER($vError) |
PROPERTIES
Product: 4D Internet Commands
HISTORY
Modified: 4D Internet Commands 2003 ARTICLE USAGE
4D Internet Commands ( 4D Internet Commands v11.4) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||