diff --git a/htdocs/admin/mails.php b/htdocs/admin/mails.php
index 5e32a637c8f..88ae8964c1b 100644
--- a/htdocs/admin/mails.php
+++ b/htdocs/admin/mails.php
@@ -532,6 +532,7 @@ if ($action == 'edit')
print ''.$langs->trans("EMailsDesc")."
\n";
print "
\n";
+ print '
'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
print '
';
print '| '.$langs->trans("Parameter").' | '.$langs->trans("Value").' |
';
@@ -552,10 +553,12 @@ if ($action == 'edit')
}
print '
';
+ print '
';
if (empty($conf->global->MAIN_DISABLE_ALL_MAILS)) {
print '
';
+ print ''; // You can use div-table-responsive-no-min if you dont need reserved height for your table
print '
';
print '| '.$langs->trans("MAIN_MAIL_SENDMODE").' | |
';
@@ -663,6 +666,7 @@ if ($action == 'edit')
}
print '
';
+ print '
';
if ($conf->global->MAIN_MAIL_SENDMODE == 'mail' && empty($conf->global->MAIN_HIDE_WARNING_TO_ENCOURAGE_SMTP_SETUP)) {
print info_admin($langs->trans("WarningPHPMail").'
'.$langs->trans("WarningPHPMailA").'
'.$langs->trans("WarningPHPMailB").'
'.$langs->trans("WarningPHPMailC").'
'.$langs->trans("WarningPHPMailD"), 0, 0, 'warning');
@@ -670,11 +674,12 @@ if ($action == 'edit')
print '
';
+ print ''; // You can use div-table-responsive-no-min if you dont need reserved height for your table
print '
';
print '| '.$langs->trans("OtherOptions").' | |
';
// From
- print '| '.$langs->trans("MAIN_MAIL_EMAIL_FROM", ini_get('sendmail_from') ?ini_get('sendmail_from') : $langs->transnoentities("Undefined")).' | ';
+ print '
| '.$langs->trans("MAIN_MAIL_EMAIL_FROM", ini_get('sendmail_from') ?ini_get('sendmail_from') : $langs->transnoentities("Undefined")).' | ';
print ''.$conf->global->MAIN_MAIL_EMAIL_FROM;
if (!empty($conf->global->MAIN_MAIL_EMAIL_FROM) && !isValidEmail($conf->global->MAIN_MAIL_EMAIL_FROM)) print img_warning($langs->trans("ErrorBadEMail"));
print ' |
';
@@ -746,6 +751,7 @@ if ($action == 'edit')
print '| '.$langs->trans("MAIN_MAIL_ENABLED_USER_DEST_SELECT").' | '.yn($conf->global->MAIN_MAIL_ENABLED_USER_DEST_SELECT).' |
';
print '
';
+ print '
';
}
print dol_get_fiche_end();
diff --git a/htdocs/core/lib/admin.lib.php b/htdocs/core/lib/admin.lib.php
index f3faeda4b3a..ce9ffb31697 100644
--- a/htdocs/core/lib/admin.lib.php
+++ b/htdocs/core/lib/admin.lib.php
@@ -1870,11 +1870,6 @@ function email_admin_prepare_head()
}
}
- $head[$h][0] = DOL_URL_ROOT."/admin/mails_templates.php";
- $head[$h][1] = $langs->trans("EMailTemplates");
- $head[$h][2] = 'templates';
- $h++;
-
if (!empty($user->admin) && (empty($_SESSION['leftmenu']) || $_SESSION['leftmenu'] != 'email_templates')) {
$head[$h][0] = DOL_URL_ROOT."/admin/mails_senderprofile_list.php";
$head[$h][1] = $langs->trans("EmailSenderProfiles");
@@ -1882,6 +1877,11 @@ function email_admin_prepare_head()
$h++;
}
+ $head[$h][0] = DOL_URL_ROOT."/admin/mails_templates.php";
+ $head[$h][1] = $langs->trans("EMailTemplates");
+ $head[$h][2] = 'templates';
+ $h++;
+
complete_head_from_modules($conf, $langs, null, $head, $h, 'email_admin', 'remove');
return $head;