Product Logo

SMTPit Pro

A Feature-rich Email plug-in




You can use the “SMTPit_Connect” function to specifically connect to your mail server rather than letting the “SMTPit_Send” function connect for you.

When you normally use the “SMTPit_Send” function, SMTPit Pro will connect to your mail server, send your email, and then disconnect. However, if you call the “SMTPit_Connect” function prior to calling the “SMTPit_Send” function, SMTPit Pro will simply connect to your email server and send the message without disconnecting from your server.

This is useful in mass-email solutions that need to send out several email messages at a time. Connecting once, sending several emails, and then disconnecting is much more efficient than connecting and disconnecting for each individual email. If you call “SMTPit_Connect”, you must call “SMTPit_Disconnect” after sending all of your messages, otherwise SMTPit will never disconnect from the mail server.

In a mass-email solution, you would want to call SMTPit_Connect before your looping script, and call SMTPit_Disconnect after your looping script. For normal operation, use the empty string as the parameter (“”).

If you would like a transcript of the interaction between SMTPit and your mail server, use the optional “GetTranscript” parameter. This may be useful when determining why your mail server is not allowing you to connect to it.

If your mail server requires authentication before you can send email, you must set up the Authentication Type, Username, and Password before calling this function. Otherwise, SMTPit Pro will not have the required information to properly authenticate with your mail server.

Return TypeText
FormatSMTPit_Connect ( GetTranscript )
Optional Parameters

Set to True if you want a Transcript of the interaction between SMTPit and your Mail Server.

Example 1

Connects to your mail server

Example 2

Connects to your mail server and returns a transcript.

SMTPit_Connect( "True")