Home   Help Login Register  
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

Search
WooThemes - Quality Themes, Great Support
Pages: [1]   Go Down
Print
Topic: CDONTS Sample script - ASP Sendmail script  (Read 1059 times)
« on: November 29, 2008, 10:17:40 PM »
Kailash Offline
Administrator
Newbie

View Profile WWW
*****

iTrader: 50
Posts: 274



Send mail using CDNOTS ASP component for WIndows base Server. Below is sample code to send an email using CDONTS:

Code:
<%
  Set objMail = Server.CreateObject("CDONTS.NewMail")

  objMail.To = “Name <email@domain.com>”
  objMail.From = “Name<email@domain.com>”
  objMail.Subject = “CDONTS Sample Script”

  BodyText = “This is a test email.” & vbCRLF
  BodyText = BodyText & “It was sent using CDONTS”  & vbCRLF
  BodyText = BodyText & vbCRLF

  objMail.Body = BodyText
  objMail.AttachFile “c:\attachfile.txt”  // For Attachment

  objMail.Send
%>

Kailash
Logged

Pages: [1]   Go Up
Print
Jump to:  

Untitled Document
(c) 2010 HELM, WHM, cPanel, ASP, .Net development, PHP, MySQL, MSSQL Server, SEO support forum
Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC | Forum style designed by PixelSlot
Web Hosting - Sitemap - XML Sitemap