summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Token.pm
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-06-02 19:50:15 +0200
committerlpsolit%gmail.com <>2006-06-02 19:50:15 +0200
commit2b9f5bf80911872ca809061bd46d8fc7f64c2929 (patch)
tree29443975af530533739b1d7c442e8ebed5254430 /Bugzilla/Token.pm
parent24a02ebf00c318c3406fc4c4f38a8f93480b0548 (diff)
downloadbugzilla-2b9f5bf80911872ca809061bd46d8fc7f64c2929.tar.gz
bugzilla-2b9f5bf80911872ca809061bd46d8fc7f64c2929.tar.xz
Bug 339862: Move Bugzilla::BugMail::MessageToMTA() in a separate module - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=justdave
Diffstat (limited to 'Bugzilla/Token.pm')
-rw-r--r--Bugzilla/Token.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/Bugzilla/Token.pm b/Bugzilla/Token.pm
index cd03f9747..3cb4d6ffc 100644
--- a/Bugzilla/Token.pm
+++ b/Bugzilla/Token.pm
@@ -31,7 +31,7 @@ package Bugzilla::Token;
use Bugzilla::Config;
use Bugzilla::Error;
-use Bugzilla::BugMail;
+use Bugzilla::Mailer;
use Bugzilla::Util;
use Date::Format;
@@ -76,7 +76,7 @@ sub IssueEmailChangeToken {
$template->process("account/email/change-old.txt.tmpl", $vars, \$message)
|| ThrowTemplateError($template->error());
- Bugzilla::BugMail::MessageToMTA($message);
+ MessageToMTA($message);
$vars->{'token'} = $newtoken;
$vars->{'emailaddress'} = $new_email . Param('emailsuffix');
@@ -85,7 +85,7 @@ sub IssueEmailChangeToken {
$template->process("account/email/change-new.txt.tmpl", $vars, \$message)
|| ThrowTemplateError($template->error());
- Bugzilla::BugMail::MessageToMTA($message);
+ MessageToMTA($message);
}
# Generates a random token, adds it to the tokens table, and sends it
@@ -125,7 +125,7 @@ sub IssuePasswordToken {
$vars, \$message)
|| ThrowTemplateError($template->error());
- Bugzilla::BugMail::MessageToMTA($message);
+ MessageToMTA($message);
}
sub IssueSessionToken {
@@ -213,7 +213,7 @@ sub Cancel {
$template->process("account/cancel-token.txt.tmpl", $vars, \$message)
|| ThrowTemplateError($template->error());
- Bugzilla::BugMail::MessageToMTA($message);
+ MessageToMTA($message);
# Delete the token from the database.
DeleteToken($token);