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

How do I keep email from Alps HOST out of my Hotmail Junk folder?

Hotmail spam filters can filter out email sent from Alps HOSTif the security level is set high....

How to set up email with Outlook 2003?

  Follow the steps below to set up Outlook 2003 to retrieve email from our mail...

I received a bounced message for an email that I did not send. OR I received a complaint from someone saying I sent a virus, but I didn't send the email. What is going on?

Internet email messages can be forged. The email sender can set their “From:” header...

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...

Is there a limit to the size of the attachment that I can send with webmail?

No, there is not any limitation on mail attachment size.