Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
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
  #1 (permalink)  
Old December 26th, 2004, 02:51 PM
Authorized User
 
Join Date: Dec 2004
Location: Multan, Punjab, Pakistan.
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to shankhan Send a message via Yahoo to shankhan
Default Need help related CDO.Message

i want to know that i'm using the following code to send e-mail from my local computer as i have installed IIS and using windows XP. i tried to send many mails but 1 or 2 has sent while other r in queue folder and could not be sent. plz see the code below

<%
dim subject
dim fro
dim tot
dim myMail
dim bod

bod = request.form("body")
subject = request.form("sub")
fro = request.form("from")
tot = request.form("to")

Set myMail=CreateObject("CDO.Message")
myMail.Subject= subject
myMail.From= fro
myMail.To= tot
myMail.TextBody = bod
myMail.Send
response.write "Ok Mail has sent"
%>
nothing wrong with the code because 2 mails have been reached to their destination using this code.
thanx

  #2 (permalink)  
Old December 27th, 2004, 10:21 AM
Authorized User
 
Join Date: Sep 2004
Location: , , .
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to nashnash
Default

Set myMail=Server.CreateObject("CDONTS.NewMail")

  #3 (permalink)  
Old December 27th, 2004, 10:22 AM
Authorized User
 
Join Date: Sep 2004
Location: , , .
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to nashnash
Default

plz use this

Set myMail=Server.CreateObject("CDONTS.NewMail")

  #4 (permalink)  
Old December 28th, 2004, 01:40 PM
Authorized User
 
Join Date: Dec 2004
Location: Multan, Punjab, Pakistan.
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to shankhan Send a message via Yahoo to shankhan
Default

I have made the changes as suggested by nashnash
<%
dim subject
dim fro
dim tot
dim myMail
dim bod

bod = request.form("body")
subject = request.form("sub")
fro = request.form("from")
tot = request.form("to")

Set myMail = Server.CreateObject("CDONTS.NewMail")
myMail.Subject= subject
myMail.From= fro
myMail.To= tot
myMail.TextBody = bod
myMail.Send
response.write "Ok Mail has sent"
%>
it is giving error which is following
Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid class string
/mysite/sendpage.asp, line 13

Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)
plz check it

  #5 (permalink)  
Old December 29th, 2004, 01:10 AM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

shankhan
Which line is line 13?
I assume its this one? Set myMail = Server.CreateObject("CDONTS.NewMail")

The code looks ok, have you sent mail using CDONTS on this machine before? If not do a file search for cdonts.dll



Wind is your friend
Matt
  #6 (permalink)  
Old December 29th, 2004, 04:29 PM
Authorized User
 
Join Date: Dec 2004
Location: Multan, Punjab, Pakistan.
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to shankhan Send a message via Yahoo to shankhan
Default

yes u r right it is line 13
Set MyMail = Server.CreateObject("CDONTS.NewMail")
and the answer of second question is this, i never cent a mail using cdonts while i have sent mails only using "CDO". i searched cdonts.dll and i have found it in c:\winnt\system32 folder as i'm using dual os win2000 pro on c: and WinXP on d: what should i do now. should i copy this file in xp\system32 folder and register it?

thanx
shankhan

  #7 (permalink)  
Old December 29th, 2004, 04:44 PM
Authorized User
 
Join Date: Dec 2004
Location: Multan, Punjab, Pakistan.
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to shankhan Send a message via Yahoo to shankhan
Default

hi friend
i have copied cdonts.dll in winxp\system32 folder and then register it and it is working fine but the problem is still there. sometimes sents mail while most of mails stay in queue folder and not been sent.
plz help me in this matter.
thanx


  #8 (permalink)  
Old December 30th, 2004, 09:22 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

mmmmm, I am not sure on this one. In the pro area there is a mail post going at the moment being addressed by Imar (Mr ASP) go to his site and check this out : http://Imar.Spaanjaars.Com/QuickDocId.aspx?QUICKDOC=249

I'm about to go on my NY rampage sorry I couldnt help more

Wind is your friend
Matt
  #9 (permalink)  
Old January 2nd, 2005, 12:37 AM
Authorized User
 
Join Date: Oct 2004
Location: , , .
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello,

When sending email using ASP, should the addresses be secured from email harvesters by using MailToProtector software?

Thanks

  #10 (permalink)  
Old January 2nd, 2005, 07:08 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

What is MailToProtector software?

I believe: If its not encrypted, any average sniffer can intercept it in one way or another.

Wind is your friend
Matt


Similar Threads
Thread Thread Starter Forum Replies Last Post
Source: CDO.Message.1 please help me:) ilknur SQL Server 2000 1 July 23rd, 2006 12:52 PM
CDO related help shankhan Classic ASP Basics 0 February 3rd, 2005 12:41 PM





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