forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 ecards & email => Topic started by: jo_dadday on April 28, 2006, 02:26:50 am

Title: Email "From" value is screwed up
Post by: jo_dadday on April 28, 2006, 02:26:50 am
When I (the administrator) get emails notifying me of uploads or comments, the "from" value is
Code: [Select]
\"Gallery Name\" <email@example.com>is there any way to remove the slashes? Or even the quotation marks altogether?

Or just where in which file could i find the code so i can figure it out?

thanks,
Kelmo
Title: Re: Email "From" value is screwed up
Post by: Joachim Müller on April 28, 2006, 08:14:59 am
link?
Title: Re: Email "From" value is screwed up
Post by: Amit Badkas on April 28, 2006, 08:23:38 am
Hi,

Unable to replicate this bug on my cpg-1.4.4 installation. Please check again your 'Galley name' setting.

The code used to handle sender's name while sending mail is in 'include/mailer.inc.php' (function 'cpg_mail').

Amit :)
Title: Re: Email "From" value is screwed up
Post by: lordprodigy on May 18, 2006, 09:40:22 pm
I have the same problem. just never reported it. curious to find out why it does that.
Title: Re: Email "From" value is screwed up
Post by: Nibbler on May 18, 2006, 09:55:49 pm
include/mailer.inc.php

Code: [Select]
if ($sender_name == '') { $sender_name = '"' . $CONFIG['gallery_name'] . '"'; }

Remove the extra quotes and see what happens.
Title: Re: Email "From" value is screwed up
Post by: lordprodigy on May 19, 2006, 02:38:51 pm
you mean from
Code: [Select]
if ($sender_name == '') { $sender_name = '"' . $CONFIG['gallery_name'] . '"'; }to
Code: [Select]
if ($sender_name == '') { $sender_name = ' ' . $CONFIG['gallery_name'] . ' '; } ?
Title: Re: Email "From" value is screwed up
Post by: Nibbler on May 19, 2006, 03:14:13 pm
Code: [Select]
if ($sender_name == '') $sender_name = $CONFIG['gallery_name'];
Title: Re: Email "From" value is screwed up
Post by: lordprodigy on May 21, 2006, 03:40:27 am
thanks nibbler! it works great. :)
Title: Re: Email "From" value is screwed up
Post by: stardotstar on June 13, 2006, 02:31:37 pm
I have just reapplied this fix to my 1.4.8  board after doing it to 1.4.6 and so on...  Is this a bug or some anomoly that shouldn't be fixed in the point releases yet for some reason?  Just wondering if I have missed something here.

Will

BTW it is a fix that works well so I wonder why it has to be applied each time...
Title: Re: Email "From" value is screwed up
Post by: NetWhiz on September 13, 2006, 01:06:29 am
Thank you for this fix. As an addition, what about this:

"Riley&#39;s Photo Gallery" <daddy@rileydupont.com>

How can I get it to convert the &#39; back to a ' ?

Thank you,
NetWhiz