Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

CDONTS mail problem..

Posted 19 Jul 2002 23:23:26
1
has voted
19 Jul 2002 23:23:26 Gretarsson Ingi Orn posted:
I´m trying to do a simple test page sending out CDONTS mail to see if all settings are working correctly and it doesn´t seem to be working. what I did was create the pagem save it and put it in to the remote sites folder (on my computer (Inetpup)) and then I press F12 and open the page. That works fine and I get no error messages except I don´t recieve the mail it self in my inbox..Does any1 know what I might be doing wrong??
Here is my short and simple code:

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<%
Dim email

Set email= Server.CreateObject("CDONTS.Newmail"

Email.From = " "

Email.to = " "

Email.Subject = "Sending Test Email"

Email.Body = "An email from your server"

Email.Importance = 1

Email.send

Set Email = Nothing

%>

</body>
</html>


IIS//Ultradev 4//WinXP_Pro/ASP:VB/JS

Replies

Replied 20 Jul 2002 07:10:52
20 Jul 2002 07:10:52 Dave Clarke replied:
Don't know much about this but I notice that you haven't specified which server to use to send the mail, i don't know if this is necessary in CDONTS, but it is in Jmail, so i'm presuming it could be.
Also, if you are using IIS have you installed the smtp component?? sounds obvious but sometmes we overlook the obvious.
Replied 20 Jul 2002 08:53:39
20 Jul 2002 08:53:39 aegis kleais replied:
For the heck of it:

keep casing the same (you have Email and email)

Remove DIM email

Don't use the term EMAIL in a CDONTS object. Call it myMail (myMail.From, myMail.To)

Isn't it Obj.Priority and not Importance?

Try placing the code BEFORE the HTML

lemme know what happens.

Aegis Kleais
New Media Web Developer
(DWMX : IIS5.1 : SQL2K : WXP : ASP[VB/JS])
Replied 21 Jul 2002 00:07:47
21 Jul 2002 00:07:47 Gretarsson Ingi Orn replied:
ok.. I´m gonna try it.. I´ll let you know what happens.. Yes I've got SMPT installed. And I Know CDONTS is installed got the file from the web and installed it with re sometihing and it was successfully installed.
I also thought it was Priority but I think this may be a new version of CDONTS.dll cause it kept giving me an error or the priority statement. So I looked at the library on Microsoft web site and it there it is importance so I used that and now i don´t get any errors while running the page but nothing happens.. I mean I don´t recieve the mail from the page.

IIS//Ultradev 4//WinXP_Pro/ASP:VB/JS
Replied 21 Jul 2002 18:12:30
21 Jul 2002 18:12:30 Gretarsson Ingi Orn replied:
Hi guy´s I´m really sorry but this was my mistake!! <img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle> I guess I was too quick to shout out a problem. It turns out that the mail actually was sent the first time.. It just arrived to my mail box to slowly.. I didn´t change a thing and the mail is in! <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

IIS//Ultradev 4//WinXP_Pro/ASP:VB/JS
Replied 21 Jul 2002 22:31:14
21 Jul 2002 22:31:14 Dave Clarke replied:
The delay is probably because you are using your dial-up to your normal ISP from IIS, same happens on mine, seems to take a while for IIS to send it.
Replied 21 Jul 2002 22:38:57
21 Jul 2002 22:38:57 Gretarsson Ingi Orn replied:
Only problem now is that the mail arrives too slowly at my hotmail inbox. aprox, 24hrs to get there.. does any1 know a solution to this problem? Might it be some settings in SMTP under IIS?? I´ve tried both Importance = 1 and 2 and it doesn´t seem to be any differance there..

IIS//Ultradev 4//WinXP_Pro/ASP:VB/JS
Replied 21 Jul 2002 22:41:46
21 Jul 2002 22:41:46 Gretarsson Ingi Orn replied:
hmm. I´m not sure what u mean.. I´ve got an ADSL connection to my ISP but nevertheless I dial them up of course.. do you think that it stores the mail package until I dial up again and sends it then??

IIS//Ultradev 4//WinXP_Pro/ASP:VB/JS
Replied 21 Jul 2002 22:46:21
21 Jul 2002 22:46:21 Dave Clarke replied:
I'm not sure, it just struck me that this might be the reason for the delay, as your site is not on a "real" server if you know what i mean, maybe you have to do a send/recieve in your email program for it to send, or maybe it has a time function and only sends mail once a day, i really have no idea, all guesswork <img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>
Replied 21 Jul 2002 23:12:38
21 Jul 2002 23:12:38 Gretarsson Ingi Orn replied:
Yeh.. I know what you mean.. Pretty strange though..

IIS//Ultradev 4//WinXP_Pro/ASP:VB/JS
Replied 22 Jul 2002 20:01:36
22 Jul 2002 20:01:36 Gretarsson Ingi Orn replied:
Just wanted to let every1 know.. that as strange as it is the mail is delayd until I open up outlook and do send/Recieve.. then it shots off instantly! <img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>

IIS//Ultradev 4//WinXP_Pro/ASP:VB/JS
Replied 22 Jul 2002 20:08:05
22 Jul 2002 20:08:05 Dave Clarke replied:
thought so, it's because you are using your normal ISP as a mail server, still what they dont know wont hurt them lol<img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>

Reply to this topic