Gossamer Forum
Home : Products : Links 2.0 : Customization :

Mailer.cgi Question

Quote Reply
Mailer.cgi Question
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
Quote Reply
Re: Mailer.cgi Question In reply to
You need to make the following changes:

Code:

ID => $fields{'ID'}
Contact_Name => $fields{'Contact Name'}
Contact_Email => $fields{'Contact Email'}


to the following:

Code:

ID => $fields{'ID'},
Contact_Name => $fields{'Contact Name'},
Contact_Email => $fields{'Contact Email'},


I will YET again edit the README file to reflect these changes....See, why I do not write Mods anymore...people cannot de-bug the most simpliest errors. Wink

Regards,

Eliot Lee