Persists AspEmail component is an active server component for sending
e-mail messages using an external SMTP server in an ASP or ASP.NET
application (through a wrapper object).
AspEmail 5.0 supports multiple recipients, multiple file attachments,
HTML format, embedded images and sounds, non-US ASCII character sets and
secure mail.
More information:
User manual:
http://www.aspemail.com/manual_01.html
Main Web site:
http://www.aspemail.com
Persits ASPEmail sample code
<html> |
<head> |
</head> |
<body> |
<% |
|
Set Mailer = Server.CreateObject("Persits.MailSender") |
|
Mailer.Host = "mail.yourdomain.com" |
Mailer.Username = "[email protected]" |
Mailer.Password = "password" |
Mailer.FromName = "[email protected]" |
Mailer.From= "[email protected]" |
Mailer.AddAddress "[email protected]" |
Mailer.Subject = "This is a sample email sent from Persits ASPEMail" |
Mailer.Body = "Congratulation" & VbCrLf & "If you receive this is, your mail component works" |
|
' catch errors |
On Error Resume Next |
|
Mailer.Send |
|
If Err <> 0 Then ' error occurred |
Response.Write "Mail send failure. Error was " & Err.Description |
else |
Response.Write "Mail sent..." |
End If |
|
%> |
</body> |
</html> |
Article ID: 185, Created: August 6, 2012 at 11:44 PM, Modified: August 6, 2012 at 11:44 PM