Aug 31, 2004, 12:49 PM
Staff / Moderator (733 posts)
Aug 31, 2004, 12:49 PM
Post #2 of 2
Views: 2547
Hi,
Sorry about the late reply.
You should create PRE plugin for 'signup' hook which looks like:
sub signup {
my ($home) = @_;
GT::Plugins->action(STOP);
my ($tpl, $args) = $home->signup();
require GT::Mail;
# Create and Sending
my $msg = "MESSAGE BODY HERE"
my $to = $CFG->{admin_email};
my $from = "FROM EMAIL";
my $sbj = "MESSAGE SUBJECT";
GT::Mail->send (
'Content-type' => 'text/html',
sendmail => $CFG->{db_mail_path},
to => $to,
from => $from,
subject => $sbj,
msg => $msg
) or die "Error: $GT::Mail::error";
return ($tpl, $args);
}
Hope that helps.
TheStone.
B.