Flourish PHP Unframework
This is an archived copy of the forum for reference purposes

fEmail makeQuotedPrintable bug?

posted by ihumanable 9 years ago

I'm using fEmail to send out some html email messages, it appears that somewhere in the makeQuotedPrintable function a wrapped line ended with a period character '.' and that character was subsequently removed from the email body.

The process that sends this email also dumps the raw html into a file to provide a browser fallback, I'll provide a link to the markup that when sent as the HTML message causes an error.

http://faveroo.com/production/resources/columbus/email/dded073d34a043de66009980186921f2.html

Please disregard the content of the email, I'm not trying to spam the forum just trying to get some technical help.

When this markup is encoded as the html body of the message the link for the "Go get it!" button is altered from "http://faveroo.com/columbus/..." to "http://faveroocom/columbus/..."

The script also sends the same email out but with some extra information at the beginning, this version of the email works fine, because the "." character doesn't align with the line width anymore.

Do you have a copy of the content that failed? I checked out the linked HTML, but the . seemed to come through fine. I also tried to add a . at the end, but it fEmail seemed to encode it in the same way that quoted_printable_encode() does. Also, do you have the original message source of the message where the . is missing?

I am also thinking it may be possible it is an SMTP issue. Once I have more details from you I should hopefully be able to figure it out.

posted by wbond 9 years ago

Sure, here is the section in question

#!text/html

owspan=3D"2">=0D=0A                           <img width=3D"326" height=3D"=
230" src=3D"http://faveroo.com/production/resources/columbus/images/generat=
ed/deal/6.jpg" />=0D=0A                         </td>=0D=0A           =20=
=20          </tr>=0D=0A                       <tr>=0D=0A             =20=
=20          <td>=0D=0A                           <a href=3D"http://faveroo=
com/columbus/deal/10-for-20-towards-food-6/"><img style=3D"border:none"=20=
alt=3D"Go Get It" src=3D"http://faveroo.com/production/resources/columbus/i=
mages/email/go-get-it.jpg" /></a>=0D=0A                         </td>=0D=0A=

As you can see the 5th line ends with "http://faveroo" and the next line begins with "com" somewhere in there the '.' got stripped out.

This could be sendmail's fault, I thought I would bring it up here first.

For reference, here is a dump of the raw message:

#!text/html
Return-path: <mail@faveroo.com>
Envelope-to: cron@faveroo.com
Delivery-date: Wed, 08 Sep 2010 05:09:14 -0400
Received: from [69.16.237.100] (port=44227 helo=host.umediagroup.com)
	by host.umediagroup.com with esmtpa (Exim 4.69)
	(envelope-from <mail@faveroo.com>)
	id 1OtElY-0005n0-73
	for cron@faveroo.com; Wed, 08 Sep 2010 03:08:20 -0400
Date: Wed, 8 Sep 2010 03:08:20 -0400
To: cron@faveroo.com
Subject: =?utf-8?Q?$10_for_$20_towards_food_at_The_Lost_Shepherd?=
From: "Faveroo!" <mail@faveroo.com>
Message-ID: <9eab13d45f69a4b2d5ed31b7f8268420@host.umediagroup.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="jq_KhmydauSTnV_JihHdlatlmsu_"

This message has been formatted using MIME. It does not appear that your
email client supports MIME.

