Print Page | Close Window

Using CDONTS

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=9222
Printed Date: 31 March 2026 at 10:27am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Using CDONTS
Posted By: Kalmari
Subject: Using CDONTS
Date Posted: 25 January 2004 at 8:05am

Hello!

I've been trying to learn using CDONTS, but my computer doesn't, for reason or another, send the mails forward. But if I send a password recovery mail from WebWiz forums, it works. I've tried to use a tutorial code from WebWiz, but it doesn't either work. (here's the code)

Quote

<%
'Dimension variables
Dim objCDOMail      

Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
objCDOMail.From = mailto:myE-mailHere@myDomain.com - myE-mailHere@myDomain.com

objCDOMail.To = mailto:thereEmail@thereDomain.com - thereEmail@thereDomain.com
objCDOMail.Subject = "Enquiry sent from my web site"
objCDOMail.BodyFormat = 0
objCDOMail.MailFormat = 0
objCDOMail.Body = "<h2>Hello</h2><br><b>This is my e-mail in HTML format</b>"
objCDOMail.Importance = 1
objCDOMail.Send
Set objCDOMail = Nothing
%>

 

 

But I think that the code is quite faultless, because it's directly from WebWiz's tutorial, but still it doesn't work. Can anyone say why?




Replies:
Posted By: deepikanarang
Date Posted: 07 July 2004 at 4:33am

Hello,

I am using the same above mentioned code, I am also unable to send mails via web.

I am getting the following error -

Error Type:
Microsoft VBScript runtime (0x800A0046)
Permission denied
Line number mentioned is where objmail.Send is written.

Please help !!!!

 

 

 



Posted By: WebWiz-Bruce
Date Posted: 07 July 2004 at 5:42am
You need to give write permssions to everyone to the folder:-

C:\Inetpub\mailroot\Queue

This then allows emails to be saved in the SMTP servers queue


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: deepikanarang
Date Posted: 07 July 2004 at 5:52am

Thanks for a prompt reply !!!

I have given write rights on c:\inetpub\mailroot\queue

I have followed the following steps -

1. right click on c:\inetpub\mailroot\queue folder.

2. clicked on properties then clicked on 'web sharing' tab.

3. checked "share this folder" radio button & clicked on OK.

Is this the correct way ... as it is still not working ... giving me the same error.



Posted By: WebWiz-Bruce
Date Posted: 07 July 2004 at 7:26am
No, it's not web permssions you need to set.

Have a look at the following article to give you an idea of what to do:-

http://www.webwiz.net/asp/faq/server_permissions.asp - http://www.webwiz.net/asp/faq/server_permissions.asp

If you are using XP Pro you may need to disable simple file sharing first from the folder options in the control panel.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: deepikanarang
Date Posted: 08 July 2004 at 6:52am

Performed the step by step instruction given in the article but the problem remains the same ....

Please help ....

 



Posted By: dpyers
Date Posted: 08 July 2004 at 1:55pm

deepikanarang - Are you able to send password recovery email from the forum like Kalmari?

 



-------------

Lead me not into temptation... I know the short cut, follow me.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net