SMTPit Pro

Next Generation Email plug-in

<- Back to SMTPit Pro function list

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.

Examples

Example 1

Code:

SMTPit_SetAuthentication("none")

Result:

Sets the authentication to "none"

Example 2

Code:

SMTPit_SetAuthentication("PLAIN";"username";"password")

Result:

Sets the authentication to "PLAIN"

Example 3

Code:

SMTPit_SetAuthentication("LOGIN";"username";"password")

Result:

Sets the authentication to "LOGIN"

Example 4

Code:

SMTPit_SetAuthentication("CRAM-MD5";"username";"password")

Result:

Sets the authentication to "CRAM-MD5"