Persist's aspmail

Article Details
URL: http://www.mochasupport.com/kayako/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=544
Article ID: 544
Created On: 28 Mar 2010 11:49 AM

Answer

Persist's aspmail sample:

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

ObjSendMail.Host = "mail.somesite.com"
ObjSendMail.From = "[email protected]"
ObjSendMail.FromName = "someone"
ObjSendMail.AddAddress "[email protected]"
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 .