Path: csiph.com!usenet.pasdenom.info!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.php Subject: Re: Cellpadding in HTML mail Date: Fri, 22 Aug 2014 16:44:28 +0200 Lines: 35 Message-ID: <53F7574C.2020008@arnowelzel.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Trace: individual.net VvyROF8VI8Vi8nkRCgAE1gNwqkHxKNfEbVzPj3l24KjX9wmWzW Cancel-Lock: sha1:WLbdXBFTiRw73Qz0B0FwCLLAlFE= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: Xref: csiph.com comp.lang.php:14190 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 .= ""; > or > $text .= "table cellpadding=".chr(34)."10".chr(34).">"; > > Cellpadding doesn't work and in the source code the above results in > '
. > > 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 and . -- Arno Welzel http://arnowelzel.de http://de-rec-fahrrad.de http://fahrradzukunft.de