p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Classic ASP Basics (http://p2p.wrox.com/forumdisplay.php?f=61)
-   -   Need help related CDO.Message (http://p2p.wrox.com/showthread.php?t=23085)

shankhan December 26th, 2004 02:51 PM

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


nashnash December 27th, 2004 10:21 AM

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


nashnash December 27th, 2004 10:22 AM

plz use this

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


shankhan December 28th, 2004 01:40 PM

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


mat41 December 29th, 2004 01:10 AM

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

shankhan December 29th, 2004 04:29 PM

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


shankhan December 29th, 2004 04:44 PM

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



mat41 December 30th, 2004 09:22 PM

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

OldCoder January 2nd, 2005 12:37 AM

Hello,

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

Thanks


mat41 January 2nd, 2005 07:08 PM

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


All times are GMT -4. The time now is 08:49 AM.

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