Announcement

#1 2006-04-10 22:00:59

Eric
Former Piwigo Team
VALENCE (FR)
2005-03-25
1768

Mod RVM 1.1.1

New (small) version of my Register Validation by Mail.

Based on an original Flipflip's idea, the 1.1.1 version allows to specify a personalyzed webmaster name in email "from" field. In previous versions, the emails was send with only the webmaster email address in this field.

Now, this address is masked with the name you have choosen. You have just to change the new $conf['Webmaster_Name'] var in ../include/config_default.inc.php file.

The complete package of 1.1.1 version is available for download in Extensions part of PWG. If you are already using the  1.1 version, see below the step-by-step process :

- File ../include/config_default.inc.php
FIND :

Code:

// history_admin : history admin visits  ?
$conf['history_admin'] = false;

AFTER ADD :

Code:

// +-----------------------------------------------------------------------+
// |                            Mod VIM / RVM                              |
// +-----------------------------------------------------------------------+

// Name of Webmaster used in RVM Mod
$conf['Webmaster_Name'] = 'The Webmaster';

Replace "The Webmaster" with any name you want.

- File ../admin/include/functions.php
FIND :

Code:

$headers = 'From: <'.$mail_webmaster.'>'."\n";

REPLACE BY :

Code:

$headers = 'From: '.$conf['Webmaster_Name'].'<'.$mail_webmaster.'>'."\n";

That's all !

Last edited by Eric (2006-04-10 22:02:03)

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact