Hey guys.
I have a script that mails an auto reply and
I would like to be able to add variables such as [name] etc. into the text file that is aent as the reply and have the script place my variables into the mail so it will be personalized. Below I have pasted a piece of the code and comented on where I am having trouble.
#############################################
open(MAIL,"|$mailprog -t");
print MAIL "To: $input{'email'}\n";
print MAIL "From: $email\n";
print MAIL "Subject: Application Notification!\n\n";
print MAIL "We have received your application!\n\n";
print MAIL " URL: $input{'url'}\n";
print MAIL " E-mail: $input{'email'}\n";
print MAIL "\n";
# What do I need to add to the following
# section to insert the variables into the
# mail so it's personalized?
if (open (REPLY,"<$reply_text"))
{ @reply_text = <REPLY>;
print MAIL "@reply_text";
close (REPLY);
close (MAIL);
}
#############################################
Any ideas?
Dave
I have a script that mails an auto reply and
I would like to be able to add variables such as [name] etc. into the text file that is aent as the reply and have the script place my variables into the mail so it will be personalized. Below I have pasted a piece of the code and comented on where I am having trouble.
#############################################
open(MAIL,"|$mailprog -t");
print MAIL "To: $input{'email'}\n";
print MAIL "From: $email\n";
print MAIL "Subject: Application Notification!\n\n";
print MAIL "We have received your application!\n\n";
print MAIL " URL: $input{'url'}\n";
print MAIL " E-mail: $input{'email'}\n";
print MAIL "\n";
# What do I need to add to the following
# section to insert the variables into the
# mail so it's personalized?
if (open (REPLY,"<$reply_text"))
{ @reply_text = <REPLY>;
print MAIL "@reply_text";
close (REPLY);
close (MAIL);
}
#############################################
Any ideas?
Dave