[Solar-talk] Solar_Mail_Encoding + header added to the e-mail body
Rodrigo Moraes
rodrigo.moraes at gmail.com
Thu Apr 26 14:28:26 PDT 2007
Hi,
I'm testing Solar_Mail and found two problems.
1. First problem.
My first test e-mail contained some special chars, and "Olá!"
("Hello!" in Portuguese) was sent as "Ol=C3=A1!". I'm trying to
understand what caused this, and it seems that it is on
Solar_Mail_Message_Part::fetchContent(), when the message part is
base64 encoded using Solar_Mail_Encoding::apply().
I hacked it to just return the content instead of encoding it first
and a text message was delivered correctly, with "Olá!" sent as
"Olá!". Then I would have problem with attachments not being encoded,
but I don't attach files often so I can live with this. I don't
understand this subject very much, but maybe the text or html parts
should not be base64 encoded?
2. Second problem.
With or without my hack, all message body's were preceded by the following:
'Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Message-Id: <20070427012129.684EB4CC007 at mail.rubybr.org>
Date: Thu, 26 Apr 2007 22:21:29 -0300 (BRT)'
Obviously this should be in the header, and I don't know what added it
to the body. I'm still investigating this. When I find a way to remove
this from my messages, I can start using Solar_Mail. I just need a
simple text (sometimes with html, rarely attachments) emailer.
rodrigo
More information about the solar-talk
mailing list