. Need help with $message part of my code - preCharge Forums
It shows that you are unregistered. Please register with us by clicking Here
preCharge Forums


Nav Green LeftNav Right
preCharge Forums > Website Design & Development > Programming > Perl » . Need help with $message part of my code


Reply
Tcat Right
 
LinkBack Thread Tools Display Modes Tcat Right
Old 07-27-2006   #1 (permalink)
kevin
Junior Member
 
Join Date: Jun 2006
Age: 38
Posts: 24
Default . Need help with $message part of my code

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
kevin is offline   Reply With Quote


Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


footer left
All times are GMT. The time now is 10:38 PM.

DISCLAIMER: preCharge Risk Management is not responsible for any opinions, advice or comments expressed on the preCharge Community Forums.
preCharge® is a registered trademark of preCharge Risk Management | chargeback protection | Merchant Account Blog

Powered by vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC6

MPAA | Online Advertising | Mortgages | Dancemania Download | Debt Help

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49