Wrox Programmer Forums
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 12th, 2005, 04:12 AM
Authorized User
Join Date: Apr 2005
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default e-mail using cdont

hi all ,

i have to send the mail to all the employees of the company , e-mail address is stored in a table .

i m using cdont component to send the mail ,

what are the basic requirement of cdont

how to install cdont on server 2000 and is it necessary that smtp server shoud be installed or enabled on that server or it can be on other server .

actually , where i m developing this software , tech support said , the server on which i m working smtp on that server is not installed , it is available on another server , is it possible

i think u can understand , what i m trying to say ,

please explain the procedure and settings of all these thing .


Old April 12th, 2005, 07:09 PM
Friend of Wrox
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41

Same post different UN?


Wind is your friend
Old April 12th, 2005, 07:13 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post

You can search on google for CDO or CDOSYS if you do not want to have SMTP installed locally and use a remote one. Else look for CDONTS(which is not a premitive method, I don't see anyone using this now a days). CDO/CDOSYS should be much of help for you in this case.

Hope that helps.

- Vijay G
Strive for Perfection
Old April 13th, 2005, 03:42 PM
Authorized User
Join Date: Jul 2003
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts

well i just did this...

i have a connection string stored in a seperate file.
i have 2 fields in the database...emailAddress and firstName

here is my code...

Set Mailer = Server.CreateObject("CDONTS.NewMail")
Mailer.From= "<me@mycompany.com>"
strTemp = "" & rs("emailAddress") & ""
Mailer.To = strTemp
'Mailer.CC = "me@mycompany.com"
'Mailer.BCC= "me@mycompany.com"
Mailer.Subject = "Newsletter"

'Mailer.MailFormat = 0
Mailer.BodyFormat = 0

mailBody = "<!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 4.01 Transitional//EN"" ""http://www.w3.org/TR/html4/loose.dtd"">"

mailBody = mailBody & ""
mailBody = mailBody & ""

Mailer.Body = mailBody

set Mailer = nothing



    response.write "mailing complete."

    set conn = nothing


this loops through all the records in the database. i just put my newsletter content in the mailBody = mailBody & "" and then i bring up this page in the browser. when it is finished it prints "mailing complete". commented out code is either elements that aren't supported on my server or that i didn't use...

this should help...

Similar Threads
Thread Thread Starter Forum Replies Last Post
Send mail and attachments with PHP mail function Lofa Beginning PHP 1 June 2nd, 2008 03:24 PM
cdont and JMail Problems Barbwire Classic ASP Professional 0 February 20th, 2007 07:26 AM
CDONT sendmail problem haji_mb Classic ASP Components 5 April 16th, 2005 07:00 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.