473,767 Members | 1,735 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VBS in ASP

Fox
Can anyone tell me why I might be getting a 500 error
trying to use this VBS template in ASP? The only thing
I could see to do to make it work in ASP was to
add Server.CreateOb ject instead of CreateObject.
But, obviously there is something more. Are the WITH
statements ok or do they need to be changed ?

Dim iMsg
Dim iConf
Dim Flds
Dim strHTML

Const cdoSendUsingPic kup = 1

set iMsg = Server.CreateOb ject("CDO.Messa ge")
set iConf = Server.CreateOb ject("CDO.Confi guration")

Set Flds = iConf.Fields
With Flds
.Item("sendusin g") = cdoSendUsingPic kup
' TODO: Replace <PICKUP DIRECTORY> with path to your pickup directory
' Typically, c:\Inetpub\mail root\pickup
.Item("smtpserv erpickupdirecto ry")= "c:\Inetpub\mai lroot\pickup"
.Update
End With

' Build HTML for message body.
strHTML = "<HTML>"
strHTML = strHTML & "<HEAD>"
strHTML = strHTML & "<BODY>"
strHTML = strHTML & "<b> This is the test HTML message body</b></br>"
strHTML = strHTML & "</BODY>"
strHTML = strHTML & "</HTML>"

Dim iBP
With iMsg
Set .Configuration = iConf
.To = "de****@connexi ons.net"
.From = "de****@connexi ons.net"
.Subject = "This is a test CDOSYS message (Sent via Pickup)"
.HTMLBody = strHTML
'TODO: if adding an attachment,
'uncomment the next line and alter file path as required
'Set iBP = iMsg.AddAttachm ent(App.Path & "\file1.txt ")
.Send
End With

' Clean up variables.
Set iBP = Nothing
Set iMsg = Nothing
Set iConf = Nothing
Set Flds = Nothing
Jul 19 '05
26 4820
> Maybe there was a reason.

The only reasons I know of for multi-posting are that a person is impatient
or thinks their question is so much more important than others that they are
excluded from observing etiquette.
Grow up !


No, learn to use the groups effectively. You're here to get help, right?
People that come here to help you are going to be unwilling to do so if you
ignore established etiquette, and give all kinds of attitude...

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
Jul 19 '05 #11
Fox
I've got like 5 different sample scripts (G)
I can get some to work but they will not suit the purpose.
I have freestanding "VBS only" and I have ASP with a form
built in. Ultimately I have to supply the TO field from SQL.
I am juggling these scripts and trying to find one that I can
alter and still have it work. Unfortunately, a lot depends on
having this done before the morning. I will keep trying.

What's up with Ray, does he always get so easily pieved?

Fox

"Aaron Bertrand - MVP" <aa***@TRASHasp faq.com> wrote in message
news:O0******** ******@tk2msftn gp13.phx.gbl...
But why is this something to be called online. Weird !!!


It looks that way, but it is not. If you have a local SMTP server, unplug
your network cable and you'll see that the code still works, and that the
message gets to your pickup directory at least...

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/

Jul 19 '05 #12

"Fox" <fox @ connexions .net> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..

What's up with Ray, does he always get so easily pieved?

I think the FAQ does a pretty decent job explaining it. I couldn't have
said it better myself. It's not a problem with me if you want to decrease
your chances of getting help here. It was just a suggestion that I offered
so that you are more likely to find an answer.

Ray at work
Jul 19 '05 #13
Fox
You must be old enough to know that everything cannot
be known by a surface appearance. You have no idea
why I posted on two groups and you did not ask or wait to
find out. You were not being kind and informative, you
were taking advantage of someone who needs help and
instead talking an opportunity to have some fun at their
expense.

There are people who are nice and people who are not nice.
You can choose which one you want to be.

Fox
"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
news:eY******** ******@TK2MSFTN GP09.phx.gbl...

"Fox" <fox @ connexions .net> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..

What's up with Ray, does he always get so easily pieved?
I think the FAQ does a pretty decent job explaining it. I couldn't have
said it better myself. It's not a problem with me if you want to decrease
your chances of getting help here. It was just a suggestion that I

offered so that you are more likely to find an answer.

Ray at work

Jul 19 '05 #14
In time, you will see that I was being the exact opposite of what you've
already chosen to believe. You're just new at this, and that is fine.
We've all been there.

Ray at work

"Fox" <fox @ connexions .net> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
You must be old enough to know that everything cannot
be known by a surface appearance. You have no idea
why I posted on two groups and you did not ask or wait to
find out. You were not being kind and informative, you
were taking advantage of someone who needs help and
instead talking an opportunity to have some fun at their
expense.

