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

I'm not sure if this is the right place for this but...


I'm having trouble with a bit of form to mail for a site I work on an
was wondering if anyone could point out where I've gone wrong.

<%
Dim t1name,t1,t2name,t2,t3name,t3,t4name,t4,t5name,t5

t1name = "Name"
t1 = Request.Form("t1")
t2name = "Company"
t2 = Request.Form("t2")
t3name = "E-mail"
t3 = Request.Form("t3")
t4name = "Postcode"
t4 = Request.Form("t4")
t5name = "Telephone"
t5 = Request.Form("t5")

Dim st1name,st1,st2name,st2
st1name = "Address"
st1 = Request.Form("st1")
st2name = "Enquiry"
st2 = Request.Form("st2")

Dim cb1name,cb1,cb2name,cb2,cb3name,cb3,cb4name,cb4
cb1name = "Farmshops"
cb1 = Request.Form("st1")
cb2name = "E-mail List"
cb2 = Request.Form("st2")
cb3name = "Advertise"
cb3 = Request.Form("st1")
cb4name = "Swap Link"
cb4 = Request.Form("st2")

Dim ObjMail
Set ObjMail = Server.CreateObject("CDONTS.NewMail")
ObjMail.To = "ww*****@skydsl.de"

'in the next line you can change that email address to something else
'like "my****@myurl.com", just be sure and put it between quotes " "

ObjMail.From = "pr*********@martcymru.com"

'you can also change "Form Submission" to something else like "for
results" etc.

ObjMail.Subject = "Contact from the Mart Cymru website"

ObjMail.Body = t1name & vbcrlf&_
t1 & vbcrlf&_
t2name & vbcrlf&_
t2 & vbcrlf&_
t3name & vbcrlf&_
t3 & vbcrlf&_
t4name & vbcrlf&_
t4 & vbcrlf&_
t5name & vbcrlf&_
t5 & vbcrlf&_
st1name & vbcrlf&_
st1 & vbcrlf&_
st2name & vbcrlf&_
st2 & vbcrlf&_
cb1name & vbcrlf&_
cb1 & vbcrlf&_
cb2name & vbcrlf&_
cb2 & vbcrlf&_
cb3name & vbcrlf&_
cb3 & vbcrlf&_
cb4name & vbcrlf&_
cb4 & vbcrlf&_
ObjMail.Send
Set ObjMail = Nothing
'HERE you make a choice. You can redirect the user to any page in you
site

Response.Redirect "http://www.martcymru.com"

'Or just say thanks. Delete the line you dont want. Either above o
below
Response.Write"Thank You"
%
-
Hywe
-----------------------------------------------------------------------
Posted via http://www.webservertalk.co
-----------------------------------------------------------------------
View this thread: http://www.webservertalk.com/message404688.htm

Jul 19 '05 #1
4 1168
What's the problem/error?

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Hywel" <Hy**********@mail.webservertalk.com> wrote in message
news:Hy**********@mail.webservertalk.com...

I'm having trouble with a bit of form to mail for a site I work on and
was wondering if anyone could point out where I've gone wrong.

<%
Dim t1name,t1,t2name,t2,t3name,t3,t4name,t4,t5name,t5

t1name = "Name"
t1 = Request.Form("t1")
t2name = "Company"
t2 = Request.Form("t2")
t3name = "E-mail"
t3 = Request.Form("t3")
t4name = "Postcode"
t4 = Request.Form("t4")
t5name = "Telephone"
t5 = Request.Form("t5")

Dim st1name,st1,st2name,st2
st1name = "Address"
st1 = Request.Form("st1")
st2name = "Enquiry"
st2 = Request.Form("st2")

Dim cb1name,cb1,cb2name,cb2,cb3name,cb3,cb4name,cb4
cb1name = "Farmshops"
cb1 = Request.Form("st1")
cb2name = "E-mail List"
cb2 = Request.Form("st2")
cb3name = "Advertise"
cb3 = Request.Form("st1")
cb4name = "Swap Link"
cb4 = Request.Form("st2")

Dim ObjMail
Set ObjMail = Server.CreateObject("CDONTS.NewMail")
ObjMail.To = "ww*****@skydsl.de"

'in the next line you can change that email address to something else
'like "my****@myurl.com", just be sure and put it between quotes " "

