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 Can I User Gmail as my webmail client and/or SPAM filter?

Gmail has a very popular webmail interface -- and a well-respected SPAM filter.  You can put...

SPAM Blocking FAQs

  What incoming emails do you block?We block emails from known SPAM sources and open relay...

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.

Is there a limit to the number of email I can send?

Yes,  There is a limit on the number of mail you can send from our server using sendmail....

How does the autoresponder work?

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