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

Data not delivered from form using ASPmailer......

I created a form that collects information from a user via a web page. The
form appears to work well - it won't let you submit the form until required
data is place in the required fields.

I receive the email from the form via the ISP but the data collected from
the form is not there. Where did it go?

Here is a copy of the code I am using - It's standard.

<!--- mailer.asp --->
<%
Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.FromName = Request.Form("mailer")
Mailer.FromAddress= "ma****@net.com"
Mailer.RemoteHost = "000.000.00.11"
Mailer.AddRecipient "mailer","ma****@net.com"
Mailer.Subject = "Customer Request from web site"
strMsgHeader = "Form information follows:" & vbCrLf
for i=1 to Request.Form.Count
strMsgInfo=strMsgInfo & Request.Form.Key(i) & "- " &
Request.Form.Item(i) & vbCrLf
next
strMsgFooter = vbCrLf & "End of information"
Mailer.BodyText = strMsgHeader & strMsgInfo & strMsgFooter
if Mailer.SendMail then %>
<% Response.Write "Mail sent..." %>
<% Response.redirect "thankyou.htm" %>
<% else %>
<% Response.Write "Mail send failure. Error was " & Mailer.Response
end if
%>

I know that this code works on another site I have created NOT using CSS.
This is the first site that I am creating a site using CSS.

Here is the address to the form:
http://www.previewmysite.com/quintin...yneighbour.htm

Thanks!

Any suggestions or comments welcome!
Jul 19 '05 #1
2 1714
Put in a

RESPONSE.WRITE BodyText
RESPONSE.END '''optional - if not used, commentout the response.redirect
line

just before teh "If Mailer.Send..." line. This will show you what's
supposed to be sent.

Also, you don't have to do:

<% code %>
<% code %>
<% code %>
<% code %>

You can just do:

<%
code
code
code
code
%>

Ray at home

"Ciberguy" <sl*****@rogers.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I created a form that collects information from a user via a web page. The
form appears to work well - it won't let you submit the form until required data is place in the required fields.

I receive the email from the form via the ISP but the data collected from
the form is not there. Where did it go?

Here is a copy of the code I am using - It's standard.

<!--- mailer.asp --->
<%
Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.FromName = Request.Form("mailer")
Mailer.FromAddress= "ma****@net.com"
Mailer.RemoteHost = "000.000.00.11"
Mailer.AddRecipient "mailer","ma****@net.com"
Mailer.Subject = "Customer Request from web site"
strMsgHeader = "Form information follows:" & vbCrLf
for i=1 to Request.Form.Count
strMsgInfo=strMsgInfo & Request.Form.Key(i) & "- " &
Request.Form.Item(i) & vbCrLf
next
strMsgFooter = vbCrLf & "End of information"
Mailer.BodyText = strMsgHeader & strMsgInfo & strMsgFooter
if Mailer.SendMail then %>
<% Response.Write "Mail sent..." %>
<% Response.redirect "thankyou.htm" %>
<% else %>
<% Response.Write "Mail send failure. Error was " & Mailer.Response
end if
%>

I know that this code works on another site I have created NOT using CSS.
This is the first site that I am creating a site using CSS.

Here is the address to the form:
http://www.previewmysite.com/quintin...yneighbour.htm

Thanks!

Any suggestions or comments welcome!

Jul 19 '05 #2

"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:%2****************@tk2msftngp13.phx.gbl...
Put in a

RESPONSE.WRITE BodyText
RESPONSE.END '''optional - if not used, commentout the response.redirect
line

just before teh "If Mailer.Send..." line. This will show you what's
supposed to be sent.


Thanks Ray!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Jul 19 '05 #3

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

Similar topics

22
by: Bryan Guilliams | last post by:
I'm trying to come up with an elegant, simple way to compare two consecutive values from the same table. For instance: SELECT TOP 2 datavalues FROM myTable ORDER BY timestamp DESC That...
5
by: tshad | last post by:
Is there a way to carry data that I have already read from the datagrid from page to page? I am looking at my Datagrid that I page through and when the user says get the next page, I have to go...
4
by: Schwarty | last post by:
I hope I posted this to the correct group. If not, please let me know and I will get it posted in the correct section. I have a web application developed in ASP.NET using C# for the code behind....
0
by: talbamonti | last post by:
I have several forms using the "ServerObjects ASPMailer". When I get the email from a form submission, the textarea comes out as one long line of text. Even when I try to output it into table. I have...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.