garbled comment email? garbled comment email?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

garbled comment email?

Started by cryogenic, December 17, 2004, 01:05:57 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

cryogenic

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.

QuoteContent-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

cryogenic

well, I even tried to use smtp and it still did the same thing. Anyone else having the same problems?

Casper

Yes, it is a bit horrible.  The comment is there, but the link is broken, and the whole thing just looks bad.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

cryogenic

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?

Casper

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.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Nibbler


Casper

It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Nibbler

#7
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.

Casper

Well, its M$ outlook express, so that probably explains a lot.  But it's also the one used by most people
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Nibbler

Just tested it on outlook express 6 and it displays fine.

Can you change the line from


$mail->setHtml($msg_body, $msg_body_plaintext, './');


to


$mail->setHtml($msg_body, "$msg_body_plaintext\n", './');


in the mailer and see if that helps.

Casper

No, still the same.

OE 6.00.2900.2180 (xpspxp2.....etc)
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Tranz

#11
I checked the email in Outlook 2002 and Horde webmail and the message shows up with the hyperlinked URL and no duplicates.

Joachim Müller

tested with Outlook 2000 both over POP3 and Exchange Server.

Joachim

Casper

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. 
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Nibbler

Can you put mail@ic-gallery.com as admin email address and get one to be sent to me ?

Casper

Will go do it now.

Edit, sent to nibbler.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Nibbler

Appears incorrectly for me too, I can't see why though.

Casper

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.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Aditya Mooley

Replaced old mailer class from Richard Heyes with the new phpmailer class from phpmailer.sf.net and commited to CVS.
--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter

Joachim Müller

@Aditya: please review section "8.3 Coppermine uses code from the following free softwares" of the documentation then as well
QuoteHTML 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