473,785 Members | 2,299 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

a "ContactMe" tool for the group

I thought since I am building my site a 'Contact Me' page ... I may
has well include it in my sites scripts (I am doing this with quite a
few other tools of my site as well).

It isn't perfect yet, but it is good. Currently you have 2 options for
the way the message gets to you ... through Persits ASPEmail component
or just writing the messages (very cleanly) to a text file. ((Which by
the way, I am going to be also including a way to view and reply to
messages through a 'contact_admin. asp' backend tool)).

I like the textfile write myself because it is faster than calling a
component ... but have the email has it's obvious advantages too.

Anyway, I have this little thing running at ...

http://test.coolpier.com/

It is simply a table ... not a full webpage ... it is about
width="500" and height="400" ... so you will be able to drop the code
right into a table cell in your design.

By the way ... the code looks like this ... I have this one setup for
textfile message storage ... but I included the code (commented out)
for using Persits ASPEmail component.

It is really easy to control the subjects dropdown values as you can
see. I also included the CSS code ... so you have some control on
colors, font, text ... so you can make it match your site.

ALSO ... I have included my JSValidation.js for form validation ... it
currently checks that everything has a value ... and also that the
email address is mostly valid ((be patient with me ... I am going to
be improving MY email validation shortly))
On top of validation, There is a limiter on the # of messages that can
be sent daily.

***********
Anyway, I just would like to help out the group as much as I can ...
so use the tool and send me a message or 2 about what you may like to
see with it. If good responses ... here or through message tool ... I
will add code so people can use other popular email components.
***********

<style type="text/css">
table.cp_FormTa ble {border: 2px solid #339; background-color:
#ccf;}

.cp_FormFields, .cp_Confirmatio nMessages, .cp_FormTitle,
cp_FormFieldTit les {font-family: verdana; font-weight: bold;
font-size: 10pt;}
.cp_FormFields {border: 1px solid #000; font-weight:
normal;}
.cp_FormTitle {font-size: 12pt;}
.cp_FormFieldTi tles {}
.cp_Confirmatio nMessages {font-weight: normal;}
</style>

<%
Dim cp_ConactMe: Set cp_ConactMe = New cp_ContactMeCla ss
With cp_ConactMe
.cp_MessagesPer Day = 3

.cp_FormTitle = "Contact Me"

.cp_AddSubjectO ption("Website Comment")
.cp_AddSubjectO ption("Script Comment")
.cp_AddSubjectO ption("Thank you")
.cp_AddSubjectO ption("Would like custom script made.")
.cp_AddSubjectO ption("Other")

'// *** TEXT FILE MESSAGE ***
.cp_MessageType = "textfile"
.cp_TextPath = Server.MapPath( "/contact_message s.asp")

'// *** Persits ASPEmail Component MESSAGE ***
'.cp_MessageTyp e = "aspemail"
'.cp_YourSMTPHo st = "mail.yourdomai n.com"
'.cp_YourEmailA ddress = "bcc,yo**@email .com"
'.cp_WebsiteEma ilAddress = "we*****@yourdo main.com"
.cp_Start()
End With
Set cp_ConactMe = Nothing
%>
Brynn
www.coolpier.com

I participate in the group to help give examples of code.
I do not guarantee the effects of any code posted.
Test all code before use!
Jul 19 '05 #1
0 1185

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

Similar topics

4
13257
by: 321ConTact | last post by:
I have to find zipcodes within a given mileage range (25, 50, etc). I know it's possible to use the longitude/latitude to find this, and I have that for the zipcodes, but does anyone have a "ready made" formula? I know it has something to do with the sine/cosine, but the "signs" aren't clear enough to me (neither are the wonders). Thanks in advance for the wisdom. J
0
9647
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9489
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10100
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7509
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5396
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5528
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2893
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.