ASP Mail Component is ActiveX component designed to allow e-mail sending from Active Server Pages (ASP) or any other software capable of using ActiveX components. With this component installed you can send simple text E-mail message as well as HTML e-mail with attachments and multiple recipients. Other useful features are also supported.
OS:
Web Server:
After receiving ASP Mail Component distribution package:
Object allowing E-mail sending.
VBasic:
Set Mailer = Server.CreateObject("SoftComplex.Email")
JScript:
var Mailer = Server.CreateObject("SoftComplex.Email");
string ContentTransferEncoding
string UseTransportLevelSecurity
void AddAttachment(string FilePath)
void AddAttachmentEx(string FilePathOrContent, string FileName, string ContentType, string ContentTransferEncoding, string ContentDisposition, string Charset, string ContentLocation, string ContentDescription)
void AddBcc(string Name, string Email)
void AddCc(string Name, string Email)
void AddHeader(string Name, string Value)
void AddRecipient(string Name, string Email)
void AddXHeader(string Name, string Value)
string EmailResolve(string DNSServerAddress, string Email)
string GetMessage(int OnlyHeaders)
string MXResolve(string DNSServerAddress, string DomainName)
int QuickSend(string Host, string From, string ReplyTo, string To, string Subject, string Message)
int QuickSendEx(string Host, string Username, string Password, string From, string ReplyTo, string To, string Subject, string Message)
int QuickSendHtml(string Host, string From, string ReplyTo, string To, string Subject, string MessageHtml)
int QuickSendHtmlEx(string Host, string Username, string Password, string From, string ReplyTo, string To, string Subject, string MessageHtml)
void SaveMessage(string FileName, int OnlyHeaders)
set mailer = Server.CreateObject("Softcomplex.Email") mailer.Host = "mail.com" mailer.From = """John Smith"" <[email protected]>" mailer.ReplyTo = """John Smith"" <[email protected]>" mailer.Recipients = "[email protected]" mailer.Username = "[email protected]" mailer.Password = "pass" mailer.Subject = "Message Subject" mailer.Body = "Message Body" res = mailer.Send if res = 0 then Response.Write "<p> Result: Sent </p><p>Log:</p><pre>" & mailer.Log & "</pre>" else Response.Write "<p> Result: Failed (" & res & ") </p><p>Reason: " & mailer.Response & "</p><p>Log:</p><pre>" & mailer.Log & "</pre>" end if set mailer = nothing
set mailer = Server.CreateObject("Softcomplex.Email") mailer.Host = "mail.com" mailer.From = """John Smith"" <[email protected]>" mailer.ReplyTo = """John Smith"" <[email protected]>" mailer.Recipients = "[email protected]" mailer.Username = "[email protected]" mailer.Password = "pass" mailer.Subject = "Message Subject" mailer.BodyHtml = "<html><body><b>Site URL</b>: <a href=""http://softcomplex.com"">softcomplex.com</a></body></html>" res = mailer.Send if res = 0 then Response.Write "<p> Result: Sent </p><p>Log:</p><pre>" & mailer.Log & "</pre>" else Response.Write "<p> Result: Failed (" & res & ") </p><p>Reason: " & mailer.Response & "</p><p>Log:</p><pre>" & mailer.Log & "</pre>" end if set mailer = nothing
set mailer = Server.CreateObject("Softcomplex.Email") mailer.Host = "mail.com" mailer.From = """Jim Smith"" <[email protected]>" mailer.ReplyTo = """Jim Smith"" <[email protected]>" mailer.Recipients = """John Smith"" <[email protected]>, [email protected], rita <[email protected]>" mailer.Cc = """John Smith"" <[email protected]>, [email protected], rita <[email protected]>" mailer.Bcc = """John Smith"" <[email protected]>, [email protected], rita <[email protected]>" mailer.Username = "[email protected]" mailer.Password = "pass" mailer.Subject = "Message Subject" mailer.Body = "Message Body" res = mailer.Send if res = 0 then Response.Write "<p> Result: Sent </p><p>Log:</p><pre>" & mailer.Log & "</pre>" else Response.Write "<p> Result: Failed (" & res & ") </p><p>Reason: " & mailer.Response & "</p><p>Log:</p><pre>" & mailer.Log & "</pre>" end if set mailer = nothing
set mailer = Server.CreateObject("Softcomplex.Email") mailer.Host = "mail.com" mailer.From = """John Smith"" <[email protected]>" mailer.ReplyTo = """John Smith"" <[email protected]>" mailer.Recipients = "[email protected]" mailer.Username = "[email protected]" mailer.Password = "pass" mailer.Subject = "Message Subject" mailer.Body = "Message Body" mailer.AddAttachment "C:\photo.jpg" res = mailer.Send if res = 0 then Response.Write "<p> Result: Sent </p><p>Log:</p><pre>" & mailer.Log & "</pre>" else Response.Write "<p> Result: Failed (" & res & ") </p><p>Reason: " & mailer.Response & "</p><p>Log:</p><pre>" & mailer.Log & "</pre>" end if set mailer = nothing
set mailer = Server.CreateObject("Softcomplex.Email") mailer.Host = "mail.com" mailer.From = """John Smith"" <[email protected]>" mailer.ReplyTo = """John Smith"" <[email protected]>" mailer.Recipients = "[email protected]" mailer.Username = "[email protected]" mailer.Password = "pass" mailer.Subject = "Message Subject" mailer.Body = "Message Body" mailer.AddAttachmentEx "<html><body><font color=""red"">Some message part 1</font></body></html>", "", "text/html", "quoted-printable", "inline", "us-ascii", "", "" mailer.AddAttachmentEx "<html><body><font color=""green"">Some message part 2</font></body></html>", "", "text/html", "quoted-printable", "inline", "us-ascii", "", "" mailer.AddAttachmentEx "Some message part 3", "", "text/plain", "7bit", "inline", "us-ascii", "", "" mailer.AddAttachmentEx "C:\photo.jpg", "", "image/jpeg", "", "", "", "", "" res = mailer.Send if res = 0 then Response.Write "<p> Result: Sent </p><p>Log:</p><pre>" & mailer.Log & "</pre>" else Response.Write "<p> Result: Failed (" & res & ") </p><p>Reason: " & mailer.Response & "</p><p>Log:</p><pre>" & mailer.Log & "</pre>" end if set mailer = nothing
set mailer = Server.CreateObject("Softcomplex.Email") mailer.From = """John Smith"" <[email protected]>" mailer.ReplyTo = """John Smith"" <[email protected]>" mailer.Recipients = "[email protected]" mailer.Subject = "Message Subject" mailer.Body = "Message Body" mailer.AddAttachmentEx "<html><body><font color=""red"">Some message part 1</font></body></html>", "", "text/html", "quoted-printable", "inline", "us-ascii", "", "" mailer.AddAttachmentEx "<html><body><font color=""green"">Some message part 2</font></body></html>", "", "text/html", "quoted-printable", "inline", "us-ascii", "", "" mailer.AddAttachmentEx "Some message part 3", "", "text/plain", "7bit", "inline", "us-ascii", "", "" Response.Write "<p>Message:</p><pre>" & mailer.GetMessage(0) & "</pre>" set mailer = nothing
set mailer = Server.CreateObject("Softcomplex.Email") mailer.From = """John Smith"" <[email protected]>" mailer.ReplyTo = """John Smith"" <[email protected]>" mailer.Recipients = "[email protected]" mailer.AddAttachmentEx "<html><body><font color=""red"">Some message part 1</font></body></html>", "", "text/html", "quoted-printable", "inline", "us-ascii", "", "" mailer.AddAttachmentEx "<html><body><font color=""green"">Some message part 2</font></body></html>", "", "text/html", "quoted-printable", "inline", "us-ascii", "", "" mailer.AddAttachmentEx "Some message part 3", "", "text/plain", "7bit", "inline", "us-ascii", "", "" path = "C:\message.msg" mailer.SaveMessage path, 0 Response.Write "<p>Message Saved to " & path & "</p>" set mailer = nothing
set mailer = Server.CreateObject("Softcomplex.Email") res = mailer.QuickSendEx("mail.com", "[email protected]", "password", "[email protected]", "[email protected]", "[email protected]", "Message Subject", "Message Body") if res = 0 then Response.Write "<p> Result: Sent </p><p>Log:</p><pre>" & mailer.Log & "</pre>" else Response.Write "<p> Result: Failed (" & res & ") </p><p>Reason: " & mailer.Response & "</p><p>Log:</p><pre>" & mailer.Log & "</pre>" end if set mailer = nothing
set mailer = Server.CreateObject("Softcomplex.Email") res = mailer.QuickSendEx("mail.com", "[email protected]", "password", "[email protected]", "[email protected]", "[email protected]", _ "Message Subject", "<html><body><b>Site URL</b>: <a href=""http://softcomplex.com"">softcomplex.com</a></body></html>") if res = 0 then Response.Write "<p> Result: Sent </p><p>Log:</p><pre>" & mailer.Log & "</pre>" else Response.Write "<p> Result: Failed (" & res & ") </p><p>Reason: " & mailer.Response & "</p><p>Log:</p><pre>" & mailer.Log & "</pre>" end if set mailer = nothing
set mailer = Server.CreateObject("Softcomplex.Email") mailer.Host = mailer.EmailResolve("192.168.1.1", "[email protected]") mailer.Host = "mail.com" mailer.From = """John Smith"" <[email protected]>" mailer.ReplyTo = """John Smith"" <[email protected]>" mailer.Recipients = "[email protected]" mailer.Subject = "Message Subject" mailer.Body = "Message Body" res = mailer.Send if res = 0 then Response.Write "<p> Result: Sent (SMTP Host: " & mailer.Host & ")</p><p>Log:</p><pre>" & mailer.Log & "</pre>" else Response.Write "<p> Result: Failed (" & res & ") </p><p>Reason: " & mailer.Response & "</p><p>Log:</p><pre>" & mailer.Log & "</pre>" end if set mailer = nothing
One single server ASP Mail Component license gives the right to use one installation of the component. Component can be used by unlimited number of sites/domains hosted on the server.
One single organization ASP Mail Component license gives the right to use unlimited installations of the component within single organization network.
Developer license gives the right to include unlimited number of ASP Mail Component instances in the products of license owner. Such kind of license is obtained automatically by those who has 5 or more single licenses of any type above.
After license order customers are offered special (significantly discounted) prices for other products of SoftComplex.
As owner of the ASP Mail Component license You are allowed to use the component in any possible way in Internet (public), Intranet (corporate), however You are strictly NOT allowed (unless specifically authorized by SoftComplex.com) to:
You are entitled to free product upgrades and technical support for at least one year from the date of purchase. Technical support includes answers to script related questions via via e-mail and/or Internet instant messaging services.
Should you violate these Terms and Conditions or any other rights of SoftComplex Inc., SoftComplex Inc. reserves the right to pursue any and all legal and equitable remedies against you without limitation.