[英]PHTML / HTML (with style tags) embedding in Email body (zend Apigiliy Framework) in PHP
我正在嘗試通過 Zend Apigily Framework 郵件服務中的 phtml 文件添加 Email 正文,如下所示
$oMessage = $oMailService->createHtmlMessage(
$eamil,
$this->getConfig()["mail_subject_map"]['Project/V1/mail/userInvited'],
'Project/V1/mail/inviteUserToProject',
array(some variables to pass in phtml)
);
with simple phtml PHP variables are displaying(giving output) the information but if I try to pass the HTML code with some of the inline styles then the PHP does not render variable inside of the HTML code I tried the following things in the HTML
<?= testvaidable ?>
<?PHP testvaidable ?>
<?PHP echo "testvaidable" ?>
任何形式的建議將不勝感激
謝謝
嘗試在 phtml 文件中使用內聯樣式而不是 html
我通過檢查傳遞給 PHTM/HTML 的參數解決了這個問題(參數不同,發生錯誤)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.