Solved

e-mail retrieval

Posted on 1998-09-30
2
191 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
Comment Utility
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
Comment Utility
thanks
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction:   Welcome to my first article ever. To begin with, the reason I write this article.  I participated in a question on Experts Exchange about the start command in Windows and there were some discussion about the usage. The discussio…
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…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
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…

744 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

17 Experts available now in Live!

Get 1:1 Help Now