Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [TheStone] Allow users to e-mail?

Quote Reply
Re: [TheStone] Allow users to e-mail? In reply to
I keep getting an invalid action message when I try to send the e-mail. I think I'm missing the send_mail subroutine. I tried creating one:

$COMPILE{send_mail} = <<'END_OF_SUB';
sub send_mail {
#-----------------------------------------------------------------------------
#
my $self = shift;

use GT::Mail;

GT::Mail->send (
'Content-type' => 'text/html',
sendmail => $self->{glb_cfg}->{db_mail_path},
) or die "Error: $GT::Mail::error";
return ('home.html',{
header => $self->_language('HEA_HOME'),
msg => 'Email was sent.'});
}
END_OF_SUB





Based on your previous examples, but it doesn't seem to work. Also, how to I auto populate the e-mail form based on the record information? Each record has it's own "Email this Record" link. Thanks
Reena
Subject Author Views Date
Thread Allow users to e-mail? Suomi 9032 Nov 12, 2001, 1:23 PM
Post Re: [Hank] Allow users to e-mail?
ktt 8841 Nov 13, 2001, 12:48 PM
Thread Re: [Hank] Allow users to e-mail?
604 8869 Nov 13, 2001, 1:32 PM
Post Re: [TheStone] Allow users to e-mail?
Suomi 8837 Nov 14, 2001, 6:40 AM
Post Re: [TheStone] Allow users to e-mail?
Suomi 8824 Nov 14, 2001, 7:58 AM
Thread Re: [TheStone] Allow users to e-mail?
Suomi 8889 Nov 14, 2001, 10:19 AM
Post Re: [Hank] Allow users to e-mail?
Suomi 8771 Nov 15, 2001, 8:59 PM
Thread Re: [TheStone] Allow users to e-mail?
Reena0330 8622 Sep 6, 2002, 3:58 PM
Thread Re: [Reena0330] Allow users to e-mail?
604 8623 Sep 6, 2002, 4:08 PM
Thread Re: [TheStone] Allow users to e-mail?
Reena0330 8621 Sep 6, 2002, 4:36 PM
Thread Re: [Reena0330] Allow users to e-mail?
604 8609 Sep 6, 2002, 4:55 PM
Post Re: [TheStone] Allow users to e-mail?
Reena0330 8601 Sep 7, 2002, 11:57 AM
Thread Re: [TheStone] Allow users to e-mail?
Reena0330 8568 Sep 12, 2002, 11:13 AM
Thread Re: [Reena0330] Allow users to e-mail?
Reena0330 8567 Sep 12, 2002, 5:59 PM
Post Re: [Reena0330] Allow users to e-mail?
Reena0330 8551 Sep 13, 2002, 4:25 PM