473,503 Members | 1,716 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CDONTS not working using other SMTP Server

M P
Need help! Whats wrong with my code? My plan is this, I have my IIS5.0 on
Server A and then I will use SMTP service of Server B. I already configured
IIS to use Server B as its SMTP Server but I got this error :

Microsoft VBScript runtime (0x800A0046)
Permission denied

Can you check my code:

<%
DIM sBody, sFrom, sSender, sSubject, sTo, x
sBody = "Test content body, will it work"
sFrom = "ma**@p.com"
sSender = "ma**@p.com"
sSubject = "Test"
sTo = "m@p.com"

DIM iMsg
Set iMsg = Server.CreateObject("CDONTS.NewMail")

With iMsg
.To = sTo
.From = sFrom
.Subject = sSubject
.Body = sBody
.Send
End With
%>
Jul 19 '05 #1
6 4130
Be sure that the IUSR account has permissions to write files to
\inetpub\mailroot\pickup.

Also see a couple other threads from earlier today with these subject lines:

Help! CDO.Send returns error '8004020f' -- why???

CDO.Send - does not appear to work sending to outside domains.

Also see the second paragraph here if your site is not on an NT 4 server.
http://www.aspfaq.com/show.asp?id=2026
Ray at home
"M P" <ma**@textguru.ph> wrote in message
news:O7**************@tk2msftngp13.phx.gbl...
Need help! Whats wrong with my code? My plan is this, I have my IIS5.0 on
Server A and then I will use SMTP service of Server B. I already configured IIS to use Server B as its SMTP Server but I got this error :

Microsoft VBScript runtime (0x800A0046)
Permission denied

Can you check my code:

<%
DIM sBody, sFrom, sSender, sSubject, sTo, x
sBody = "Test content body, will it work"
sFrom = "ma**@p.com"
sSender = "ma**@p.com"
sSubject = "Test"
sTo = "m@p.com"

DIM iMsg
Set iMsg = Server.CreateObject("CDONTS.NewMail")

With iMsg
.To = sTo
.From = sFrom
.Subject = sSubject
.Body = sBody
.Send
End With
%>

Jul 19 '05 #2
HI,
If you want to use smtp from another server you need to configure the
INTELLIGENT HOST to the matching
adrees in: properties of iis 5.0 smtp server/deliver/advanced
so there you will find the option INTELLIGENT HOST to put the address to
solve your deleverings.
bye

--

««««««««»»»»»»»»»»»»»»
Vlmar Brazão de Oliveira
Desenvolvimento Web
HI-TEC
"M P" <ma**@textguru.ph> escreveu na mensagem
news:O7**************@tk2msftngp13.phx.gbl...
Need help! Whats wrong with my code? My plan is this, I have my IIS5.0 on
Server A and then I will use SMTP service of Server B. I already configured IIS to use Server B as its SMTP Server but I got this error :

Microsoft VBScript runtime (0x800A0046)
Permission denied

Can you check my code:

<%
DIM sBody, sFrom, sSender, sSubject, sTo, x
sBody = "Test content body, will it work"
sFrom = "ma**@p.com"
sSender = "ma**@p.com"
sSubject = "Test"
sTo = "m@p.com"

DIM iMsg
Set iMsg = Server.CreateObject("CDONTS.NewMail")

With iMsg
.To = sTo
.From = sFrom
.Subject = sSubject
.Body = sBody
.Send
End With
%>

Jul 19 '05 #3
This is also sometimes known as a SMART HOST. ;]

Ray at work

"Vilmar Brazão de Oliveira" <te***@teste.teste.teste> wrote in message
news:#f**************@tk2msftngp13.phx.gbl...
HI,
If you want to use smtp from another server you need to configure the
INTELLIGENT HOST to the matching
adrees in: properties of iis 5.0 smtp server/deliver/advanced
so there you will find the option INTELLIGENT HOST to put the address to
solve your deleverings.
bye

--

««««««««»»»»»»»»»»»»»»
Vlmar Brazão de Oliveira
Desenvolvimento Web
HI-TEC
"M P" <ma**@textguru.ph> escreveu na mensagem
news:O7**************@tk2msftngp13.phx.gbl...
Need help! Whats wrong with my code? My plan is this, I have my IIS5.0 on Server A and then I will use SMTP service of Server B. I already

