Hi,
You can use <%variable%> in your message. I think that you should create a plugin to send email or you can use the Global template. Here is the _send_mail subroutine
sub _send_mail {
my $home = shift;
use GT::Mail;
my $msg = "User name: $home->{cgi}->{username}\n Password: $home->{cgi}->{password}";
GT::Mail->send (
sendmail => $home->{glb_cfg}->{db_mail_path},
to => $home->{cgi}->{email},
from => $home->{glb_cfg}->{db_admin_email},
subject => 'whatever',
'Content-type' => 'text/html',
msg => $msg
) or die "Error: $GT::Mail::error";
}
Cheers,
TheStone.
B.
You can use <%variable%> in your message. I think that you should create a plugin to send email or you can use the Global template. Here is the _send_mail subroutine
sub _send_mail {
my $home = shift;
use GT::Mail;
my $msg = "User name: $home->{cgi}->{username}\n Password: $home->{cgi}->{password}";
GT::Mail->send (
sendmail => $home->{glb_cfg}->{db_mail_path},
to => $home->{cgi}->{email},
from => $home->{glb_cfg}->{db_admin_email},
subject => 'whatever',
'Content-type' => 'text/html',
msg => $msg
) or die "Error: $GT::Mail::error";
}
Cheers,
TheStone.
B.