|
-
Sep 18th, 2001, 11:39 PM
#1
Thread Starter
Member
CDONTS.NewMail permission problem
I want to test the function of send email through asp. I've installed the SMTP Service and I'm using win2k Server. My asp page is like this:
Code:
<%@ language=VBScript %>
<%
dim mailObj
set mailObj = Server.CreateObject("CDONTS.NewMail")
mailObj.BodyFormat = 0
mailObj.MailFormat = 0
mailObj.From = "[email protected]"
mailObj.To = "[email protected]"
mailObj.Subject = "aspmail test!!"
mailObj.Body = " from Andy Cheung, Is this test alright???"
response.write "asdlfjaspkljdfas;ldjf" 'for testing only
mailObj.Send
set mailObj = nothing
%>
but the error message is:
asdlfjaspkljdfas;ldjf
Microsoft VBScript Execution Error '800a0046'
No Permission
/building/mailtest.asp, Line14
How can I set the permission of the SMTP Service? Thanks!
Please Visit My WebCam!!
http://www.hmcheung.com
-
Sep 19th, 2001, 01:23 AM
#2
Hyperactive Member
If i remember right, I had to set the SMART HOST property in the IIS property pages Tabs. I am not sure which tab, though. Do explore on this option. Will get bac to u once i remember the full details.
- Jemima
-
Sep 19th, 2001, 01:26 AM
#3
Hyperactive Member
Got it!
Go to Microsoft Management Console and select the properties of Default SMTP site in that FIRST tab give your server IP address and go to DELIVERY Tab there you have to give the Exchange server IP Address in SMART HOST.
Hope this would solve your problem.
-Jemima.
-
Sep 19th, 2001, 02:20 AM
#4
Thread Starter
Member
How about no Exchange Server?
Oh how about if I don't have an Exchange Server on my network? Is it a must that I have one before I can use CDONTS? Thanks...
Please Visit My WebCam!!
http://www.hmcheung.com
-
Sep 19th, 2001, 04:28 AM
#5
Hyperactive Member
Really sorry. I am not aware of the case u r suggesting. Anyhow check with the SERVER IP of your machine in the FIRST tab and also the Fully Qualified Domain Name in the DELIVERY Tab. Maybe thr is no need for a SMART HOST in this case. Still not sure. MAybe someone else can throw more light here...
- Jemima.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|