There are people who are nice and people who are not nice.
You can choose which one you want to be.

Fox
"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
news:eY******** ******@TK2MSFTN GP09.phx.gbl...

"Fox" <fox @ connexions .net> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..

What's up with Ray, does he always get so easily pieved?

I think the FAQ does a pretty decent job explaining it. I couldn't have
said it better myself. It's not a problem with me if you want to decrease your chances of getting help here. It was just a suggestion that I

offered
so that you are more likely to find an answer.

Ray at work


Jul 19 '05 #15
Fox wrote:
You must be old enough to know that everything cannot
be known by a surface appearance. You have no idea
why I posted on two groups and you did not ask or wait to
find out. You were not being kind and informative, you
were taking advantage of someone who needs help and
instead talking an opportunity to have some fun at their
expense.


Here is an example of why we dsilike it when people multipost:
http://www.google.com/groups?hl=en&l...%3D20%26sa%3DN
Let me ask you which of the following outcomes you would prefer:

A. You multipost a few times and initially get answers to your questions,
but then you realize that nobody is answering your questions or even giving
you an indication that they have read your questions.

or

B. Your initial multipost receives a response requesting you to refrain from
multiposting, so you stop multiposting and receive prompt answers on all
your future questions

I think if you reflect on it, you will realize that Ray was attempting to do
you a favor.

Bob Barrows

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 19 '05 #16
Fox
Might as well answer both of you at the same time.
First to Ray. I am not new at this, so I do not have that
excuse. I know what you did because I frequent other
NGs and I know the routine. Ray, you could have simply
stated something in 2 lines instead of sending me to a page
which tells me that someone is annoyed with me. That is not
defensibe as a favor. That is wasting my time and getting your
rocks off and you know it. Why did you go to back to the
other NG to read my next post? Having some fun there Ray;)

Bob, as for your defense of him, I think that you are well
intended but you should rethink Rays approach.

As for my double post, I was desparate and as soon as I got
a response on the one group, I ended the other and it was
before anyone had responded. I did not know which group to
post in and when you are desparately in a hurry, I think that
just might be defensible. I know what you are trying to tell me but
it was the manner that makes the difference. And that is the
reason for this note and also to get my own rocks off cause
I am very frustrated and cannot meet a deadline that is
very important.

In fact I still don't have what I need and this is serious.
I am trying to work it out myself instead of leaning on
others. Don't you think that some people are deserving
of a break and don't need insult added to them when they
are in a crisis. Can't we all just get along (that's embarassing ;)

As I said, you can choose which kind of
person you are. I think that Bob, your intent was to be positive
and I thank you for that. Ray, what you did was not really
a big deal, but it was childish. You are a grown-up and
I am guessing that you can write exactly what you want
to say when you want to help someone. So what you did
was obviously just a childish atttempt at getting your rocks
off.

Sorry to be so laborsome over trivia, but maybe I can
get some of my frustration off my chest and just maybe
Ray is reachable and can be self-effacing. Ray, I teach
my kids something that might reach you. I tell them that
even if they have to lie to others, never lie to your self.

Fox

"Bob Barrows" <re******@NOyah oo.SPAMcom> wrote in message
news:#G******** ******@TK2MSFTN GP11.phx.gbl...
Fox wrote:
You must be old enough to know that everything cannot
be known by a surface appearance. You have no idea
why I posted on two groups and you did not ask or wait to
find out. You were not being kind and informative, you
were taking advantage of someone who needs help and
instead talking an opportunity to have some fun at their
expense.

Here is an example of why we dsilike it when people multipost:

http://www.google.com/groups?hl=en&l...dm=ui4gFHGvDHA
..1744%40TK2MSF TNGP12.phx.gbl& rnum=26&prev=/groups%3Fq%3Dau thor:Bob%2Bauth or:
Barrows%26hl%3D en%26lr%3D%26ie %3DUTF-8%26oe%3DUTF-8%26as_drrb%3Db %26as_mind%
3D4%26as_minm%3 D12%26as_miny%3 D2003%26as_maxd %3D9%26as_maxm% 3D12%26as_maxy% 3
D2003%26start%3 D20%26sa%3DN

Let me ask you which of the following outcomes you would prefer:

A. You multipost a few times and initially get answers to your questions,
but then you realize that nobody is answering your questions or even giving you an indication that they have read your questions.

or

B. Your initial multipost receives a response requesting you to refrain from multiposting, so you stop multiposting and receive prompt answers on all
your future questions

I think if you reflect on it, you will realize that Ray was attempting to do you a favor.

Bob Barrows

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Jul 19 '05 #17
Fox wrote:
<snip>
Last attempt.
We regulars take a huge part of our days answering very many questions.
There is no way we could answer as many questions as we do without resorting
to some shortcuts such as posting links to web pages that basically say what
we want to say instead of retyping these replies every time.

While I do agree that the message in 5003 is a little strongly worded (which
is why I no longer link to it), I have to say that the message is valid.
Multiposting IS annoying, and can cause people to start ignoring you if you
keep doing it (especially if the multipost caused them to waste their time
typing an unnecessary reply).

In your desperation to get help quickly, you unknowingly violated basic
netiquette. Repeat violations of netiquette will cause regular posters to
ignore the violator. So, instead of succeeding in getting prompt assistance,
you have instead succeeeded in causing people to "turn you off"

When informed of this, you decided to react defensively instead of admitting
your mistake and promising to do better in the future.

I have to tell you, I was very close to using the Block Sender feature in
Outlook Express rather than take the time to write this reply. Furthermore,
I will not allow you to take up any more of my time if you persist in
attempting to defend yourself in this way.

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 19 '05 #18
Fox
Gee, I am making friends all over the group.
Geesh, have you read that obnoxious thing Ray
sent me to. I do not object to the advice I object
to the immature attitude. He can surely express
himself well when helping people and if he was
truly trying to help me by warning me why would
he send me to an insult instead of speaking for
himself about a very simple issue which by the
way he and someone else explained afterwards
in just a few words. Could have done that in the
first place.

As I said on the other thread, even though both of
these threads should have already died, I am not new
to the NGs and I know the way things are done.
I know how some people get their rocks off and
show off by towing the line and amusing their buds.

I know other people ignore that drivel and they do help.
If you want to put a price on your help and that price is
that I never sway from your standard no matter what
the reason or that I never bother to try to meet
a deadline that can cost me my livelihood, than we
are on different pages on what it means to help people.

And I am well aware that rarely can writing back to people
who cop these attitudes in the name of how good they
are to others, ever be reached. That is simply because
they have a chip on their shoulder and they are not interested
in being sef-effacing. So if you want to be the same that is
up to you. I have always respected and have been more
than greatful and thankful for any help I ever get on the NGs.
Ray was barking up the wrong tree and insulting someone
who did not deserve nor require it. That is my issue and
my only issue.

Fox

"Aaron Bertrand - MVP" <aa***@TRASHasp faq.com> wrote in message
news:OB******** ******@TK2MSFTN GP11.phx.gbl...
Maybe there was a reason.
The only reasons I know of for multi-posting are that a person is

impatient or thinks their question is so much more important than others that they are excluded from observing etiquette.
Grow up !
No, learn to use the groups effectively. You're here to get help, right?
People that come here to help you are going to be unwilling to do so if

you ignore established etiquette, and give all kinds of attitude...

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/

Jul 19 '05 #19
Fox
No, now that I know that these two groups are so inticately tied I will
not be posting in both. If I knew I would not have in the first place.
We regulars take a huge part of our days answering very many questions.
There is no way we could answer as many questions as we do without resorting to some shortcuts such as posting links to web pages that basically say what we want to say instead of retyping these replies every time.
Understood and always known and accepted. Was not my intent to insult
anyone but to shine some light on Ray sending me to what was an insult
when I was at my wits end about my circumstances. Maybe you
can cut me slack on that one ?
While I do agree that the message in 5003 is a little strongly worded (which is why I no longer link to it), I have to say that the message is valid.
Agreed, but not always neccesary to jump to and sometimes we need
to think outside the box and think about how we just may not realise
someone else's situation.
Multiposting IS annoying, and can cause people to start ignoring you if you keep doing it (especially if the multipost caused them to waste their time
typing an unnecessary reply).
No doubt. And even though I felt I had to post in the other group as well
I did shut it down as soon as there was a response here. That must
say something about having at least shown some respect in spite of
what you saw as a total violation.
When informed of this, you decided to react defensively instead of admitting your mistake and promising to do better in the future.
I reacted to an insult at a time of stress. This does not say that I do not
have the utmost respect for all the people and help I have gotten
on this board. I have been here on and off for over a year and could
not have gotten a darn thing done without the great and patient help
I have recevied. I have never intentionally double posted but have been
flamed for being on the wrong board. So each of us experiences
different things and causes us to react in different ways. Whether it
matters to you or not, I will tell that the truth is that I was about to
lose
the only thing that I had going which was going to lead to maybe being
able to support my family this coming year. Things have been awful.
I am not going to go into details, but please believe my family cannot
take anymore financial blows we are at the end of the rope. That is the
only reason I posted twice and in that I did not know I was double
posting because I know nothing about CDO but knew that the script
I was given was not going to work for me as a VBS. I never
even saw a VBS before, I am a novice to that. I knew I had to put it in a
web page to make it work so thought to ask in VBS and also thought
to ask in ASP. I posted and was sure that I would be flamed for being
in the wrong group in one or the other and had no time to reach my
deadline. That is all this is about and nothing more.

