I got this script from : http://anthrotech.com/cgi/links/mods/privatemailer/
Hello,
I installed this script, and now I'm getting an error in my site_html_templates.pl.
When I put this code in site_html_templates.pl;
sub site_html_mailer_form {
# --------------------------------------------------------
# Send Mail Form
my %rec = @_;
&html_print_headers;
print &load_template ('mailer_form.html', {
ID => $fields{'ID'}
Contact_Name => $fields{'Contact Name'}
Contact_Email => $fields{'Contact Email'}
%rec,
%in,
%globals
});
}
sub site_html_mailer_failure {
# --------------------------------------------------------
# Mail Error
my %rec = @_;
my ($errormsg) = shift;
&html_print_headers;
print &load_template ('mailer_error.html', {
error => $errormsg,
email => $fields{'email'},
name => $fields{'name'},
message => $fields{'message'},
ID => $fields{'ID'}
Contact_Name => $fields{'Contact Name'}
Contact_Email => $fields{'Contact Email'}
%rec,
%in,
%globals
});
}
When I click Staggered (Auto), it gives me an error like this
Error including libraries: syntax error at /web/sites/15/jmarzo/www.jmarzo.f2s.com/cgi-bin/scripts/admin/site_html_templates.pl line 49, near "Contact_Name"
syntax error at /web/sites/15/jmarzo/www.jmarzo.f2s.com/cgi-bin/scripts/admin/site_html_templates.pl line 54, near "}"
Make sure they exist, permissions are set properly, and paths are set correctly.
Joey Marzo © 2000
JM-Online Directory
Hello,
I installed this script, and now I'm getting an error in my site_html_templates.pl.
When I put this code in site_html_templates.pl;
sub site_html_mailer_form {
# --------------------------------------------------------
# Send Mail Form
my %rec = @_;
&html_print_headers;
print &load_template ('mailer_form.html', {
ID => $fields{'ID'}
Contact_Name => $fields{'Contact Name'}
Contact_Email => $fields{'Contact Email'}
%rec,
%in,
%globals
});
}
sub site_html_mailer_failure {
# --------------------------------------------------------
# Mail Error
my %rec = @_;
my ($errormsg) = shift;
&html_print_headers;
print &load_template ('mailer_error.html', {
error => $errormsg,
email => $fields{'email'},
name => $fields{'name'},
message => $fields{'message'},
ID => $fields{'ID'}
Contact_Name => $fields{'Contact Name'}
Contact_Email => $fields{'Contact Email'}
%rec,
%in,
%globals
});
}
When I click Staggered (Auto), it gives me an error like this
Error including libraries: syntax error at /web/sites/15/jmarzo/www.jmarzo.f2s.com/cgi-bin/scripts/admin/site_html_templates.pl line 49, near "Contact_Name"
syntax error at /web/sites/15/jmarzo/www.jmarzo.f2s.com/cgi-bin/scripts/admin/site_html_templates.pl line 54, near "}"
Make sure they exist, permissions are set properly, and paths are set correctly.
Joey Marzo © 2000
JM-Online Directory