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

Can individual email users update their passwords?

Yes, individual email users can update their passwords within the webmail client. Log into...

General Alps HOST Mail Server Information

  AlpsHOST provides all customers with access to send and receive internet email using...

What is Catch All account?

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

How do I apply rules to my messages in Outlook?

Rules help to keep e-mail organized by automatically performing actions on messages as they...

Using Alps HOST Web Mail

  How to access the web mail interfaceThe URL to access the customer web based email...