메일 함수내 hook 함수 추가
This commit is contained in:
@ -16,6 +16,12 @@ function mailer($fname, $fmail, $to, $subject, $content, $type=0, $file="", $cc=
|
|||||||
if ($type != 1)
|
if ($type != 1)
|
||||||
$content = nl2br($content);
|
$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()"
|
$mail = new PHPMailer(); // defaults to using php "mail()"
|
||||||
if (defined('G5_SMTP') && G5_SMTP) {
|
if (defined('G5_SMTP') && G5_SMTP) {
|
||||||
$mail->IsSMTP(); // telling the class to use SMTP
|
$mail->IsSMTP(); // telling the class to use SMTP
|
||||||
|
|||||||
Reference in New Issue
Block a user