简体   繁体   English

在浏览器中预/查看HTML电子邮件,就像使用Outlook一样

[英]Pre/View a HTML Email in a browser as if it was Outlook

Looking a project where you have a designed email in HTML but using your favourite browser you want to see what the email will look like as if it was being viewed in Outlook, GMail, Apple Mail, Hotmail, etc.... 查找一个项目,在该项目中您具有使用HTML设计的电子邮件,但是使用您喜欢的浏览器,您想要查看电子邮件的外观,就像在Outlook,GMail,Apple Mail,Hotmail等中查看该电子邮件一样。

This is where the question becomes two parts. 这是问题变成两个部分的地方。

You know in Chrome you can preview a page by selecting a device? 您知道在Chrome浏览器中可以通过选择设备来预览页面吗? As the designer of the email template it would be nice if you could do the same in Chrome or Firework and with an extension do that. 作为电子邮件模板的设计者,如果您可以在Chrome或Firework中进行相同的操作,并使用扩展程序来做到这一点,那就太好了。 Does anyone know of such a plugin/extension. 有谁知道这样的插件/扩展。

Now back to the main question. 现在回到主要问题。

What I'm trying to do is take a HTML Email and preview in a browser as if it was being viewed by a email client. 我想做的是获取HTML电子邮件并在浏览器中预览,就像电子邮件客户端正在查看它一样。 Does anyone know of either a PHP library or (preferred) a JavaScript or jQuery library that in essence changes the tags & css to give you an idea of what the email would look like as if is what MS Outlook for example. 有谁知道一个PHP库或(首选)一个JavaScript或jQuery库,从本质上来说,它们会更改标签和CSS,以使您了解电子邮件的外观,例如MS Outlook。

I know there are a lot of sites out there that offer this feature as part of their preview email feature in email marketing, etc. 我知道有很多网站在电子邮件营销等中提供此功能,作为其预览电子邮件功能的一部分。

However I'm trying to build this feature into a project that can't use those sites. 但是,我正在尝试将此功能构建到无法使用这些站点的项目中。

Any ideas?? 有任何想法吗??

You cannot easily mimic any of the email client's preprocessors. 您不能轻易模仿任何电子邮件客户端的预处理器。 These are proprietary and used for more than just checking the HTML prior to rendering. 这些是专有的,不仅仅用于在渲染之前检查HTML。 It is also a large part of what keeps emails safe. 这也是确保电子邮件安全的重要组成部分。 These would not be shared else there would be many dubious characters that would use this information for ill will. 这些将不会共享,否则会有许多可疑人物会出于恶意将这些信息使用。

The alternative (that is used by most testing sites now) is a large task. 替代方案(现在大多数测试站点都在使用)是一项艰巨的任务。 Basically you would need to create an account on each email client you want to test on and then have a device that is able to pull that live, each time you wanted to test it, and screen shot and send to whatever location you want them collected at. 基本上,您将需要在要测试的每个电子邮件客户端上创建一个帐户,然后拥有一台能够实时运行该设备的设备,每次您要对其进行测试,然后将其截屏并发送到想要收集它们的任何位置在。

You would need not just each email client, but also the browsers that people view their webmail clients on. 您不仅需要每个电子邮件客户端,还需要人们在其上查看其Webmail客户端的浏览器。 You are likely looking at over 40+ different instances per test, and that is still not comprehensive (leaves out the variance of the many different Android mail choices). 您可能会在每个测试中查看40多种不同的实例,但这仍然不全面(排除了许多不同的Android邮件选择的差异)。

Each email client uses it's own preprocessor and many different rendering engines as there is no standard for email like there is for web. 每个电子邮件客户端都使用自己的预处理器和许多不同的呈现引擎,因为没有像Web那样的电子邮件标准。

Unless you are looking to create this as a business, it is much more effective and efficient to purchase an account at Litmus or Email on Acid or something similar than to build your own. 除非您希望将其创建为公司,否则在Litmus或Email on Acid或类似网站上购买帐户比建立自己的帐户要有效得多。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 Javascript 在 Microsoft Outlook 中创建 HTML 电子邮件 - Use Javascript to create an HTML email in Microsoft Outlook 使用javascript从HTML发送电子邮件而没有默认Outlook - sending email from html using javascript without default outlook 使用HTML / Javascript打开Outlook并预设电子邮件,主题和正文 - Open Outlook and preset email, subject and body using HTML/Javascript 用IE网站上的html body打开outlook中的新电子邮件 - Open new email in outlook with html body from IE web site 是否可以在 Outlook 插件中向电子邮件的 HTML 正文添加交互性? - Is it possible to add interactivity to the HTML body of the email in an Outlook Addin? Outlook.com App-如何使用预先填充的HTML正文创建事件 - Outlook.com App - How to create event with HTML body pre-populated 是否有 HTML5 方式使用先前在另一个电子邮件表单字段中输入的值预填充电子邮件表单字段? - Is there a HTML5 way of pre-filling an email form field with a value previously entered in another email form field? 我需要通过单击任何带有附件的浏览器的按钮来打开Outlook电子邮件窗口 - I need to open an Outlook email window from the button click on any browser with attachment 对HTML文件的更改不会影响浏览器中的视图 - Changes to HTML files are not affecting the view in the Browser 使用Outlook通过电子邮件发送临时文件 - Email temporary file with Outlook
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM