0
我準備了一些編輯textareas和一些默認文本的簡報。我的時事通訊用戶可以編輯文本區域的文本,然後在點擊預覽按鈕時保存編輯的文本,在此頁面中顯示使用PHP編輯的所有文本($ _POST [])。當單擊SendNewsLetter按鈕時,會發送郵件,但沒有任何文本,因爲正在使用PHP顯示文本。有沒有其他方法可以在郵件正文中顯示動態內容。在此先感謝,請幫我解決這個問題。Newsletter Html電子郵件
下面是不在電子郵件正文中使用的php代碼。在預覽中顯示正常。
<table cellspacing="0" cellpadding="0" border="1" width="300px" height="auto" >
<tr><td><?php echo set_value('input1',$_POST['input1']); ?></td></tr>
</table>
這是我sendemail()
public function newsemail(){
$this->load->library('email');
$config['mailtype'] = 'html';
$header = $this->load->view('index/news1','',true);
$this->email->initialize($config);
$this->email->from('[email protected]', 'xyz Consulting');
$this->email->reply_to('[email protected]','xyz Consulting');
$this->email->to('[email protected]');
//$this->email->cc('[email protected]');
$this->email->bcc('[email protected]');
$this->email->subject('Newsletter');
$this->email->message($header);
$mail = $this->email->send();
where bellow ?? ... –
電子郵件腳本在哪裏,「HTML」郵件需要額外的注意(Content-Type),你這樣做了嗎? –
[它可以幫助你](http://css-tricks.com/sending-nice-html-email-with-php/)。 –