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

500 Internal Server Error

In Windows hosting, sometimes you may get the error message "500 Internal Server Error" for...

Do you allow custom COM components?

No we do not offer installation of custom COM components. Custom COM components...

Can you provide me with some OleDB connection string examples?

MS Access (Jet) \"PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=[Path to database];User...