How to send html emails to gmail with php? yahoo works not gmail

半世苍凉 提交于 2019-12-02 11:46:00
ltrivett

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:

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

Could this have anything to do with the cause?

Scrap the above - take a look at this stie: http://johndoesdesign.com/blog/2012/php/getting-your-php-html-email-to-render-in-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.

Edig

I hope this could help u

Send email using the GMail SMTP server from a PHP page

and like Lawrence said, accept your questions so ppl could answer faster and better

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!