Knowledgebase: Downloads
ASPEmail sample code
Posted by Premium Reseller on 06 February 2013 09:21 AM
<%
Set Mail = Server.CreateObject("Persits.MailSender")

Mail.Host = "mail.yourdomain.com" ' Specify a valid SMTP server
Mail.From = "info@demowebsite.com" ' Specify sender's address
Mail.FromName = "PremiumReseller.com" ' Specify sender's name

Mail.Username = "Sender Email User"
Mail.Password = "Sender Email Password"

'Recipient email
Mail.AddAddress "networkmonitoring@gmail.com", "Network Monitoring"
Mail.AddReplyTo "sales@premiumreseller.com"

Mail.Subject = "Sample Send Mail"
Mail.Body = "Hello. This is a test email. Thank you."

On Error Resume Next
Mail.Send
If Err <> 0 Then
Response.Write "Error encountered: " & Err.Description
End If
%>



Attachments 
 
 aspemail.asp (0.66 KB)
(1 vote(s))
This article was helpful
This article was not helpful