converting to new mail queue api

This commit is contained in:
JT Smith 2006-03-21 03:36:44 +00:00
parent 7c71d93c1e
commit 47afbb0138
6 changed files with 13 additions and 13 deletions

View file

@ -94,7 +94,7 @@ sub execute {
$self->session->user({user=>$user});
my $message = $self->get("message");
WebGUI::Macro::process(\$message);
my $mail = WebGUI::Mail::Send->new($self->session, {
my $mail = WebGUI::Mail::Send->create($self->session, {
to=>$self->get("to"),
subject=>$self->get("subject")
});

View file

@ -125,7 +125,7 @@ sub execute {
$message .= "UNPROCESSED PAYMENTS:\n-----------------------------\n".join("\n", @unprocessed)."\n\n\n";
$message .= "FATAL ERRORS:\n-----------------------------\n".join("\n",@fatal)."\n\n\n";
$message .= "SUCCESFUL PAYMENTS:\n-----------------------------\n".join("\n", @ok)."\n\n\n";
my $mail = WebGUI::Mail::Send->new($self->session, {
my $mail = WebGUI::Mail::Send->create($self->session, {
to=>$self->session->setting->get("commerceSendDailyReportTo"),
subject=>'Daily recurring payments report'
});