簡體   English   中英

如何使用外部URL在電子郵件正文中顯示網頁

[英]how to display web page in inside email body using external url

我需要在電子郵件中顯示網頁(而不是在電子郵件中發送網頁的HTML),例如iframe(在電子郵件中不起作用)。

如果我使用file_get_contents無法正常工作(顯示CSS問題)(兩者在電子郵件中均未喚醒)。

根據我的研究/知識,我沒有找到任何可能的方法,但是是否有任何破解方法,有可能實現這一目標。

請幫我。

電子郵件客戶端通常會阻止iframe / JavaScript(因為您可能已經研究發現)

可以偽造電子郵件中網頁的一件事是帶有地圖標簽的圖像。 電子郵件客戶端中對地圖標記的支持並不完美,但是您可以使其中一些使用真正的基本代碼工作。

 <!DOCTYPE html> <html> <body> <table><tr><td> <img src="http://www.emailonacid.com/images/blog_images/Emailology/2017/2017_imagemap/shapes.jpg" usemap="#image-map" width="600"> <map name="image-map"> <area target="new" alt="Square" title="Rectangle" href="https://www.google.com/#q=rectangle" coords="30,29,306,153" shape="rect"> <area target="new" alt="Triangle" title="Triangle" href="https://www.google.com/#q=triangle" coords="323,267,572,26,571,267" shape="poly"> </map> </td></tr></table> <hr> <img src="https://www.w3schools.com/tags/planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap"> <map name="planetmap"> <area shape="rect" coords="0,0,82,126" href="sun.htm" alt="Sun"> <area shape="circle" coords="90,58,3" href="mercur.htm" alt="Mercury"> <area shape="circle" coords="124,58,8" href="venus.htm" alt="Venus"> </map> </body> </html> 

我不完全確定您不能在電子郵件中加載網站,但是我相當有信心即使您這樣做也無法正常工作。

因此,如果此方法現在可以拯救您的皮膚,請嘗試制作約600像素寬的網站屏幕截圖,並將其上傳到https://www.image-map.net/或任何其他工具,然后開始進行映射:)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM