Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Using CDONTS
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Using CDONTS

 Post Reply Post Reply
Author
Kalmari View Drop Down
Newbie
Newbie


Joined: 25 January 2004
Location: Finland
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kalmari Quote  Post ReplyReply Direct Link To This Post Topic: Using CDONTS
    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 = myE-mailHere@myDomain.com

objCDOMail.To = 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?

Back to Top
deepikanarang View Drop Down
Newbie
Newbie


Joined: 07 July 2004
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote deepikanarang Quote  Post ReplyReply Direct Link To This Post 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 !!!!

 

 

 

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
deepikanarang View Drop Down
Newbie
Newbie


Joined: 07 July 2004
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote deepikanarang Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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

If you are using XP Pro you may need to disable simple file sharing first from the folder options in the control panel.
Back to Top
deepikanarang View Drop Down
Newbie
Newbie


Joined: 07 July 2004
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote deepikanarang Quote  Post ReplyReply Direct Link To This Post 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 ....

 

Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.