473,394 Members | 1,740 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

CDONTS mail script not working?

127 100+
i am new to asp. please help.

Expand|Select|Wrap|Line Numbers
  1. <%
  2. Dim objCDOMail  
  3. Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
  4. objCDOMail.From = "lark.imp@gmail.com"
  5. objCDOMail.To = "impin@in.com"
  6. objCDOMail.Subject = "Enquiry sent from my web site"
  7. objCDOMail.Body = "<h2>Hello</h2><br><b>This is my e-mail in HTML format</b>"
  8. objCDOMail.Send
  9. Set objCDOMail = Nothing
  10. %>
  11.  
when run this code i get an error.
Error
Expand|Select|Wrap|Line Numbers
  1. Microsoft VBScript runtime  error '800a0046'
  2.  
  3. Permission denied
  4.  
  5. /mail.asp, line 8 
  6.  
what will be the problem?
Sep 6 '10 #1
1 1600
jhardman
3,406 Expert 2GB
looks like you don't have permission to send the email.

Jared
Sep 20 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: trend5 | last post by:
I have a simple mail script designed to use from command line. I want create a simple web interface to use this script as remotely hosted webscript, from webhost. The script contains two files-...
4
by: Steve | last post by:
Hi all, I'm using IIS 5 on a win xp machine for all my testing, before I upload to our live server. I've installed the SMTP service and it's running with no errors. Dose anyone know anything...
8
by: Tom Petersen | last post by:
Hello The code itself is working, this is more of a cosmetic thing for me... lets say objRS("memail") = tom.petersen@aol.com strEmail = objRS("memail") & ";bill.clinton@aol.com" Mail.CC=...
6
by: Chuck W. | last post by:
So I have a very simple mail script just to send a quick 'n dirty notification of a form posting -- it goes like this: $message = $_POST . "\", first_name = \"". $_POST . "\",last_name = \""....
0
by: Lakshmanakumar | last post by:
hi all, I am using an Object CDONTS for sending mail. with this i have an problem in sending image.All other text information had send but the image can't send. how can i overcome this problem...
4
by: shror | last post by:
dear all, i have started learning php 2 weeks ago and i have wrote my first script for mail sender and the script takes all my data and move to the thanks page but the problem is that the mails...
13
chunk1978
by: chunk1978 | last post by:
hi there... i would like to know if anyone could look at my mail script and tell me if there is anything clearly wrong, or missing... <?php $to = $_POST; $subject = 'test'; $random_hash =...
0
by: Joe Demeny | last post by:
I am looking for a python web form to mail script for a public web site - could you recommend one? -- Joe Demeny
3
by: diptisk | last post by:
CDONTS.newmail component is not working on my server. Previously it was working on other server. I have sent the content of form as email. CDO.Message is also not working. what could be the...
7
by: Jason1983 | last post by:
Hello sir, When iam trying to send emails to my user accounts which are gmail id's using my application it is giving me this error. Here is the error... Server object error 'ASP 0177 : 800401f3'...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.