Persits asp email script

A blast from the past!

Persits ASP Email is a popular email component for ASP (Active Server Pages) that allows you to send emails from your ASP applications. Here is an example script that demonstrates how to use it:

<%
' Include the Persits ASP Email component
Dim oEmail
Set oEmail = Server.CreateObject("Persits.MailWriter")

' Set the email properties
oEmail.From = "[email protected]"
oEmail.To = "[email protected]"
oEmail.Subject = "Test Email"
oEmail.Body = "This is a test email sent using Persits ASP Email."

' Add attachments (optional)
oEmail.AddAttachment "C:\Path\To\Attachment.txt"

' Send the email
oEmail.Send

' Clean up
Set oEmail = Nothing
%>

This script creates an instance of the Persits.MailWriter object, sets the email properties (from, to, subject, and body), and sends the email using the Send method. You can also add attachments to the email using the AddAttachment method.

Note that you need to have the Persits ASP Email component installed on your server and configured properly for this script to work. Additionally, you should replace the placeholders ([email protected] and [email protected]) with your actual email addresses.

Also, keep in mind that this is an old technology, and you may want to consider using more modern and secure ways to send emails, such as using a third-party email service or a more recent email component.