Sending mail via Persits.MailSender

Here's a complex example of sending an email with SMTP authentication and attachments.

<%

Set Mail = Server.CreateObject("Persits.MailSender")
Mail.Host = "mail.yourdomain.com"
Mail.Username = "emailaddress@yourdomain.com"
Mail.Password = "your password"
Mail.From = "webmaster@yourdomain.com"
Mail.FromName = "Your Name"
Mail.AddAddress "recipient@somedomain.com"
Mail.AddCC "you@yourdomain.com"
Mail.Subject = "Subject goes here"
Mail.Body = "Message body goes here"
On Error Resume Next
Mail.SendToQueue
Set Mail = Nothing

%>

Was this answer helpful?

 Print this Article

Also Read

What is Catch All account?

Setting the email account to be a catch all account will mean that not only will it collect email...

What is Email Forwarding?

Email forwarding (also known as Email Alias) allows you to create a unique email account which...

How to set up email with Outlook 2002?

Follow the steps below to set up Outlook 2002 to retrieve email from our mail server. From the...

Do log files and email count toward my disk space allotment?

Yes, your log files and email messages count toward your total disk space.

How does the autoresponder work?

When you receive an incoming email to the autoresponder email address, an automated message that...