开发者

Sending generated email. Trouble with header

开发者 https://www.devze.com 2023-01-30 07:26 出处:网络
I\'m trying to send some html in a generated email that looks something like this: X-Sender: XXXX@xxxx.com

I'm trying to send some html in a generated email that looks something like this:

X-Sender: XXXX@xxxx.com
X-Receiver: XXXX@xxxx.com
MIME-Version: 1.0
From: XXXXXXX@xxxx.com
To: XXXXX@xxxx.com
Date: 9 Dec 2010 10:55:52 -0800
Subject: Test email
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

<p>Click on the link below</p><p><a href="http://www.mysite.com">Click Here</a></p>

The email sends but for some reason the link tag doesn't show up. I'm thinking it has something to do with the the content type. Any ideas? Thanks in advan开发者_JS百科ce.


You could try this Content-Type: "Content-Type: text/html; charset=ISO-8859-1\r\n"

It should allow your HTML to be handled properly.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号