Solved

e-mail retrieval

Posted on 1998-09-30
2
192 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
2 Comments
 
LVL 11

Accepted Solution

by:
mouatts earned 30 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
The viewer will learn how to dynamically set the form action using jQuery.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

911 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now