【发布时间】:2011-03-17 12:56:27
【问题描述】:
我想在电子邮件正文中发送一些 html,但 gmail 不使用 youtube 视频解释 iframe 标记。是因为安全违规还是其他原因?
这是我的代码:
this->load->library('email');
$config['mailtype'] = 'html';
$config['wordwrap'] = TRUE;
$this->email->initialize($config);
$this->email->from('<email>', 'Alega');
$this->email->to('<email>');
$this->email->subject('Email Test');
$this->email->message('<iframe title="YouTube video player" width="480" height="390" src="<url>" frameborder="0" allowfullscreen></iframe>');
$this->email->send();
【问题讨论】:
-
Gmail 会解析您的电子邮件中的 youtube 链接并将其嵌入。
-
出于安全原因,大多数电子邮件客户端不允许在电子邮件中使用 iframe 标记
标签: php codeigniter