Hello there. I was wondering how you pass environmental variables from a web form to email. I am using SMTP mailer routine on an NT server. This is being used for DBMAN to send notification of activities (add, delete, modify) in one of our database programs. (Yes, I know I could've posted this Topic in DBMAN Discussion, but this seems to be a more general question regarding environmental variables in cgi files.)
Here is what I currently have in the default.cgi file:
$Config{'env_report'}=~s/(\s+)?\n+(\s+)?//g;
@Env_Report=split(/,/,$Config{'env_report'});
local($env_report);
foreach $env_report (@Env_Report) {
if ($ENV{$env_report}) {
msg=>"$env_report:$ENV{$env_report}\n";
}
Any suggestions would be greatly appreciated.
Regards,
#}
Here is what I currently have in the default.cgi file:
Code:
$Config{'env_report'}=~s/(\s+|\n)?,(\s+|\n)?/,/g; $Config{'env_report'}=~s/(\s+)?\n+(\s+)?//g;
@Env_Report=split(/,/,$Config{'env_report'});
local($env_report);
foreach $env_report (@Env_Report) {
if ($ENV{$env_report}) {
msg=>"$env_report:$ENV{$env_report}\n";
}
Any suggestions would be greatly appreciated.
Regards,
#}