configured
IIS to use Server B as its SMTP Server but I got this error :

Microsoft VBScript runtime (0x800A0046)
Permission denied

Can you check my code:

<%
DIM sBody, sFrom, sSender, sSubject, sTo, x
sBody = "Test content body, will it work"
sFrom = "ma**@p.com"
sSender = "ma**@p.com"
sSubject = "Test"
sTo = "m@p.com"

DIM iMsg
Set iMsg = Server.CreateObject("CDONTS.NewMail")

With iMsg
.To = sTo
.From = sFrom
.Subject = sSubject
.Body = sBody
.Send
End With
%>


Jul 19 '05 #4
M P
Do i need to have SMTP Service from IIS? Or can I use other SMTP service
from other apps like MS Exchange on other machine? If yes, how ?
"Ray at <%=sLocation%> [MVP]" <Too many private support requests - Ask for
it if needed> wrote in message news:um**************@tk2msftngp13.phx.gbl...
Be sure that the IUSR account has permissions to write files to
\inetpub\mailroot\pickup.

Also see a couple other threads from earlier today with these subject lines:
Help! CDO.Send returns error '8004020f' -- why???

CDO.Send - does not appear to work sending to outside domains.

Also see the second paragraph here if your site is not on an NT 4 server.
http://www.aspfaq.com/show.asp?id=2026
Ray at home
"M P" <ma**@textguru.ph> wrote in message
news:O7**************@tk2msftngp13.phx.gbl...
Need help! Whats wrong with my code? My plan is this, I have my IIS5.0 on Server A and then I will use SMTP service of Server B. I already

configured
IIS to use Server B as its SMTP Server but I got this error :

Microsoft VBScript runtime (0x800A0046)
Permission denied

Can you check my code:

<%
DIM sBody, sFrom, sSender, sSubject, sTo, x
sBody = "Test content body, will it work"
sFrom = "ma**@p.com"
sSender = "ma**@p.com"
sSubject = "Test"
sTo = "m@p.com"

DIM iMsg
Set iMsg = Server.CreateObject("CDONTS.NewMail")

With iMsg
.To = sTo
.From = sFrom
.Subject = sSubject
.Body = sBody
.Send
End With
%>


Jul 19 '05 #5
You have to have SMTP installed on a server that your server can access and
is authorized to use. It doesn't have to be on your web server. My
intranet server, for example, I just have our Exchange server setup as a
smarthost. Now, that does mean that my intranet server is still using its
own smtp service, but all it's doing with the e-mails is relaying them over
to our Exchange server which then handles the message delivery.

See http://www.aspfaq.com/show.asp?id=2119 and the links in it.

Ray at work

"M P" <ma**@textguru.ph> wrote in message
news:O8**************@TK2MSFTNGP09.phx.gbl...
Do i need to have SMTP Service from IIS? Or can I use other SMTP service
from other apps like MS Exchange on other machine? If yes, how ?
"Ray at <%=sLocation%> [MVP]" <Too many private support requests - Ask for
it if needed> wrote in message

news:um**************@tk2msftngp13.phx.gbl...
Be sure that the IUSR account has permissions to write files to
\inetpub\mailroot\pickup.

Also see a couple other threads from earlier today with these subject

lines:

Help! CDO.Send returns error '8004020f' -- why???

CDO.Send - does not appear to work sending to outside domains.

Also see the second paragraph here if your site is not on an NT 4 server.
http://www.aspfaq.com/show.asp?id=2026
Ray at home
"M P" <ma**@textguru.ph> wrote in message
news:O7**************@tk2msftngp13.phx.gbl...
Need help! Whats wrong with my code? My plan is this, I have my IIS5.0

on Server A and then I will use SMTP service of Server B. I already

configured
IIS to use Server B as its SMTP Server but I got this error :

Microsoft VBScript runtime (0x800A0046)
Permission denied

Can you check my code:

<%
DIM sBody, sFrom, sSender, sSubject, sTo, x
sBody = "Test content body, will it work"
sFrom = "ma**@p.com"
sSender = "ma**@p.com"
sSubject = "Test"
sTo = "m@p.com"

DIM iMsg
Set iMsg = Server.CreateObject("CDONTS.NewMail")

With iMsg
.To = sTo
.From = sFrom
.Subject = sSubject
.Body = sBody
.Send
End With
%>



