Description | 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.
|
---|