Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

e-mail retrieval

Posted on 1998-09-30
2
Medium Priority
?
204 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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 …
Suggested Courses

610 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