ObjMail.From = "pr*********@martcymru.com"

'you can also change "Form Submission" to something else like "form
results" etc.

ObjMail.Subject = "Contact from the Mart Cymru website"

ObjMail.Body = t1name & vbcrlf&_
t1 & vbcrlf&_
t2name & vbcrlf&_
t2 & vbcrlf&_
t3name & vbcrlf&_
t3 & vbcrlf&_
t4name & vbcrlf&_
t4 & vbcrlf&_
t5name & vbcrlf&_
t5 & vbcrlf&_
st1name & vbcrlf&_
st1 & vbcrlf&_
st2name & vbcrlf&_
st2 & vbcrlf&_
cb1name & vbcrlf&_
cb1 & vbcrlf&_
cb2name & vbcrlf&_
cb2 & vbcrlf&_
cb3name & vbcrlf&_
cb3 & vbcrlf&_
cb4name & vbcrlf&_
cb4 & vbcrlf&_
ObjMail.Send
Set ObjMail = Nothing
'HERE you make a choice. You can redirect the user to any page in your
site

Response.Redirect "http://www.martcymru.com"

'Or just say thanks. Delete the line you dont want. Either above or
below
Response.Write"Thank You"
%>

--
Hywel
------------------------------------------------------------------------
Posted via http://www.webservertalk.com
------------------------------------------------------------------------
View this thread: http://www.webservertalk.com/message404688.html

Jul 19 '05 #2

it just won't work coming up with an unspecified 500 erro
-
Hywe
-----------------------------------------------------------------------
Posted via http://www.webservertalk.co
-----------------------------------------------------------------------
View this thread: http://www.webservertalk.com/message404688.htm

Jul 19 '05 #3
Hywel wrote:
it just won't work coming up with an unspecified 500 error


http://www.aspfaq.com/show.asp?id=2109

--
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 #4

Bob Barrows [MVP] wrote:
*Hywel wrote:
it just won't work coming up with an unspecified 500 error


http://www.aspfaq.com/show.asp?id=2109

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


allready taken into accoun
-
Hywe
-----------------------------------------------------------------------
Posted via http://www.webservertalk.co
-----------------------------------------------------------------------
View this thread: http://www.webservertalk.com/message404688.htm

Jul 19 '05 #5

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

Similar topics

13
by: Michael Sparks | last post by:
Hi, I've hit a corner case that I can explain to myself *why* it happens, both under python 2.3 and python 2.4, but the following inconsistency makes me wonder if I should log it as a bug: ...
0
by: Philip Semanchuk | last post by:
Hi all, I'm trying to find a way to place a small DIV just to the right of a header element. I've found a solution, but it is crude and I was hoping for something more elegant. I'd appreciate any...
22
by: Simon | last post by:
Hi, I have written a function to trim char *, but I have been told that my way could be dangerous and that I should use memmove(...) instead. but I am not sure why my code could be 'dangerous'...
96
by: Karen Hill | last post by:
SELECT surgeries.*, animals.* FROM surgeries INNER JOIN animals ON .=. AND WHERE ((.=Date()) Or .=Date()); I'm trying to write a query that joins two table together, animals and surgeries...
4
by: Ioannis Vranos | last post by:
Hi, i made an app with only one menuitem (on a mainmenu of course) ahd the problem is that it is placed on the left, but i want to place it on the right (it's a Help menu). Any ideas of how to...
59
by: Alan Silver | last post by:
Hello, This is NOT a troll, it's a genuine question. Please read right through to see why. I have been using Vusual Basic and Classic ASP for some years, and have now started looking at...
4
by: Ed | last post by:
Recently I got a new laptop and placed my Visual Studio 2003 project on it. But when I place my aspx files in design mode the aspx files don't design right. I used grid layout (not flow) and...
5
by: sean.stonehart | last post by:
I've got a menu written in Javascript I'm wanting to enable but I need for it to sit in the center of a 3 column table. The menu keeps anchoring itself to the top left of the display, which is not...
6
by: foonicate | last post by:
I apologize if I posted this to the wrong group. I am working with C code that (atm) draws a 2d polygon with an exclusion polygon in the center. There are points located throughout the polygon...
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: 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
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...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.