?
Solved

e-mail retrieval

Posted on 1998-09-30
2
Medium Priority
?
198 Views
Last Modified: 2013-12-25
I need to add an automatic e-mail address retrieval to a current script.  Does anyone know how to do that?  Let me know if you need the script or if the code can just be added.  The script reads in from a form and automatically mails results to someone.  The client would like to have the users e-mail address "without" another box added to the form.
0
Comment
Question by:craigs052998
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 11

Accepted Solution

by:
mouatts earned 90 total points
ID: 1828891
Firstly you can use the mailto within the action attribute of the form tag. This will mean that when the user presses the submit button the contents of the form will be emailed to the receipient listed in the tag.

The user will get a prompt that allows them to prevent he email being sent or allows it to go.

If you actually want to avoid the mechanism and send the email from your cgi then you will need to add a new field for the user to enter their email address if you want the sender information.
There is no way around either of these mechanisms which have purposefully been put in place as a security hobble.

If you are prepared to ignore the sender address and wish it to be emailed from your cgi then the script depends on the type of email server that you will be using. Typically you format the email into a temporary file and then issue a system command such as mail,xmail,sendmail, or blat passing the file as a parameter. If you are using MAPI then you wilkl need to open a mapi session the instruct it to send the file.
0
 

Author Comment

by:craigs052998
ID: 1828892
thanks
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question