支持所有郵件服務的 HTML 電子郵件生成 (HTML email generation that supports all mail services)


問題描述

支持所有郵件服務的 HTML 電子郵件生成 (HTML email generation that supports all mail services)

Is there any PHP script that can generate email templates that will support all email clients such as Yahoo,Gmail,Outlook,Hotmail etc.,? For example, it seems to be like inline styles are accepted in all mail services. So is there any way to generate inline styles for all the elements provided inside the <style>...</style> tag or something like that? I can't use any online services, since i have 1000 of email templates and which is increasing day by day. So any suggestion or ideas for this will be greatly appreciated...

‑‑‑‑‑

參考解法

方法 1:

Pommo would be very good for what you want!

Main projet: http://pommo.org/Main_Page Screen: http://www.flickr.com/photos/26392873@N00/sets/72157594430337337/show/ Download: https://sourceforge.net/projects/pommo/files/

I use it for several years, it works perfectly fine

方法 2:

I have found some great scripts for this around the web. But all are having lot of issues with them. And the following libray is almost satisfy my needs except that it is not supporting pseudo selectors. So i decided to avoid them in my CSS for email templates just for now.

And here is it,

https://github.com/tijsverkoyen/CssToInlineStyles

It is just converting all the styles into inline CSS which is working in almost all email clients.

(by StrangerJulienStranger)

參考文件

  1. HTML email generation that supports all mail services (CC BY‑SA 3.0/4.0)

#html-email #PHP






相關問題

Outlook 2007/2010 中的 Vspace (Vspace in Outlook 2007/2010)

Outlook,gmail基本問題(導致代碼) (Outlook, gmail basic issue (caused the code))

Outlook 中的 HTML 電子郵件呈現 - VML (HTML Email Render in Outlook - VML)

Адправіць пошту HTML з дапамогай NAIL? (Send HTML mail with NAIL?)

支持所有郵件服務的 HTML 電子郵件生成 (HTML email generation that supports all mail services)

如何在時事通訊的 html 單元格中均勻分佈內容? (How to evenly distribute content across an html cell for a newsletter?)

發送預先電子郵件的最佳方式 (Best way for sending advance email)

在 Outlook 上隱藏移動表格 (Hide mobile table on outlook)

html emailer改變表格的位置 (html emailer shifting changing the position of tables)

電子郵件的可滾動表(沒有 div) (Scrollable table for e-mails (without a div))

如何在電子郵件中嵌入 Web 表單 (How to embed web form in email)

如何通過電子郵件訪問建立 QuickAssist 鏈接 (How to make a QuickAssist link through email access)







留言討論