The good thing is I got out of bed at 11 last nite abd vowed to
figure out my problem. I had about 10 sample scripts and
having spent at least 6 hours reading examples and posts on web pages
I finally at 5am got what I needed working.

Please do not make me a fool for opening up.

Regards,
Fox

"Bob Barrows" <re******@NOyah oo.SPAMcom> wrote in message
news:#S******** ******@TK2MSFTN GP11.phx.gbl... Fox wrote:
<snip>
Last attempt.

In your desperation to get help quickly, you unknowingly violated basic
netiquette. Repeat violations of netiquette will cause regular posters to
ignore the violator. So, instead of succeeding in getting prompt assistance, you have instead succeeeded in causing people to "turn you off"
I have to tell you, I was very close to using the Block Sender feature in
Outlook Express rather than take the time to write this reply. Furthermore, I will not allow you to take up any more of my time if you persist in
attempting to defend yourself in this way.

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

Jul 19 '05 #20

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

Similar topics

3
11240
by: William C. White | last post by:
Does anyone know of a way to use PHP /w Authorize.net AIM without using cURL? Our website is hosted on a shared drive and the webhost company doesn't installed additional software (such as cURL) on the server because of that. Our site will have an SSL certificate next week, so I would like to use AIM instead of SIM, however, I don't know how to send data via POST over https and recieve data from the Authorize.net server over an https...
2
5835
by: Albert Ahtenberg | last post by:
Hello, I don't know if it is only me but I was sure that header("Location:url") redirects the browser instantly to URL, or at least stops the execution of the code. But appearantely it continues to execute the code until the browser send his reply to the header instruction. So an exit(); after each redirection won't hurt at all
3
23033
by: James | last post by:
Hi, I have a form with 2 fields. 'A' 'B' The user completes one of the fields and the form is submitted. On the results page I want to run a query, but this will change subject to which field is completed.
0
8491
by: Ollivier Robert | last post by:
Hello, I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9 system. The link succeeds but everytime I try to run php, I get a SEGV from inside the libcnltsh.so library. 354 roberto@ausone:Build/php-4.3.2> ldd /opt/php4/bin/php libsablot.so.0 => /usr/local/lib/libsablot.so.0 libstdc++.so.5 => /usr/local/lib/libstdc++.so.5 libm.so.1 => /usr/lib/libm.so.1
1
8604
by: Richard Galli | last post by:
I want viewers to compare state laws on a single subject. Imagine a three-column table with a drop-down box on the top. A viewer selects a state from the list, and that state's text fills the column below. The viewer can select states from the drop down lists above the other two columns as well. If the viewer selects only one, only one column fills. If the viewer selects two states, two columns fill. Etc. I could, if appropriate, have...
4
18299
by: Albert Ahtenberg | last post by:
Hello, I have two questions. 1. When the user presses the back button and returns to a form he filled the form is reseted. How do I leave there the values he inserted? 2. When the user comes back to a page where he had a submitted POST data the browser keeps telling that the data has expired and asks if repost. How to avoid that? I tried registering all POST and GET vars as SESSION vars but
1
6859
by: inderjit S Gabrie | last post by:
Hi all Here is the scenerio ...is it possibly to do this... i am getting valid course dates output on to a web which i have designed ....all is okay so far , look at the following web url http://www.mis.gla.ac.uk/biquery/training/ but each of the courses held have maximum of 8 people that could be
2
31440
by: Jack | last post by:
Hi All, What is the PHP equivilent of Oracle bind variables in a SQL statement, e.g. select x from y where z=:parameter Which in asp/jsp would be followed by some statements to bind a value to :parameter I dont like the idea of making the SQL statement on the fly without binding parameters as I dont want a highly polluted SQL cache.
3
23597
by: Sandwick | last post by:
I am trying to change the size of a drawing so they are all 3x3. the script below is what i was trying to use to cut it in half ... I get errors. I can display the normal picture but not the results of the picture half the size. The PHP I have installed support 1.62 or higher. And all I would like to do is take and image and make it fit a 3x3. Any suggestions to where I should read or look would be appreciated.
0
9571
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9405
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9960
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9841
tracyyun
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...
1
7383
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 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...
0
6655
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();...
0
5280
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5424
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2807
bsmnconsultancy
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...

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.