Home     Products      Support      Corporate     Sign In 
Support Knowledge Base, Article 249
Product
SMTPmail
Version
2.x Full
Title
HOWTO: Be Authenticated by your SMTP server when using SMTPmail
Problem
Prevent spammers from using your SMTP server by requiring users to log in to the server before sending mail.
Solution
Use SMTPmail's Username and Password properties to require authentication by users.

For example,

<%

Set mailer = Server.CreateObject("SoftArtisans.SMTPMail")
 ...
'--- Set the UserName and Password with which mail server will authenticate
mailer.UserName ="Username"
mailer.Password ="Password"
'--- If mail server authenticates, send e-mail
mailer.SendMail
 ...

%>


If you do not set BOTH the UserName and Password properties, your mail will not be authenticated with the server.

Only Basic Login Authentication is supported at this time.

This feature is based on the "SMTP Service Extension for Authentication" protocol in RFC2554.
Created : 12/1/2002 12:00:00 AM (last modified : 9/18/2003 11:18:28 AM)
Rate this article!
Comments