Ok, I code patch for this.
// Step 1
In admin/settings.php file,
find:
function show_account_activation_options($setting_name, $setting_value) {
global $account_activation_optionlist;
foreach ($account_activation_optionlist as $key => $val) {
echo "<input type=\"radio\" name=\"setting_item[".$setting_name."]\" value=\"$key\"";
if ($setting_value == $key) {
echo " checked=\"checked\"";
}
echo "> ".$val."<br />";
}
}
add after:
function show_use_email_select($setting_name, $setting_value) {
global $use_send_email_optionlist;
echo "<select name=\"setting_item[".$setting_name."]\">";
foreach ($use_send_email_optionlist as $key => $val) {
echo "<option value=\"$key\"";
if ($setting_value == $key) {
echo " selected=\"selected\"";
}
echo ">".$val."</option>";
}
echo "</select>";
}
find:
show_table_separator($setting_group[4], 2, "setting_group_4");
add after:
show_setting_row("use_send_email", "show_use_email_select");
// Step 2
In lang/english/admin.php file,
find:
$setting_group[4]="Upload settings";
add after:
$setting['use_send_email'] = "Enable emails from gallery ?";
$use_send_email_optionlist = array(
"1" => "Yes",
"0" => "No"
);
// Step 3
In includes/email.php file,
find:
$this->use_smtp = ($config['use_smtp'] == 1) ? 1 : 0;
add
before :
$this->use_send_email = (isset($config['use_send_email']) && $config['use_send_email'] == 1) ? 1 : 0;
find:
function send_email() {
if ($this->use_smtp) {
return ($this->smtp_mail($this->to, $this->subject, $this->body, $this->create_header())) ? 1 : 0;
}
else {
return (mail($this->to, $this->subject, $this->body, $this->create_header())) ? 1 : 0;
}
}
replace:
function send_email() {
if ($this->use_send_email) {
if ($this->use_smtp) {
return ($this->smtp_mail($this->to, $this->subject, $this->body, $this->create_header())) ? 1 : 0;
} else {
return (mail($this->to, $this->subject, $this->body, $this->create_header())) ? 1 : 0;
}
}
}
// Step 4
In SQL Patches MOD (expert mode) -
use:
INSERT INTO `4images_settings` (setting_name, setting_value) VALUES('use_send_email', 0);
// Is work:
In ACP - > Setting page. See for:
Upload settings and set for use email in first row.