From 394a014b635238518511e1c86ecdbdbe70593c5c Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Fri, 3 Nov 2006 07:31:59 +0000 Subject: Bug 353711: Move to Email:: modules for email sending Patch By Max Kanat-Alexander r=glob, a=myk --- Bugzilla/Config/MTA.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Bugzilla/Config') diff --git a/Bugzilla/Config/MTA.pm b/Bugzilla/Config/MTA.pm index 53340dc13..a9bc4619c 100644 --- a/Bugzilla/Config/MTA.pm +++ b/Bugzilla/Config/MTA.pm @@ -34,6 +34,7 @@ package Bugzilla::Config::MTA; use strict; use Bugzilla::Config::Common; +use Email::Send; $Bugzilla::Config::MTA::sortkey = "10"; @@ -43,10 +44,8 @@ sub get_param_list { { name => 'mail_delivery_method', type => 's', - choices => $^O =~ /MSWin32/i - ? ['smtp', 'testfile', 'sendmail', 'none'] - : ['sendmail', 'smtp', 'qmail', 'testfile', 'none'], - default => 'sendmail', + choices => [Email::Send->new()->all_mailers(), 'None'], + default => 'Sendmail', checker => \&check_mail_delivery_method }, -- cgit v1.2.3-24-g4f1b