Product Logo

SMTPit Pro

Next Generation Email plug-in




The SMTPit_Send function first checks to make sure you have assigned enough fields to send an email. If everything checks out, it attempts to send the email to your mail server. If there is a problem sending the email to your mail server, it will return the error. If the email sent successfully, it will return the string “Email Sent Successfully.”

You can use this function by itself, or with the SMTPit_Connect and SMTPit_Disconnect functions. If you use this function by itself, this function will connect to your mail server, send the email, and then disconnect. If you call SMTPit_Connect before calling this function, this function will simply send the email; it will not try to connect and disconnect. This is useful in mass-email solutions that send out several emails in one setting. 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, otherwise SMTPit will never disconnect you from the mail server.

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 will not have the required information to properly authenticate with your mail server.

Return TypeText
FormatSMTPit_Send ( GetTranscript ; ShowResultDialog )
Optional Parameters

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


Set to True if you want a Dialog to Popup with the Success or Failure of the Send.

Example 1

Sends an email message based on the settings you have used in other functions and/or in the preferences.

Example 2

Send the message and also returns a transcript.

SMTPit_Send( True )
Example 3

Sends the message and displays a dialog with the result.

SMTPit_Send( False ; True )
Example 4

Sends the message, returns a transcript, and displays a dialog with the result.

SMTPit_Send( True ; True )