473,394 Members | 1,726 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.

Same ASP page executed 2 ways produce different results...strange

Hi everyone,

I was looking for a way to execute an .ASP page through the windows
scehduler, and I found several posts that showed out to "run" a URL
using a windows scripting file. The file looks like this:

test1.vbs
-------------
set x=createobject("microsoft.xmlhttp")
x.Open "GET", "http://www.mydomain.com/schedEnding.asp?aid=4", False
x.Send
msgbox("Verastar East Ending - " & x.responseText)
set x=nothing
I successfully scheduled this script in Windows and it runs on time and
does what the .asp page should - with one exception - it does not send
the notifcation email out.

If I open up a browser and type in that exact URL, the page works fine
and it sends the email as designed.

When it runs through the above script in the scheduler, all the
database updates are performed properly, but the emails aren't sent.
How can this be?

Im assuming that in both instances, the page is being invoked under the
security context of the anonymous IUSR_MachineName account, but maybe
this is not the case?

Anyone else have any thoughts on what might be happening here?

Here is the code in the .asp page that sends the emails:

'Now create and send results email
Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.FromName = "Admin"
Mailer.FromAddress= "ad***@mydomain.com"
Mailer.RemoteHost = "mail.mydomain.com"
Mailer.AddRecipient "Customer", "jo**@hisdomain.com"
Mailer.Subject = auct("Name") & " Ending Results.."
Mailer.BodyText = mbody
Mailer.ContentType = "text/html"
if Mailer.SendMail then
Response.Write "Form information submitted..."
else
Response.Write "Mail send failure. Error was " & Mailer.Response
end if
set Mailer = Nothing
As a final note, the resulting message after the scheduled job is
executed, is "Form Information submitted...", which indicates that the
Mailer.SendMail conditional above was successful (no errors).

Any help would be greatly appreciated.

Dec 9 '05 #1
0 1124

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

Similar topics

6
by: Bob Bedford | last post by:
I've a query quite important to execute. I've to fill an array with all result, so the query is called once wich returns all ID's Then I call the same query a second time as I shown only 10...
1
by: Tigerhillside | last post by:
I forgot I had a "real" newsreader available. So here is the question you will see "soon" when google decides to post my other question. I have a server side script that takes a user's input...
0
by: Andreas.Bretl | last post by:
Hi all, We are currently facing a strange problem. We wrote an ASP application using some sessions and database-connectivity, nothing special. On some machines (we are all using IE5.5 / IE6)...
5
by: malcolm | last post by:
Example, suppose you have these 2 tables (NOTE: My example is totally different, but I'm simply trying to setup the a simpler version, so excuse the bad design; not the point here) CarsSold {...
2
by: harry | last post by:
I have a search form that returns a search results list. The user then selects a result which displays full info for that selected item. The item then has 6 different pages all showing related...
6
by: MooreSmnith | last post by:
When I navigate to the next page using Response.Rediect("MyNextPage.aspx") current page Page_Load event is called. What I may wrongly understood is that post back will happen whenever there is any...
6
by: jjturon | last post by:
Can anyone help me?? I am trying to pass a Select Query variable to a table using Dlookup and return the value to same select query but to another field. Ex. SalesManID ...
6
by: Pete Verdon | last post by:
Summary: Can I do an XSLT transform, in the client, of a tree of nodes taken from the displayed page DOM in IE? This works in Firefox. Hi, I'm just starting the process of rewriting part of a...
20
by: subramanian | last post by:
Hello I have a doubt in the following piece of code: int a; printf("a=%p\n", a); printf("&a=%p\n", &a); these printf statements print the same value for both 'a' and '&a". I tried in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
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,...
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...

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.