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

I adapted the code from John Savidge

The following code allowed me to achieve my aim. I adapted
it from John Savidge. Thank you.

<%

If Request.QueryString("isSubmitted") = 1 Then

Dim ContactName, Email, Company, Address1, Address2, City,
County, PostCode,
Country, Tel, Fax, BusinessType,Comments

Dim objCDO

ContactName = Request.QueryString("ContactName")
Email = Request.QueryString("EmailAddress")
Company = Request.QueryString("Company")
Address1 = Request.QueryString("Address1")
Address2 = Request.QueryString("Address2")
City = Request.QueryString("City")
County = Request.QueryString("County")
PostCode = Request.QueryString("PostCode")
Country = Request.QueryString("Country")
Telephone = Request.QueryString("Telephone")
Fax = Request.QueryString("Fax")
BusinessType = Request.QueryString("BusinessType")
Comments = Request.QueryString("Comments")

Set objCDO = Server.CreateObject("CDONTS.NewMail")

objCDO.From = Trim(EmailAddress)

objCDO.To = "te**@nospam.co.uk"

objCDO.Cc = "li******@nospam.co.uk"

objCDO.Subject = "Contact From Website at " & Now & " -
Subscribe " &
EmailAddress & "Specification Update"

objCDO.Body = "<html><body>Contact from Website" _
& "<ul><li>Name: " & ContactName & "</li>" _
& "<li>Company: " & Company & "</li>" _
& "<li>Address 1: " & Address1 & "</li>" _
& "<li>Address 2: " & Address2 & "</li>" _
& "<li>City: " & City & "</li>" _
& "<li>County: " & County & "</li>" _
& "<li>Post Code: " & PostCode & "</li>" _
& "<li>Country: " & Country & "</li>" _
& "<li>Email Address: " & EmailAddress & "</li>" _
& "<li>Telephone: " & Telephone & "</li>" _
& "<li>Fax: " & Fax & "</li></ul>" _
& "<p><u>Business Type</u></p>" _
& BusinessType _
& "<p><u>Comments</u></p>" _
& Comments _
& "</body></html>"

objCDO.BodyFormat = 0

objCDO.MailFormat = 0

objCDO.Send

Set objCDO = Nothing

End If

%>
Jul 19 '05 #1
0 1171

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

Similar topics

1
by: joe | last post by:
Hi I am trying to compile a cpp ap that runs on the system tray and checks recently open files with clamav. i am getting a whole bunch of undefined erros. can i link this library to a cpp program?...
2
by: Richard | last post by:
I get this error message: Error E2235 EX3.CPP 60: Member function must be called or its address taken in function main() From these code: #include<iostream.h> class Employee {
109
by: Andrew Thompson | last post by:
It seems most people get there JS off web sites, which is entirely logical. But it is also a great pity since most of that code is of such poor quality. I was looking through the JS FAQ for any...
5
by: Brian Henry | last post by:
is there a way to make a procedure run on every page universally? like for a security check type thing.. to make sure someone has access to that page, run a security check method for each page the...
29
by: John Rivers | last post by:
Hello, What good reason there is for not allowing methods in ASPX pages I can't imagine, but here is how to get around that limitation: (START) <body MS_POSITIONING="FlowLayout"> <form...
3
by: josh.kuo | last post by:
Sorry about the subject, I can't think of a better one. I recently wrote some PHP classes that I think might be of interest to this group. Since I have been reaping the benefits of reading news...
4
by: John Pye | last post by:
Hi all I have some C code that is giving me some 'nan' values in some calculations. The C code is wrapped using SWIG to give me a Python module that I am then exercising through a unittest...
28
by: hijkl | last post by:
hey guys anything wrong with this code?? if it is then what? int *array(int n){ return new int(n); } int main(){ int *p = array(10); for( int i = 0; i < 10; i++ ) {
11
by: John | last post by:
Access 2003 After my app is finished I'd like to create an mde file. Therefore my db has to be made in the 2002-2003 format. So I've created a new mdb (default in 2000 format), I converted this...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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...

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.