 |
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
|
|
|

December 26th, 2004, 02:51 PM
|
Authorized User
|
|
Join Date: Dec 2004
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

December 27th, 2004, 10:21 AM
|
Authorized User
|
|
Join Date: Sep 2004
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Set myMail=Server.CreateObject("CDONTS.NewMail")
|

December 27th, 2004, 10:22 AM
|
Authorized User
|
|
Join Date: Sep 2004
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
plz use this
Set myMail=Server.CreateObject("CDONTS.NewMail")
|

December 28th, 2004, 01:40 PM
|
Authorized User
|
|
Join Date: Dec 2004
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

December 29th, 2004, 01:10 AM
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
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
|

December 29th, 2004, 04:29 PM
|
Authorized User
|
|
Join Date: Dec 2004
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

December 29th, 2004, 04:44 PM
|
Authorized User
|
|
Join Date: Dec 2004
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

December 30th, 2004, 09:22 PM
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
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
|

January 2nd, 2005, 12:37 AM
|
Authorized User
|
|
Join Date: Oct 2004
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hello,
When sending email using ASP, should the addresses be secured from email harvesters by using MailToProtector software?
Thanks
|

January 2nd, 2005, 07:08 PM
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
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
|
|
 |