Gossamer Forum
Home : Products : DBMan SQL : Discussion :

perhaps you forgot to load "GT::Mail"?

Quote Reply
perhaps you forgot to load "GT::Mail"?
 
Can't locate object method "send" via package "GT::Mail"
(perhaps you forgot to load "GT::Mail"?) at Dbsql::Home::send_mail4 line 12.
This is the error I got.What does it mean?
I am trying to mail, with smpt.
(Admin e-mail works fine, but when I add this to home.pm

$COMPILE{send_mail4} = <<'END_OF_SUB';
sub send_mail4 { my $self = shift; use GT::Mail; GT::Mail->send (
'Content-type' => 'text/html',
sendmail => $self->{glb_cfg}->{db_mail_path},
to => 'test@test.com', #$to,
from => 'test@test.com', #$from,
subject => 'test@test.com', #$sbj,
msg => 'test' #$msg
) or die "Error: $GT::Mail::error";
return ('home.html',{
header => $self->_language('HEA_HOME'),
msg => 'Email was sent.'});
}
END_OF_SUBAbove does not work, but gives me above error ?
Subject Author Views Date
Thread perhaps you forgot to load "GT::Mail"? Suomi 2442 Mar 22, 2002, 1:50 PM
Thread Re: [Suomi] perhaps you forgot to load "GT::Mail"?
hoefti 2307 May 13, 2002, 7:26 AM
Post Re: [hoefti] perhaps you forgot to load "GT::Mail"?
Reena0330 2220 Sep 6, 2002, 4:19 PM