473,385 Members | 1,521 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.

email form question

Does anyone know if it is possible to create a form on a Windows server
(front page, cold fusion ect...) that will send you the outcome and
automatically insert the users email address in the "To..." box so you won't
have to when hitting reply?

Thank you for the help!

Joann
Jul 20 '05 #1
4 1904
JM Okuzono wrote:
Does anyone know if it is possible to create a form on a Windows server
(front page, cold fusion ect...) that will send you the outcome and
automatically insert the users email address in the "To..." box so you
won't have to when hitting reply?


Its possible, but not an HTML authoring issue. How you go about it depends
on the language. In PHP its a case of using the 4th (IIRC) parameter to the
mail() function to specify a custom set of mail headers including a From
line.

--
David Dorward http://dorward.me.uk/
Jul 20 '05 #2
do*****@yahoo.com says...
Does anyone know if it is possible to create a form on a Windows server
(front page, cold fusion ect...) that will send you the outcome and
automatically insert the users email address in the "To..." box so you
won't have to when hitting reply?


Its possible, but not an HTML authoring issue. How you go about it depends
on the language. In PHP its a case of using the 4th (IIRC) parameter to the
mail() function to specify a custom set of mail headers including a From
line.


While acknowledging that this is OT for c.i.w.a.h ....

Actually, that depends on the level of "trust" your email server has in
PHP, most having anti-mail-relay prevention measures which over-ride
many header settings. More recent versions of PHP have a 5th parameter
which handles this better.

$from_addr="me@somewhere";
$params="-f".$from_addr;
mail($to, $subject, $body, $headers, $params);

Geoff M
Jul 20 '05 #3
JM Okuzono wrote:
Does anyone know if it is possible to create a form on a Windows
server (front page, cold fusion ect...) that will send you the
outcome and automatically insert the users email address in the
"To..." box so you won't have to when hitting reply?

If you mean a form that will somehow magically know the email of the
user, no, that's not possible. It would be a security risk. You can
however use IExplorer-specific workarounds.

VCard
<http://msdn.microsoft.com/library/de...op/author/dhtm
l/reference/properties/vcard_name.asp>

--
Google Blogoscoped
http://blog.outer-court.com
Jul 20 '05 #4
JM Okuzono pounced upon this pigeonhole and pronounced:
Does anyone know if it is possible to create a form on a Windows server
(front page, cold fusion ect...) that will send you the outcome and
automatically insert the users email address in the "To..." box so you won't
have to when hitting reply?


You can do that - fill in the visitor's email - on a windows server, but
it has to be a server-side process. I do this for one of my clients, using
ASP. In part, the script reads as follows, with the various parts coming
from the HTML contact form:

if lcemail<>"" then
lcemail = "<" & lcemail & ">"
else

end if

objCDO.From = lcname & lcemail
objCDO.To = "Clientname<cl*********@example.com>"
objCDO.Subject = cSubject
objCDO.TextBody = cBody
objCDO.Send

The client is trained to look for what appear to be legitimate email
addresses when he downloads the mail, and only reply if this is the case.
The HTML form has no place for the visitor to enter a TO: address, only
his/her FROM: address.

In the couple years this form has been in use, nobody has ever filled it
out without entering a valid FROM: address. Knock wood.

--
-bts
-This space intentionally left blank.
Jul 20 '05 #5

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

Similar topics

2
by: Mindful_Spirit | last post by:
I'm trying to set up a basic email feed back form like this, and was wondering about some basic configuration settings. I have used code from this website. I have it working just fine. I'm...
88
by: Mike | last post by:
Is there a way to determine what a user's default email client is? I read a post from 3 years ago that said no. I guess I'm hoping something has come along since then.
2
by: Tim Mills | last post by:
The following code asks the user to sumbit a name, email address, and some text for a quotation via a FORM. I have written a javascript function to evaluate the fields in the form and pop-up a...
1
by: mhawkins19 | last post by:
I have a form built and on the onclick event I validate all of the fields and then if the form is ok, on the submit event I run a javascript function to set a cookie and download a file from the...
2
by: Del | last post by:
I have two question on sending email messages from MS Access (Versio 2000, 2002, and 2003). I have a form with a command button to send an email message, the code behide the button is as follows;...
3
by: Harry | last post by:
Hi, Can anyone help. I have a asp.net page (c#), with two panels, both of which have asp:textboxes on. When I press the first button, the second panel shows fine. When I press the button in...
1
by: JNariss | last post by:
Hello, I finally figured out how to get my form to its database and have an email come my way. However I am now trying to set up the body of the email to include the form details. However the...
4
by: Ken D. | last post by:
I have an asp page that collects data on referrals. The user inputs the information and selects the rep to receive the referral. My data is being saved to a backend database (SQL) and the user is...
2
by: RAB | last post by:
I have a .aspx page with the following code: <% @Import Namespace="System.Web.Mail" %> <%@ page language="vb" debug="true" runat="server" %> <script runat="server"> Sub Click(sender as...
5
by: canajien | last post by:
I have a form that stores information in a table, but I also need it to send an email when a specific question, among the many, is answered with no the question is a simple drop box: <select...
1
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: 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: 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
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?
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.