Name | SMTPit_SetAuthentication |
---|
Description | If your mail server requires authentication (requires you to log in) before it allows you to send email, then use the SMTPit_SetAuthentication function to assign the type of authentication your mail server requires. The types of authentication SMTPit supports are (in increasing levels of security): None (off), Plain, Login, and CRAM-MD5.
|
---|
Return Type | Text |
---|
Format | SMTPit_SetAuthentication ( Type ; Username ; Password ; TLSType ) |
---|
Required Parameters | Type The Type of Authentication (Specify None; Default; Plain; Login; CRAM-MD5; or Auto). Plain, Login, and CRAM-MD5 are the actual types of authentication the mail server supports. If you know which one your mail server supports, select it, otherwise use the Auto type. Auto will make the plug-in figure out which type works with your mail server. Specifying None will turn authentication off. Default uses the values set in the configuration dialog.
|
---|
Optional Parameters | - Username
Your account Username.
- Password
Your account Password.
- TLSType
The type of SSL/TLS/STARTTLS to use. ( None; AfterConnect; or BeforeConnect ) The type depends on your mail server. If you do not know the type your mail server requires, try both to see which type works.
As a general rule, if you are using port 465, set this to “BeforeConnect”, or if you are using port 587, set this to “AfterConnect”. Even if you are using these ports, it is possible you do not need to use SSL at all, as it depends on your mail server.
|
---|
Examples | - Example 1
Sets the authentication to "none" SMTPit_SetAuthentication( "none" )
- Example 2
Sets the authentication to "PLAIN" SMTPit_SetAuthentication( "PLAIN" ; "username" ; "password" )
- Example 3
Sets the authentication to "LOGIN" SMTPit_SetAuthentication( "LOGIN" ; "username" ; "password" )
- Example 4
Sets the authentication to "CRAM-MD5" SMTPit_SetAuthentication( "CRAM-MD5" ; "username" ; "password" )
|
---|