forum.coppermine-gallery.net

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: cryogenic on December 17, 2004, 01:05:57 am

Title: garbled comment email?
Post by: cryogenic on December 17, 2004, 01:05:57 am
Whenever someone leaves a comment on one of the pictures in my gallery, I get an email. However, the email comes out completely un-usable by any means. Any clue what could be causing this? Here's a copy of the email that gets sent to me.

Quote
Content-Type: multipart/alternative;
   boundary="=_f51f89eb4278e23775a8e9392913d29b"
Message-ID: <i8ua8c.n5dvb4@gallery.whatthefcuk.info>

--=_f51f89eb4278e23775a8e9392913d29b
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit


--=_f51f89eb4278e23775a8e9392913d29b
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I was all sorts of drunk there, just for the record! <--- the comment text is here
=0D Someone has posted a comment on your gallery. See it at http://gallery.=
whatthefcuk.info/displayimage.php?pos=3D-635
--=_f51f89eb4278e23775a8e9392913d29b--

The link would be at the end of the email, but it's apparently encoded in such a way that the link is unusuable. I'm using sendmail (the default config) from coppermine and have not specified an smtp server or anything of that nature. Also, the email shows up the same in all of my mail readers whether it be webmail, thunderbird, outlook, or even "snapper" on my Treo600. I just downloaded the latest files from CVS last night and it has been doing this for about a month that I can tell. I've just been too busy to actually take the time to report it. Anyone else noticing the same thing? Perhaps it's on my end and I need to fix something?

The image in question is here: http://gallery.whatthefcuk.info/displayimage.php?pos=-635  though it does it on every image I've tried it on and nothing I've done has fixed it as of yet
Title: Re: garbled comment email?
Post by: cryogenic on December 19, 2004, 11:42:51 am
well, I even tried to use smtp and it still did the same thing. Anyone else having the same problems?
Title: Re: garbled comment email?
Post by: Casper on December 19, 2004, 12:08:41 pm
Yes, it is a bit horrible.  The comment is there, but the link is broken, and the whole thing just looks bad.
Title: Re: garbled comment email?
Post by: cryogenic on December 19, 2004, 12:36:31 pm
it only just NOW shows the link in a clickable format in the newest version of mailer.php. It seems to repeat it 2-3x in the email, but at least the link isn't all jacked up and broken onto two lines now. Any idea what's causing it to do this? something wacky in mailer.php?
Title: Re: garbled comment email?
Post by: Casper on December 19, 2004, 01:42:41 pm
Doh, I must remember to update before checking.

Yes the link is now usable, and the comment is clear, but as you say, it is all repeated.
Title: Re: garbled comment email?
Post by: Nibbler on December 19, 2004, 01:48:35 pm
What do you mean by repeated ?
Title: Re: garbled comment email?
Post by: Casper on December 19, 2004, 02:52:56 pm
here
Title: Re: garbled comment email?
Post by: Nibbler on December 19, 2004, 02:57:30 pm
You are seeing both the plain text and html components of the multipart message, where you should only be seeing one  or the other depending on your client setup. What client are you using ? -mails display fine for me using thunderbird, horde and squirrelmail.
Title: Re: garbled comment email?
Post by: Casper on December 19, 2004, 03:14:15 pm
Well, its M$ outlook express, so that probably explains a lot.  But it's also the one used by most people
Title: Re: garbled comment email?
Post by: Nibbler on December 19, 2004, 03:32:53 pm
Just tested it on outlook express 6 and it displays fine.

Can you change the line from

Code: [Select]
$mail->setHtml($msg_body, $msg_body_plaintext, './');

to

Code: [Select]
$mail->setHtml($msg_body, "$msg_body_plaintext\n", './');

in the mailer and see if that helps.
Title: Re: garbled comment email?
Post by: Casper on December 19, 2004, 05:15:27 pm
No, still the same.

OE 6.00.2900.2180 (xpspxp2.....etc)
Title: Re: garbled comment email?
Post by: Tranz on December 19, 2004, 11:32:45 pm
I checked the email in Outlook 2002 and Horde webmail and the message shows up with the hyperlinked URL and no duplicates.
Title: Re: garbled comment email?
Post by: Joachim Müller on December 20, 2004, 02:06:31 am
tested with Outlook 2000 both over POP3 and Exchange Server.

Joachim
Title: Re: garbled comment email?
Post by: Casper on December 20, 2004, 08:30:15 am
OK,

I can confirm this is still happening to me, and I can also confirm it is the sending process that is causing it, not the email client.
I am seeing the same result from my site when viewed via webmail, as well as when received via email client.

But, I can also say it's not something I would worry about. 
Title: Re: garbled comment email?
Post by: Nibbler on December 20, 2004, 12:12:01 pm
Can you put mail@ic-gallery.com as admin email address and get one to be sent to me ?
Title: Re: garbled comment email?
Post by: Casper on December 20, 2004, 06:21:02 pm
Will go do it now.

Edit, sent to nibbler.
Title: Re: garbled comment email?
Post by: Nibbler on December 20, 2004, 07:08:57 pm
Appears incorrectly for me too, I can't see why though.
Title: Re: garbled comment email?
Post by: Casper on December 20, 2004, 07:31:06 pm
But at least it gives the correct link, and comment now.  Twice is better than not at all, so I won't lose any sleep over it.
Title: Re: garbled comment email?
Post by: Aditya Mooley on March 01, 2005, 08:17:34 am
Replaced old mailer class from Richard Heyes with the new phpmailer class from phpmailer.sf.net and commited to CVS.
Title: Re: garbled comment email?
Post by: Joachim Müller on March 01, 2005, 09:13:39 am
@Aditya: please review section "8.3 Coppermine uses code from the following free softwares" of the documentation then as well
Quote
HTML Mime Mail class
Author: Richard Heyes
E-mail: richard AT phpguru DOT org
URL: http://www.zend.com/codex.php?id=103&single=1
should be replaced with the credits for the new class.

Joachim
Title: Re: garbled comment email?
Post by: Aditya Mooley on March 01, 2005, 10:42:20 am
Modified and comitted to CVS.
Title: Re: garbled comment email?
Post by: Tranz on March 05, 2005, 08:53:57 pm
Could someone who experienced this issue earlier please confirm the fix. I didn't have the issue earlier.
Title: Re: garbled comment email?
Post by: Nibbler on March 05, 2005, 08:58:50 pm
It is fine now, I checked all mail functions and they are all ok.