473,395 Members | 1,937 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,395 software developers and data experts.

At least one recipient is required, but none were found.

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

Mar 12 '07 #1
2 7470
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

Mar 12 '07 #2

"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.

Mar 13 '07 #3

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

Similar topics

2
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...
2
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...
1
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...
12
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...
15
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...
0
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...
8
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,...
2
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...
5
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...
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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...
0
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,...

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.