It shows that you are unregistered. Please register with us by clicking Here
![]() |
|
![]() |
![]() | Register - FAQ - Today's Posts - New Posts - Support - Search | ![]() |
|
|
#1 (permalink) |
|
Junior Member
Join Date: Jun 2006
Age: 38
Posts: 24
|
I have a file upload script that sends you an email if someone uploads to your server. I need to track who the uploaded files belong to and so I have a created a field in my form named your_email. I want to be able to see their email address in the message part of the email.
Here is part of the script: sub send_mail { my ($from_email, $from_name, $to_email, $to_name, $subject, $message ) = @_; if(open(MAIL, "|$CONFIG{mailprogram} -t")) { print MAIL "From: $from_email ($from_name)\n"; print MAIL "To: $to_email ($to_name)\n"; print MAIL "Subject: $subject\n"; print MAIL "$message\n\nSubmitter's IP Address : $ENV{REMOTE_ADDR}\n"; #### print MAIL Submitter's Email Address : $your_email"; ###### close MAIL; return(1); } else { return; } } As I am not a coder (obviously), I tried what I thought would be the code to use without success. print MAIL Submitter's Email Address : $your_email"; I really would appreciate any help with this one line of code. From your help I can then add more fields if necessary. Thank you kevin |
|
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Public awareness message | n.b. | All Things General | 2 | 12-10-2007 02:29 PM |
| Message Forum | robert | preCharge Central | 3 | 08-15-2006 01:14 PM |
| Help define own error message in DBI | gabriel | Perl | 0 | 07-27-2006 05:35 PM |
| Flashing Pm Message | Rockology. | Forum Management | 2 | 12-03-2005 01:43 AM |