如何使用php发送hmail电子邮件到gmail? yahoo不工作gmail [英] How to send html emails to gmail with php? yahoo works not gmail

查看:151
本文介绍了如何使用php发送hmail电子邮件到gmail? yahoo不工作gmail的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用PHP将邮件发送给人们一年多一年,一直工作到今天,所有发送到Gmail帐户的电子邮件都显示了html代码。我最近没有改变任何代码。它总是只是在gmail中显示html代码,而不是显示超链接和图像。

I've been using php to send html emails to people daily for over a year and it has always worked until today, all the emails sent to gmail accounts just displayed the html code. I haven't changed any code recently. It always just displays the html code now in gmail instead of showing the hyperlinks and images.

这是它显示的内容:


回复:updates@mysite.com

Reply-To: updates@mysite.com

MIME版本:1.0

MIME-Version: 1.0

Content-type:text / html; charset = UTF-8

Content-type: text/html; charset=UTF-8

X-Mailer:PHP / 5.3.2 Message-Id:
<20120426030303.E8B03A295@www1.mysite.com>日期:Wed,25 Apr 2012
20:03:03 -0700(PDT)

X-Mailer: PHP/5.3.2 Message-Id: <20120426030303.E8B03A295@www1.mysite.com> Date: Wed, 25 Apr 2012 20:03:03 -0700 (PDT)

...等。

发生了什么事?
谷歌改变了什么?

What happened? Did google change something?

推荐答案

自昨天以来,这也开始发生:25/04/2012。
我已经收到相同的电子邮件,过去几年每天都有相同的格式,昨天被抓住停止以HTML格式显示!

This has also started happening for me since yesterday: 25/04/2012. I have been receiving the same email, same format daily for the last few years - and yesterday seized to stop displaying in HTML format!

比较消息内容 - 只有不同的东西可以从以前正确显示的电子邮件中看到,这是以下认证结果之后的补充:

Comparing the message content - only thing different I can see from a previous email that displayed correctly is the addition after the authentication results of the following:


日期:Wed ,2012年4月25日17:31:23 -0700(PDT)Message-Id:
< 4f98975b.9cecd80a.7d2a.66b3SMTPIN_ADDED@mx.google.com>

Date: Wed, 25 Apr 2012 17:31:23 -0700 (PDT) Message-Id: <4f98975b.9cecd80a.7d2a.66b3SMTPIN_ADDED@mx.google.com>

这可能与原因有关吗?

废除上述内容 - 看看这一点: http://johndoesdesign.com/ blog / 2012 / php / getting-your-php-html-email-to-render-in-gmail /

Scrap the above - take a look at this stie: http://johndoesdesign.com/blog/2012/php/getting-your-php-html-email-to-render-in-gmail/

似乎原因是\r\\\
- 只使用\\\
。为什么这只是从蓝色开始发生 - 某些事情必须改变gmail的结局。我已经尝试过,并为我解决了这个问题。希望它适合你。

It appears the cause is the "\r\n" - use just "\n" instead. Why this would just start happening out of the blue - something must have changed gmail's end. I've tried this and solved the issue for me. Hope it does for you.

这篇关于如何使用php发送hmail电子邮件到gmail? yahoo不工作gmail的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