Forum Moderators: open

Message Too Old, No Replies

sending email using CDONTS - error

         

dupati1

6:05 pm on Nov 4, 2003 (gmt 0)

10+ Year Member



Hi all,

I am trying to send mail using CDONTS and tried a small sample code but i am getting the following error.

*****
Error Type:
Microsoft VBScript runtime (0x800A0046)
Permission denied
************

I have checked the mailroot folder under /Inetpub and everyone has all permissions. I dont know what else is the reason for this error message.

The below is my code:

sendmail.asp
**************
<%
response.buffer = true
message = "The following data was submitted:"
message = message & vbcrlf & vbcrlf
for each item in request.form
message = message & item & ": " & request.form(item) & vbcrlf
next
set mailer = server.createobject("CDONTS.NewMail")
mailer.subject = "Message from website"
mailer.from = "xyz@domain.com"
mailer.to = "xyz@domain.com" '<---Put your email address here
mailer.body = message
mailer.send
set mail = nothing
response.write "Email has been sent"
%>
**************

My other question is how can i send email to multiple recipients.

Any Suggestions.

Thanks

VJ

[edited by: Xoc at 7:57 pm (utc) on Nov. 4, 2003]
[edit reason] generic domains [/edit]

mattglet

7:55 pm on Nov 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



here's a little CDONTS documentation [support.microsoft.com] for you.

-Matt

dupati1

6:16 pm on Nov 5, 2003 (gmt 0)

10+ Year Member



I made it working using CDOSYS.

Thanks
VJ