Jul 19 '05 #6
M P
Now I understand! Thanks a lot Ray! Now I can send using ASP using CDO.
"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:#H**************@tk2msftngp13.phx.gbl...
You have to have SMTP installed on a server that your server can access and is authorized to use. It doesn't have to be on your web server. My
intranet server, for example, I just have our Exchange server setup as a
smarthost. Now, that does mean that my intranet server is still using its
own smtp service, but all it's doing with the e-mails is relaying them over to our Exchange server which then handles the message delivery.

See http://www.aspfaq.com/show.asp?id=2119 and the links in it.

Ray at work

"M P" <ma**@textguru.ph> wrote in message
news:O8**************@TK2MSFTNGP09.phx.gbl...
Do i need to have SMTP Service from IIS? Or can I use other SMTP service
from other apps like MS Exchange on other machine? If yes, how ?
"Ray at <%=sLocation%> [MVP]" <Too many private support requests - Ask for
it if needed> wrote in message

news:um**************@tk2msftngp13.phx.gbl... Be sure that the IUSR account has permissions to write files to
\inetpub\mailroot\pickup.

Also see a couple other threads from earlier today with these subject

lines:

Help! CDO.Send returns error '8004020f' -- why???

CDO.Send - does not appear to work sending to outside domains.

Also see the second paragraph here if your site is not on an NT 4 server. http://www.aspfaq.com/show.asp?id=2026
Ray at home
"M P" <ma**@textguru.ph> wrote in message
news:O7**************@tk2msftngp13.phx.gbl...
> Need help! Whats wrong with my code? My plan is this, I have my
IIS5.0 on
> Server A and then I will use SMTP service of Server B. I already
configured
> IIS to use Server B as its SMTP Server but I got this error :
>
> Microsoft VBScript runtime (0x800A0046)
> Permission denied
>
> Can you check my code:
>
> <%
> DIM sBody, sFrom, sSender, sSubject, sTo, x
> sBody = "Test content body, will it work"
> sFrom = "ma**@p.com"
> sSender = "ma**@p.com"
> sSubject = "Test"
> sTo = "m@p.com"
>
> DIM iMsg
> Set iMsg = Server.CreateObject("CDONTS.NewMail")
>
> With iMsg
> .To = sTo
> .From = sFrom
> .Subject = sSubject
> .Body = sBody
> .Send
> End With
> %>
>
>



Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4695
by: | last post by:
Hi Guys CDONTS works with all sites hosted on my test server bar one (which surely rules out a miscomputation of the Default SMTP server in IIS). I have tried uploading the file with make up...
4
847
by: hugh Welford | last post by:
Hi...I am currently trying to have the CDONTS facility activated by my web-host (it has previously worked very well with another host, and is crucial to the site). I have received the following...
29
3508
by: | last post by:
I did a working code with CDONTS on NT4 Now I am testing is on w2k and it looks like objCDONTS.Send is completely ignored. I think is it ignored because it throws no errors, neither does the...
1
2021
by: Tom Fuchs | last post by:
We have been using CDONTS with IIS 5.0-Win2K for more than a year now without any problems. Recently our exchange server ran into some problems and the information store needed to be rebuilt. ...
10
9750
by: Seeker | last post by:
Hi! I have to do some developing and I'm trying to configure my server to mimic the operation of our production server. The issue I'm having is that I'm trying to use CDONTS to send an email...
6
4391
by: kelsloris | last post by:
I have an asp app that uses CDONTS to send email notifications. On the .send method I get an error saying the specified path could not be found. Everything I find about this error refers to IMS and...
12
1934
by: tshad | last post by:
I am trying to run a test sending mail using CDONTS on my W2K3 machine. It works fine running from my WXP Pro, but I don't recieve the mail if run the W2K3 machine. Both machines have IIS...
3
3709
by: Pav | last post by:
Hi, I am developing a small Intranet web application which needs to send mails to our coporate Ids. I am using CDONTS, But my mails never leave Que folder. Not able to find out what the...
3
3289
by: tamaker | last post by:
I have Road Runner cable internet access and Im working in a local development environment (writing .ASP) and have a site running on my network on a windows xp pro machine via IIS with CDONTS...
0
7192
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
7064
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...
1
6974
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
5559
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4991
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4665
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3158
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1492
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.