Email "From" value is screwed up Email "From" value is screwed up
 

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

Email "From" value is screwed up

Started by jo_dadday, April 28, 2006, 02:26:50 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jo_dadday

When I (the administrator) get emails notifying me of uploads or comments, the "from" value is
\"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

Joachim Müller


Amit Badkas

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 :)

lordprodigy

I have the same problem. just never reported it. curious to find out why it does that.

Nibbler

include/mailer.inc.php


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


Remove the extra quotes and see what happens.

lordprodigy

you mean from if ($sender_name == '') { $sender_name = '"' . $CONFIG['gallery_name'] . '"'; }
to if ($sender_name == '') { $sender_name = ' ' . $CONFIG['gallery_name'] . ' '; } ?

Nibbler

if ($sender_name == '') $sender_name = $CONFIG['gallery_name'];

lordprodigy


stardotstar

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...
\x\\\\_

NetWhiz

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