Page 1 of 1

Garbage in emails

Posted: Sat May 31, 2008 6:32 pm
by jbablittle
Hi Marco,
I just discovered Php-Residence yesterday and installed on my own server to try out.

All is working well but I do have a problem with the emails that are sent. The last line is always finishes with garbage characters. Both on the message to the client and administrator.

I am using PHP 5.2.6 and Sendmail 8.14.2 on a machine operating under FreeBSD

Here is an example --

If you received this email without requesting it, it is because someone
with ip address 192.168.0.10 has used your email address in our form. In
this case you can ignore this message.N���,j�j��zw!y�u�������ݭ�h�ם���~�����rus=

Have you heard of this problem before ?

It looks as if the base64_encode() is getting the extra charchters from some place.

In any case the program is great and I can imagine the large amount of time you must spend on it.

Jim

Posted: Sun Jun 01, 2008 11:57 am
by gonesouth
Try using an email program set up to get your mail as from an IMAP server. It works for me.

It has something to do with the UTF-8 coding, but the above is a solution. Is everything else working for you OK?

Found the problem

Posted: Sun Jun 01, 2008 4:57 pm
by jbablittle
After a lot of thinking I finally found out what the problem was.

On my server that handles the mail traffic I am using Clamav for virus checking of all mail. It is set up to put a signature on the bottom of messages that the mail has been checked for viruses.

Since the content was marked as base64_encoded the plain text added by Clamav was added as garbage at the end of the message.

I have turned off the signature and all is clean.

Thanks for your suggestion, I actually tried reading the mail that had the problem using both POP3 and IMAP and while the visualization of the garbage was a bit different it was always there. Now I know why!


All the rest works great.

Jim