Solved

e-mail retrieval

Posted on 1998-09-30
2
194 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

808 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