diff options
author | lpsolit%gmail.com <> | 2006-06-02 17:50:15 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-06-02 17:50:15 +0000 |
commit | 2b9f5bf80911872ca809061bd46d8fc7f64c2929 (patch) | |
tree | 29443975af530533739b1d7c442e8ebed5254430 /Bugzilla/Token.pm | |
parent | 24a02ebf00c318c3406fc4c4f38a8f93480b0548 (diff) | |
download | bugs-2b9f5bf80911872ca809061bd46d8fc7f64c2929.tar bugs-2b9f5bf80911872ca809061bd46d8fc7f64c2929.tar.gz bugs-2b9f5bf80911872ca809061bd46d8fc7f64c2929.tar.bz2 bugs-2b9f5bf80911872ca809061bd46d8fc7f64c2929.tar.xz bugs-2b9f5bf80911872ca809061bd46d8fc7f64c2929.zip |
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.pm | 10 |
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); |