From b3157550b4321f300030ae73fbac96449d237b3a Mon Sep 17 00:00:00 2001 From: thisgun Date: Tue, 19 Jan 2021 14:16:44 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A9=94=EC=9D=BC=20=ED=95=A8=EC=88=98?= =?UTF-8?q?=EB=82=B4=20hook=20=ED=95=A8=EC=88=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/mailer.lib.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/mailer.lib.php b/lib/mailer.lib.php index 11492b335..229ed97d9 100644 --- a/lib/mailer.lib.php +++ b/lib/mailer.lib.php @@ -16,6 +16,12 @@ function mailer($fname, $fmail, $to, $subject, $content, $type=0, $file="", $cc= if ($type != 1) $content = nl2br($content); + $result = run_replace('mailer', $fname, $fmail, $to, $subject, $content, $type, $file, $cc, $bcc); + + if( isset($result['return']) ){ + return $result['return']; + } + $mail = new PHPMailer(); // defaults to using php "mail()" if (defined('G5_SMTP') && G5_SMTP) { $mail->IsSMTP(); // telling the class to use SMTP