Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #14190

Re: Cellpadding in HTML mail

From Arno Welzel <usenet@arnowelzel.de>
Newsgroups comp.lang.php
Subject Re: Cellpadding in HTML mail
Date 2014-08-22 16:44 +0200
Message-ID <53F7574C.2020008@arnowelzel.de> (permalink)
References <lt6t67$18td$1@adenine.netfront.net>

Show all headers | View raw


Am 2014-08-22 09:57, schrieb Bo Wísén:

> Hi,
> 
> I'm trying to send a HTML mail using the mail() function in PHP. This is 
> usually no problem. But now I'm trying to set a cellpadding value in the 
> existing table. I've tried two ways in the message text:
> 
> $text .= "<table cellpadding=\"10\">";
> or
> $text .= "table cellpadding=".chr(34)."10".chr(34).">";
> 
> Cellpadding doesn't work and in the source code the above results in 
> '<table cellpadding\=3D"10">.
> 
> What am I doing wrong?

"=3D" is the encoded version of "=" for quoted-printable encoding. Since
"=" has a special meaning in quoted-printable it has to be escaped by
using "=3D".

So - if your mail body is sent as quoted-printable, all is OK - just
make sure, the Content-Transfer-Encoding header also contains
"quoted-printable".

Also see <https://www.ietf.org/rfc/rfc2045.txt> and
<http://en.wikipedia.org/wiki/Quoted-printable>.



-- 
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
http://fahrradzukunft.de

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Cellpadding in HTML mail Bo Wísén <bowisen@telia.com> - 2014-08-22 09:57 +0200
  Re: Cellpadding in HTML mail Arno Welzel <usenet@arnowelzel.de> - 2014-08-22 16:44 +0200
  Re: Cellpadding in HTML mail Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-08-23 11:16 +0200

csiph-web