Hi folks,
I have a page that collects information that submits to a confirmation
page. The confirmation page shows all fields entered, using session
information - response.write Request("fieldEmailAddress") and then
hidden form fields with the value of each session, e.g. <input
name="fieldEmailAddress" type="hidden" value="<%=
Request("fieldEmailAddress") %>">. Once the user hits submit on this
confirmation page, the information is submitted to the database with a
redirect to to a sendmailscript page (with a CDOSYS mail script that
is supposed to send the user a thank you email). This page then
redirects automatically to the thank you page (so the mailscript page
is not resubmitted if the user hits refresh. Everything works
perfectly without the mailscript, but it appears the sessions are not
being carried across to this page because it get the following error:
CDO.Message.1 (0x8004020C)
At least one recipient is required, but none were found.
The objMail.To cannot resolve this -objMail.To =
Request("fieldEmailAddress")
If I place an email address there instead, it works perfectly ->
objMail.To = "em**********@domain.com"
NOTE: I notice that even if I remove all the CDO mailscript from that
page, I can't even use a standard response.write Request("fieldname"),
as on the previous page. I still have the session in the header being
used:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!--#include file="../cn/cnString.asp" -->
<% Session("fieldID")=Request.Form("fieldID") %>
<% Session("fieldFirstName")=Request.Form("fieldFirst Name") %>
<% Session("fieldLastName")=Request.Form("fieldLastNa me") %>
<% Session("fieldEmailAddress")=Request.Form("fieldEm ailAddress") %>
.......
For some reason, that session is not carrying across to this page, as
it did in the previous page where the response.write
Request("fieldEmailAddress") was working. I just seem to have lost
the ability to carry the session. I was using Cookies - but prefer
not to for user reasons - but even that didn't work.
Any help would be appreciated.
Thanks,
Jim 2 7392
Does the fact that the confirm page is submitting to the database
before or while it redirects to this sendmailscript page kill the
session? That is the only thing I can imagine is happening - because
it does submit the record to the database
"TechNinja" <ji*******@gmail.comwrote in message
news:11**********************@64g2000cwx.googlegro ups.com...
Hi folks,
I have a page that collects information that submits to a confirmation
page. The confirmation page shows all fields entered, using session
information - response.write Request("fieldEmailAddress") and then
hidden form fields with the value of each session, e.g. <input
name="fieldEmailAddress" type="hidden" value="<%=
Request("fieldEmailAddress") %>">. Once the user hits submit on this
confirmation page, the information is submitted to the database with a
redirect to to a sendmailscript page (with a CDOSYS mail script that
is supposed to send the user a thank you email). This page then
redirects automatically to the thank you page (so the mailscript page
is not resubmitted if the user hits refresh. Everything works
perfectly without the mailscript, but it appears the sessions are not
being carried across to this page because it get the following error:
CDO.Message.1 (0x8004020C)
At least one recipient is required, but none were found.
The objMail.To cannot resolve this -objMail.To =
Request("fieldEmailAddress")
If I place an email address there instead, it works perfectly ->
objMail.To = "em**********@domain.com"
NOTE: I notice that even if I remove all the CDO mailscript from that
page, I can't even use a standard response.write Request("fieldname"),
as on the previous page. I still have the session in the header being
used:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!--#include file="../cn/cnString.asp" -->
<% Session("fieldID")=Request.Form("fieldID") %>
<% Session("fieldFirstName")=Request.Form("fieldFirst Name") %>
<% Session("fieldLastName")=Request.Form("fieldLastNa me") %>
<% Session("fieldEmailAddress")=Request.Form("fieldEm ailAddress") %>
......
For some reason, that session is not carrying across to this page, as
it did in the previous page where the response.write
Request("fieldEmailAddress") was working. I just seem to have lost
the ability to carry the session. I was using Cookies - but prefer
not to for user reasons - but even that didn't work.
Any help would be appreciated.
Thanks,
Not sure why the target of your confirmation page redirects to another page
to the send the mail. Why don't you do them both in the same page or at
least just server execute a send email page. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: bartek.rylko |
last post by:
Hi all, Any one got idea about how to set undisclosed recipient? I put
all recipient in BCC field while the To field don't want to leave
blank. but neither fail to place an empty email address nor...
|
by: alessia |
last post by:
Hi, i'm sorry for my bad english but ..i'm italian..
I have a big problem that I don't succeed in resolving on the command
sendobjet.
I have a query that as resulted a list of addresses e-mail it...
|
by: Li Pang |
last post by:
Hi,
I made a service to manage emails. It must identify each email by its
suject, from (sender) and to (recipient). I can get subject value by using
objMsg.Subject
but could not find the...
|
by: Raymond Hettinger |
last post by:
I am evaluating a request for an alternate version of itertools.izip()
that has a None fill-in feature like the built-in map function:
>>> map(None, 'abc', '12345') # demonstrate map's None...
|
by: cj |
last post by:
How can I get a button in VB to send the contents of a text box via
email in a manner similar to the "Send To\Mail Recipient" functionality
that you can select via right clicking a file in Windows...
|
by: Bob |
last post by:
There seems to be a problem when using System.Net.Mail to send emails to
multiple recipients when one or more of the recipient addresses is incorrect
and the destination SMTP server is using...
|
by: Andi Clemens |
last post by:
Hi,
everytime I try to plot a bar with matplotlib I get the following error
message:
Traceback (most recent call last):
File "bar_stacked.py", line 13, in ?
p1 = bar(ind, menMeans, width,...
|
by: petermichaux |
last post by:
Hi,
It seems like determining element position in a web page is a difficult
task. In the position reporting source code I've looked at there are
special fixes for at least some versions of...
|
by: kj |
last post by:
I'm trying to subclass file, overriding the readline method. The
new method definition begins with
def readline(self, size=None):
line = self.file.readline(size)
# etc., etc.
....where the...
|
by: Kemmylinns12 |
last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
|
by: WisdomUfot |
last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
|
by: Oralloy |
last post by:
Hello Folks,
I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA.
My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
|
by: BLUEPANDA |
last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
|
by: Rahul1995seven |
last post by:
Introduction:
In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
|
by: Ricardo de Mila |
last post by:
Dear people, good afternoon...
I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control.
Than I need to discover what...
|
by: Johno34 |
last post by:
I have this click event on my form. It speaks to a Datasheet Subform
Private Sub Command260_Click()
Dim r As DAO.Recordset
Set r = Form_frmABCD.Form.RecordsetClone
r.MoveFirst
Do
If...
|
by: jack2019x |
last post by:
hello, Is there code or static lib for hook swapchain present?
I wanna hook dxgi swapchain present for dx11 and dx9.
|
by: DizelArs |
last post by:
Hi all)
Faced with a problem, element.click() event doesn't work in Safari browser.
Tried various tricks like emulating touch event through a function:
let clickEvent = new Event('click', {...
| | |