Persist's aspmail

Persist's aspmail sample:

<%
Dim ObjSendMail
Set ObjSendMail = Server.CreateObject("Persits.MailSender")

ObjSendMail.Host = "mail.somesite.com"
ObjSendMail.From = "someone@somesite.com"
ObjSendMail.FromName = "someone"
ObjSendMail.AddAddress "somebodyelse@somesite.com"
ObjSendMail.Subject = "your subject"
ObjSendMail.Body = "your email body"

Our email server requires SMTP Authentication. Replace the username and password below.
ObjSendMail.Username = "SMTPUsername"
ObjSendMail.Password = "SMTPPassword"

On Error Resume Next

ObjSendMail.Send
If Err <> 0 Then
Response.Write "Error encountered: " & Err.Description
End If

Set ObjSendMail = nothing
%>

Also please check user guide here .

Was this answer helpful?

 Print this Article

Also Read

How do I change the timestamp on my emails?

How do I change the timestamp on my emails? Each webmail client has a timezone setting, which is...

How do I set up Mail for Mac OS X?

<!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal...

How do I view e-mail headers in Mail for Mac OS X?

1. Open Mail. 2. From the Mail menu, select Preferences. 3. Click the Viewing icon. 4. Click...

What is the difference between using IMAP or POP for my mail?

<!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal...

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

Starting December 2006 the limit has been increased to 8MB for any attachments...