Gossamer Forum
Home : General : Perl Programming :

Environmental Variables Report Via SMTP Mailer

Quote Reply
Environmental Variables Report Via SMTP Mailer
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:

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,
#}
Quote Reply
Re: Environmental Variables Report Via SMTP Mailer In reply to
Just making sure this Thread doesn't get lost in the shuffle.

Smile

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us