mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/15322] Try to make new email setting more readable
PHPBB3-15322
This commit is contained in:
parent
9f055e1af3
commit
4e045ed767
6 changed files with 9 additions and 9 deletions
|
@ -444,7 +444,7 @@ class acp_board
|
|||
'legend1' => 'GENERAL_SETTINGS',
|
||||
'email_enable' => array('lang' => 'ENABLE_EMAIL', 'validate' => 'bool', 'type' => 'radio:enabled_disabled', 'explain' => true),
|
||||
'board_email_form' => array('lang' => 'BOARD_EMAIL_FORM', 'validate' => 'bool', 'type' => 'radio:enabled_disabled', 'explain' => true),
|
||||
'email_envelope_sender' => array('lang' => 'EMAIL_ENVELOPE_SENDER', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'email_force_sender' => array('lang' => 'EMAIL_FORCE_SENDER', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'email_package_size' => array('lang' => 'EMAIL_PACKAGE_SIZE', 'validate' => 'int:0', 'type' => 'number:0:99999', 'explain' => true),
|
||||
'board_contact' => array('lang' => 'CONTACT_EMAIL', 'validate' => 'email', 'type' => 'email:25:100', 'explain' => true),
|
||||
'board_contact_name' => array('lang' => 'CONTACT_EMAIL_NAME', 'validate' => 'string', 'type' => 'text:25:50', 'explain' => true),
|
||||
|
|
|
@ -1839,7 +1839,7 @@ function phpbb_mail($to, $subject, $msg, $headers, $eol, &$err_msg)
|
|||
// On some PHP Versions mail() *may* fail if there are newlines within the subject.
|
||||
// Newlines are used as a delimiter for lines in mail_encode() according to RFC 2045 section 6.8.
|
||||
// Because PHP can't decide what is wanted we revert back to the non-RFC-compliant way of separating by one space (Use '' as parameter to mail_encode() results in SPACE used)
|
||||
$additional_parameters = $config['email_envelope_sender'] ? '-f' . $config['board_email'] : '';
|
||||
$additional_parameters = $config['email_force_sender'] ? '-f' . $config['board_email'] : '';
|
||||
$result = mail($to, mail_encode($subject, ''), wordwrap(utf8_wordwrap($msg), 997, "\n", true), $headers, $additional_parameters);
|
||||
|
||||
$collector->uninstall();
|
||||
|
|
|
@ -337,7 +337,7 @@ class phpbb_questionnaire_phpbb_data_provider
|
|||
'edit_time' => true,
|
||||
'email_check_mx' => true,
|
||||
'email_enable' => true,
|
||||
'email_envelope_sender' => true,
|
||||
'email_force_sender' => true,
|
||||
'email_package_size' => true,
|
||||
'enable_confirm' => true,
|
||||
'enable_pm_icons' => true,
|
||||
|
|
|
@ -103,7 +103,7 @@ INSERT INTO phpbb_config (config_name, config_value) VALUES ('extension_force_un
|
|||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('delete_time', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('email_check_mx', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('email_enable', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('email_envelope_sender', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('email_force_sender', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('email_max_chunk_size', '50');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('email_package_size', '20');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('enable_confirm', '1');
|
||||
|
|
|
@ -562,8 +562,8 @@ $lang = array_merge($lang, array(
|
|||
'CONTACT_EMAIL_EXPLAIN' => 'This address will be used whenever a specific contact point is needed, e.g. spam, error output, etc. It will always be used as the <samp>From</samp> and <samp>Reply-To</samp> address in emails.',
|
||||
'CONTACT_EMAIL_NAME' => 'Contact name',
|
||||
'CONTACT_EMAIL_NAME_EXPLAIN' => 'This is the contact name that e-mail recipients will see. If you don’t want to have a contact name, leave this field empty.',
|
||||
'EMAIL_ENVELOPE_SENDER' => 'Set envelope sender address',
|
||||
'EMAIL_ENVELOPE_SENDER_EXPLAIN' => 'Setting the envelope sender address might be needed for a correct return address when sending mails on some hosts.',
|
||||
'EMAIL_FORCE_SENDER' => 'Force from email address',
|
||||
'EMAIL_FORCE_SENDER_EXPLAIN' => 'Force from email address to return email. This might be needed for a correct return address when sending mails on some hosts.<br><em><strong>Warning:</strong> Requires the user that the webserver runs as to be added as trusted user to the sendmail configuration.',
|
||||
'EMAIL_PACKAGE_SIZE' => 'Email package size',
|
||||
'EMAIL_PACKAGE_SIZE_EXPLAIN' => 'This is the number of maximum emails sent out in one package. This setting is applied to the internal message queue; set this value to 0 if you have problems with non-delivered notification emails.',
|
||||
'EMAIL_SIG' => 'Email signature',
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
namespace phpbb\db\migration\data\v32x;
|
||||
|
||||
class email_envelope_sender extends \phpbb\db\migration\migration
|
||||
class email_force_sender extends \phpbb\db\migration\migration
|
||||
{
|
||||
static public function depends_on()
|
||||
{
|
||||
|
@ -24,13 +24,13 @@ class email_envelope_sender extends \phpbb\db\migration\migration
|
|||
|
||||
public function effectively_installed()
|
||||
{
|
||||
return isset($this->config['email_envelope_sender']);
|
||||
return isset($this->config['email_force_sender']);
|
||||
}
|
||||
|
||||
public function update_data()
|
||||
{
|
||||
return array(
|
||||
array('config.add', array('email_envelope_sender', '0')),
|
||||
array('config.add', array('email_force_sender', '0')),
|
||||
array('config.remove', array('email_function_name')),
|
||||
);
|
||||
}
|
Loading…
Add table
Reference in a new issue