Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [xfizz] email bug?

Quote Reply
Re: [xfizz] email bug? In reply to
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.
Subject Author Views Date
Thread email bug? xfizz 3540 Feb 4, 2002, 12:21 PM
Thread Re: [xfizz] email bug?
604 3394 Feb 7, 2002, 9:23 AM
Thread Re: [TheStone] email bug?
Suomi 3368 Mar 27, 2002, 6:57 AM
Thread Re: [Suomi] email bug?
604 3349 Mar 27, 2002, 9:03 AM
Post Re: [TheStone] email bug?
hoefti 3260 May 13, 2002, 7:33 AM