Par*_*us- 17 php email gmail subject hyperlink
有没有办法在电子邮件主题中添加链接?以下是YouTube的示例 -

在我的代码中,我正在尝试以下但仍然不能令人满意的结果.下面的代码正在发送主题,在主题中打印整个锚标签.
public function contact_us($data)
{
$from = "from@example.com";
$to = "to@example.com";
$view = 'emails/contact_us';
$subject = "Contact Us <a href='http://www.example.com'>Link</a>";
$view_data = $data;
$this->send($from,$to,$subject,$view,$view_data);
}
Run Code Online (Sandbox Code Playgroud)
Mic*_*ler 20
我很高兴你问!这是一个非常棒的新功能,也是Google支持的标准,是Schema.org计划的一部分.
在这里复制他们的示例,允许客户直接从电子邮件中查看内容!此块将直接复制到您的邮件模板中.
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Restaurant",
"name": "Google Cafe",
"action": {
"@type": "ReviewAction",
"review": {
"@type": "Review",
"reviewRating": {
"@type": "Rating",
"bestRating": "5",
"worstRating": "1"
}
},
"handler": {
"@type": "HttpActionHandler",
"url": "{{ review_url }}",
"encoding": {
"url": "http://schema.org/Encoding/UrlEncoded"
},
"method": "http://schema.org/HttpRequestMethod/POST",
"requiredProperty": {
"@type": "Property",
"name": "review.reviewRating.ratingValue"
},
"optionalProperty": {
"@type": "Property",
"name": "review.reviewBody"
}
}
}
}
</script>
Run Code Online (Sandbox Code Playgroud)
有关如何激活这些功能的文档,请访问:https://developers.google.com/gmail/actions/
| 归档时间: |
|
| 查看次数: |
4501 次 |
| 最近记录: |