mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 07:12:15 +09:00
#2243 보완: use template to generate test email
This commit is contained in:
parent
7f6f949330
commit
3fb44b2863
2 changed files with 16 additions and 3 deletions
|
|
@ -251,9 +251,10 @@ class Advanced_MailerAdminController extends Advanced_Mailer
|
|||
try
|
||||
{
|
||||
$oMail = new Rhymix\Framework\Mail();
|
||||
$oMail->setTitle('Advanced Mailer Test : ' . strtoupper($sending_method));
|
||||
$oMail->setContent('<!DOCTYPE html><html lang="ko"><head><title>Advanced Mailer Test : '.strtoupper($sending_method).'</title></head><body><p>This is a <b>test email</b> from Advanced Mailer.</p><p>Thank you for trying Advanced Mailer.</p>' .
|
||||
'<p>고급 메일 발송 모듈 <b>테스트</b> 메일입니다.</p><p>메일이 정상적으로 발송되고 있습니다.</p></body></html>');
|
||||
$oMail->setTitle('Rhymix Email Test : ' . strtoupper($sending_method));
|
||||
$template = new \Rhymix\Framework\Template($this->module_path . 'tpl', 'test_email.html');
|
||||
$template->setVars(['sending_method' => $sending_method]);
|
||||
$oMail->setContent($template->compile());
|
||||
$oMail->addTo($recipient_email, $recipient_name);
|
||||
$result = $oMail->send();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue