PHP 新闻通讯生成器
我制作了一个 php 时事通讯(在 CakePHP 中)生成脚本。您使用就地编辑器,它会生成一个 HTML,您可以用它来发送新闻通讯。它工作得很好,但现在我收到了时事通讯的新设计,但我遇到了一些问题。
其中最大的问题是圆角、渐变、阴影和其他字体系列(不是默认的)。所以很明显我不能再使用 HTML,因为在电子邮件正文中 <<风格>属性不允许或被忽略(至少在 GMail 中是这样),我正在考虑使用 PHP GD 生成时事通讯(我会生成许多图像 - 每个块一个图像)。
问题是它必须快速完成并且看起来不错。让一个块看起来完全像 HTML 在 GD 中将是杀手(对每种类型的块进行大量刷新和重试),并且它仍然会出现一些愚蠢的字体显示问题。
我需要某种解决方案。我想制作一个脚本来拍摄 html 的快照,但我看不到这种情况发生。
I've made a php newsletter (in CakePHP) generation script. You use an in-place editor and it generates an HTML which you use to send newsletter with. It works fine and dandy but now I've received a new design for the newsletter and I have some problems.
The biggest problems of them all are rounded corners, gradients, shadows and other font families (which aren't default). So it's pretty clear that I cannot use an HTML anymore as in the email body the < style > attribute is not allowed or is ignored (at least in GMail it's like that) and I was thinking of making the newsletter get generated using PHP GD (I would generate a number of images - for each block an image).
The problem is that it has to be done quick and to look good. To make a block look exactly like HTML would be killer in GD (a lot of refreshes and retries for each type of block) and it still would have some stupid font display issues.
I need a solution of some sort. I thought of making a script that would take a snapshot of the html but I can't see that happening.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一封在 gmail 中带有圆角的电子邮件
你只需要考虑老派。你不能使用 css3 和 html5 来发送电子邮件,但这已经存在很多年了...... ala 背景图像。
像这样的http://www.nutrocker.co.uk/corners.html
this is an email with rounded corners in gmail
you just need to think old school. you cant use css3 and html5 for email, but that has still been around for years... ala background images.
something like this http://www.nutrocker.co.uk/corners.html