--jq_KhmydauSTnV_JihHdlatlmsu_
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Please enable HTML or visit http://faveroo.com/production/resources/columbu=
s/email/dded073d34a043de66009980186921f2
--jq_KhmydauSTnV_JihHdlatlmsu_
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<table style=3D"font-family: Helvetica, Arial, sans-serif; text-align:cente=
r"><tr><td><h2 style=3D"font-size: 14px; font-weight: bold; color: #424242;=
=20text-align: center; width: 630px">Having trouble viewing this email?=20<=
a href=3D"http://faveroo.com/production/resources/columbus/email/dded073d34=
a043de66009980186921f2.html">Click here</a> to view it in a browser window.=
</h2><br /><h3 style=3D"font-size: 10px; color: #424242; text-align: center=
">Be sure to add mail@faveroo.com to your address book or safe sender list=
=20so our e-mails get to your inbox!</h3>=0D=0A                    <table=
=20cellspacing=3D"0" cellpadding=3D"0" width=3D"630" style=3D"background:=
=20#4cc6ee; border: 3px solid #0683b1; font-family: Arial, Helvetica, sans-=
serif">=0D=0A                      <tbody>=0D=0A                      =20=
=20<tr>=0D=0A                          <td colspan=3D"3">&nbsp;</td>=0D=0A=
=20                       </tr>=0D=0A                        <tr>=0D=0A=20=
=20                        <td width=3D"20">&nbsp;</td>=0D=0A         =20=
=20               <td width=3D"590" height=3D"96">=0D=0A              =20=
=20            <img width=3D"100%" src=3D"http://faveroo.com/production/res=
ources/columbus/images/email/header.jpg" />=0D=0A                     =20=
=20   </td=0D=0A                          <td width=3D"20">&nbsp;</td>=0D=
=0A                        </tr>=0D=0A                        <tr>=0D=0A=20=
=20                        <td width=3D"20">&nbsp;</td>=0D=0A         =20=
=20               <td width=3D"590">=0D=0A                            <h1=
=20style=3D"background: #1f10b2; color: #ffffff; text-align: center; font-s=
ize: 20px; font-weight: bold; padding: 5px 0px; margin: 0;">Columbus deal=
=20for September 8, 2010</h1>=0D=0A                          </td>=0D=0A=20=
=20                        <td width=3D"20">&nbsp;</td>=0D=0A         =20=
=20             </tr>=0D=0A                        <tr>=0D=0A         =20=
=20               <td width=3D"20">&nbsp;</td>=0D=0A                  =20=
=20      <td width=3D"554" style=3D"background: #ffffff; padding: 18px;">=
=0D=0A                            <table id=3D"top-section">=0D=0A    =20=
=20               <tbody>=0D=0A                       <tr>=0D=0A      =20=
=20                 <td style=3D"padding-right: 18px">=0D=0A          =20=
=20               <h2 style=3D"color: #000000; font-size: 30px; font-weight=
: bold; text-align: left">$10 for $20 towards food at The Lost Shepherd</h2=
>=0D=0A                         </td>=0D=0A                         <td=20r=
owspan=3D"2">=0D=0A                           <img width=3D"326" height=3D"=
230" src=3D"http://faveroo.com/production/resources/columbus/images/generat=
ed/deal/6.jpg" />=0D=0A                         </td>=0D=0A           =20=
=20          </tr>=0D=0A                       <tr>=0D=0A             =20=
=20          <td>=0D=0A                           <a href=3D"http://faveroo=
com/columbus/deal/10-for-20-towards-food-6/"><img style=3D"border:none"=20=
alt=3D"Go Get It" src=3D"http://faveroo.com/production/resources/columbus/i=
mages/email/go-get-it.jpg" /></a>=0D=0A                         </td>=0D=0A=
=20                      </tr>=0D=0A                     </tbody>=0D=0A=20=
=20                 </table>=0D=0A                          </td>=0D=0A=20=
=20                        <td width=3D"20">&nbsp;</td>=0D=0A         =20=
=20             </tr>=0D=0A                        <tr>=0D=0A         =20=
=20               <td width=3D"20">&nbsp;</td>=0D=0A                  =20=
=20      <td width=3D"554" style=3D"background: #ffffff; padding: 18px;">=
=0D=0A                            <table id=3D"bottom-section">=0D=0A =20=
=20                     <tbody>=0D=0A                          <tr>=0D=0A=
=20                           <td style=3D"width: 320px; padding-right:=201=
8px" valign=3D"top">=0D=0A                              <table id=3D"left-c=
ol" style=3D"text-align: left">=0D=0A                  <tbody>=0D=0A  =20=
=20                <tr>=0D=0A                      <td>=0D=0A         =20=
=20             <table style=3D"width: 300px; background:#f4f3f3; padding:=
=200px 10px">=0D=0A                        <tbody>=0D=0A              =20=
=20          <tr height=3D"40" width=3D"320" style=3D"color: #000000; font-=
weight: bold; font-size: 14px">=0D=0A                            <td>=0D=0A=
=20                             Value:&nbsp;$20=0D=0A                 =20=
=20         </td>=0D=0A                            <td>=0D=0A         =20=
=20                   &bull;=0D=0A                            </td>=0D=0A=
=20                           <td>=0D=0A                              Disco=
unt:&nbsp;$10=0D=0A                            </td>=0D=0A            =20=
=20              <td>=0D=0A                              &bull;=0D=0A =20=
=20                         </td>=0D=0A                            <td>=0D=
=0A                              Savings:&nbsp;50%=0D=0A              =20=
=20            </td>=0D=0A                          </tr>=0D=0A       =20=
=20               </tbody>=0D=0A                      </table>=0D=0A  =20=
=20                  </td>=0D=0A                    </tr>=0D=0A       =20=
=20           <tr>=0D=0A                      <td>=0D=0A              =20=
=20        <h4 style=3D"color: #2989c7; font-size: 16px; font-weight: bold;=
=20margin:0px; padding-top: 20px">THE LOST SHEPHERD</h4>=0D=0A        =20=
=20            </td>=0D=0A                    </tr>=0D=0A             =20=
=20     <tr>=0D=0A                      <td>=0D=0A                    =20=
=20  <p style=3D"color: #424242; font-size: 12px">Long before you&#039;re=
=20even thinking about lunch or dinner, the staff at The Lost Shepherd=20is=
=20meticulously preparing the menu items from scratch, daily. With today&#0=
39;s Faveroo, you&#039;ll enjoy $20 worth of food for only $10 at Powell&#0=
39;s casual American tavern. Sit back and relax on the outdoor patio or=20g=
o to cheer on the Buckeyes. It&#039;s that kind of place.</p>=0D=0A   =20=
=20                 </td>=0D=0A                    </tr>=0D=0A        =20=
=20          <tr>=0D=0A                      <td style=3D"padding-top:=2020=
px; color: #3e3e3e; font-size: 12px">=0D=0A                        <a href=
=3D"http://www.thelostshepherd.com">http://www.thelostshepherd.com</a>=0D=
=0A                      </td>=0D=0A                    </tr>=0D=0A   =20=
=20               <tr>=0D=0A                      <td style=3D"padding-top:=
=2020px; color: #38bd24; font-size: 10px; font-weight: bold">=0D=0A   =20=
=20                   LOCATIONS:=0D=0A                      </td>=0D=0A=20=
=20                  </tr>=0D=0A                    <tr>=0D=0A        =20=
=20                    <td>345 West Olentangy Street</td>=0D=0A       =20=
=20                   </tr>=0D=0A                            <tr>=0D=0A=20=
=20                            <td>Powell, Ohio 43065</td>=0D=0A      =20=
=20                    </tr>=0D=0A                            <tr>=0D=0A=20=
=20                            <td>(614) 792-5678</td>=0D=0A          =20=
=20                </tr>=0D=0A                            <tr><td>&nbsp;</t=
d></tr>=0D=0A                  </tbody>=0D=0A                </table>=0D=0A=
=20                           </td>=0D=0A                            <td=20=
valign=3D"top">=0D=0A                              <table id=3D"right-col">=
=0D=0A                   <tbody>=0D=0A                     <tr>=0D=0A =20=
=20                    <td>=0D=0A                         <img src=3D"http:=
//faveroo.com/production/resources/columbus/images/generated/business/7.jpg=
" />=0D=0A                       </td>=0D=0A                     </tr>=0D=
=0A                     <tr>=0D=0A                       <td>=0D=0A   =20=
=20                    <img src=3D"http://faveroo.com/production/resources/=
columbus/images/email/charity.jpg" />=0D=0A                       </td>=0D=
=0A                     </tr>=0D=0A                   </tbody>=0D=0A  =20=
=20             </table>=0D=0A                            </td>=0D=0A =20=
=20                       </tr>=0D=0A                        </tbody>=0D=0A=
=20                     </table>=0D=0A                          </td>=0D=0A=
=20                         <td width=3D"20">&nbsp;</td>=0D=0A        =20=
=20              </tr>=0D=0A                        <tr>=0D=0A        =20=
=20                <td width=3D"20">&nbsp;</td>=0D=0A                 =20=
=20       <td width=3D"590" style=3D"text-align:center; padding: 14px">=0D=
=0A                            <p style=3D"color: #ffffff; font-weight:=20b=
old; font-size: 12px;">You are receiving this email from <a style=3D"text-d=
ecoration: none" href=3D"http://faveroo.com/columbus">Faveroo.com</a>.=20=
=20If you do not wish to receive future e-mails, <a style=3D"text-decoratio=
n: none" href=3D"http://faveroo.com/columbus/unsubscribe/Y3JvbkBmYXZlcm9vLm=
NvbQ=3D=3D/">click here to unsubscribe</a>. Questions? Comments? <a style=
=3D"text-decoration: none" href=3D"mailto:support@faveroo.com">Contact=20us=
</a>.</p>=0D=0A                          </td>=0D=0A                  =20=
=20      <td width=3D"20">&nbsp;</td>=0D=0A                        </tr>=0D=
=0A                      </tbody>=0D=0A                    </table></td></t=
r></table>
--jq_KhmydauSTnV_JihHdlatlmsu_--
posted by ihumanable 9 years ago

Can you paste the exact original HTML that was used for the email?

Signs are pointing towards an SMTP issue. I will try to do some independent testing of lines starting with a . and SMTP servers tonight.

posted by wbond 9 years ago

Tonight I finally got some time to check out fEmail and fSMTP and I found some bugs related to lines starting with a .. fSMTP had issues on all platforms when a line started with a . and fEmail had an issue on Windows when the email started with a ..

Both of these are fixed in r903.

posted by wbond 9 years ago