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.CreateOb ject("CDONTS.Ne wMail")
With iMsg
.To = sTo
.From = sFrom
.Subject = sSubject
.Body = sBody
.Send
End With
%> 6 4142
Be sure that the IUSR account has permissions to write files to
\inetpub\mailro ot\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******** ******@tk2msftn gp13.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.CreateOb ject("CDONTS.Ne wMail")
With iMsg .To = sTo .From = sFrom .Subject = sSubject .Body = sBody .Send End With %>
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******** ******@tk2msftn gp13.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.CreateOb ject("CDONTS.Ne wMail")
With iMsg .To = sTo .From = sFrom .Subject = sSubject .Body = sBody .Send End With %>
This is also sometimes known as a SMART HOST. ;]
Ray at work
"Vilmar Brazão de Oliveira" <te***@teste.te ste.teste> wrote in message
news:#f******** ******@tk2msftn gp13.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******** ******@tk2msftn gp13.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.CreateOb ject("CDONTS.Ne wMail")
With iMsg .To = sTo .From = sFrom .Subject = sSubject .Body = sBody .Send End With %>
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******** ******@tk2msftn gp13.phx.gbl... Be sure that the IUSR account has permissions to write files to \inetpub\mailro ot\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******** ******@tk2msftn gp13.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.CreateOb ject("CDONTS.Ne wMail")
With iMsg .To = sTo .From = sFrom .Subject = sSubject .Body = sBody .Send End With %>
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******** ******@TK2MSFTN GP09.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******** ******@tk2msftn gp13.phx.gbl... Be sure that the IUSR account has permissions to write files to \inetpub\mailro ot\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******** ******@tk2msftn gp13.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.CreateOb ject("CDONTS.Ne wMail")
With iMsg .To = sTo .From = sFrom .Subject = sSubject .Body = sBody .Send End With %>
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******** ******@tk2msftn gp13.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******** ******@TK2MSFTN GP09.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******** ******@tk2msftn gp13.phx.gbl... Be sure that the IUSR account has permissions to write files to \inetpub\mailro ot\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******** ******@tk2msftn gp13.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.CreateOb ject("CDONTS.Ne wMail") > > With iMsg > .To = sTo > .From = sFrom > .Subject = sSubject > .Body = sBody > .Send > End With > %> > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 the site in which CDONTS to one of the IIS
"sites" which is known to work with CDONTS, and still, no email received.
The bad mail dir gets three files each time, the error is:
|
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 reason for it not working : " there is already
an e-mail server running on the server and when I try to start the 'Virtual
SMTP Server' under IIS it fails. The e-mails from the web site are being
sent to a local directory on the server but appear...
|
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 rest of
the code setting
objCDONTS=Server.CreateObject("CDONTS.NewMail") and then manipulating its
properties.
Do I need to somehow set IIS5 to make objCDONTS.Send work?
|
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. Additionally, our gateway
router went down and was replaced and reconfigured. It was at about this
time that our web forms stopped working. We use CDONTS with the IIS SMTP
service. The mail appears to be getting stuck in the queue folder under...
|
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 under IIS on a Windows 2003 Server.
The server does not have the SMTP service running, but I do have a third
party SMTP/POP/IMAP server running.
I have copied the CDONTS.DLL file and registered it. In the Web Serice
Extensions I have enabled the...
| |
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 the IMC folder. They say
to install IMS and set the pickup folder to the IMCDATA folder.
The problem is that this was working just fine until yesterday. We reset the
server yesterday and now all of a sudden the app cannot send email. Any idea...
|
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 configured essentially the same.
******************************************************************************************
|
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 problem is . please help
1) I am very new to SMTP configiration on my own Windows XP PC. How
do I configure to send mails. We Use Lotus Notes as our mail. Please
|
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 installed.
When I try to send a confirmation email (simple text) via CDONTS the
message is built but remains on the server in the QUEUE folder ... how
can I tweak the SMTP settings on the server to allow me to send email
out from the server...
...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |