diff --git a/ChangeLog b/ChangeLog
index 60de63f63ce..987c99c2562 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,18 +4,21 @@ English Dolibarr changelog
***** Changelog for 2.7 compared to 2.6 *****
For users:
-- New: Add an help and support center.
+- New: Add a help and support center.
- New: Can export commercial proposals.
- New: Can use a cache for xcal exports.
- New: Option for faster confirmation process with one ajax popup.
- New: Complete theme bluelagoon and rodolphe
- New: Can select third parties emails in emailing module for all
third parties with expired contract's lines.
+- New: Can add a field errors-to in emailing.
+- New: Can use inline images in emails.
- Fix: Customer code was not correct on PDF it if contains special
characters.
- Fix: Can update price even with "NPR" VAT rates.
- Fix: When product type is missing, description is not lost when adding
new product lines.
+- Fix: CC and BCC in emails was not used if using SMTPS handler.
For translators:
- Update some language files.
diff --git a/htdocs/comm/mailing/fiche.php b/htdocs/comm/mailing/fiche.php
index a11fa19dadb..e8df0ef2a77 100644
--- a/htdocs/comm/mailing/fiche.php
+++ b/htdocs/comm/mailing/fiche.php
@@ -26,6 +26,7 @@
require("./pre.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/CMailFile.class.php");
+require_once(DOL_DOCUMENT_ROOT."/lib/functions2.lib.php");
require_once(DOL_DOCUMENT_ROOT."/comm/mailing/mailing.class.php");
require_once(DOL_DOCUMENT_ROOT."/html.formother.class.php");
@@ -87,7 +88,7 @@ if ($_POST["action"] == 'confirm_clone' && $_POST['confirm'] == 'yes')
}
}
-// Action envoi mailing pour tous
+// Action send emailing for everybody
if ($_POST["action"] == 'sendallconfirmed' && $_POST['confirm'] == 'yes')
{
if (empty($conf->global->MAILING_LIMIT_SENDBYWEB))
@@ -272,7 +273,7 @@ if ($_POST["action"] == 'sendallconfirmed' && $_POST['confirm'] == 'yes')
}
}
-// Action envoi test mailing
+// Action send test emailing
if ($_POST["action"] == 'send' && ! $_POST["cancel"])
{
$mil = new Mailing($db);
@@ -320,19 +321,21 @@ if ($_POST["action"] == 'send' && ! $_POST["cancel"])
}
}
-// Action ajout mailing
+// Action add emailing
if ($_POST["action"] == 'add')
{
$message='';
$mil = new Mailing($db);
- $mil->email_from = trim($_POST["from"]);
- $mil->titre = trim($_POST["titre"]);
- $mil->sujet = trim($_POST["sujet"]);
- $mil->body = trim($_POST["body"]);
- $mil->bgcolor = trim($_POST["bgcolor"]);
- $mil->bgimage = trim($_POST["bgimage"]);
+ $mil->email_from = trim($_POST["from"]);
+ $mil->email_replyto = trim($_POST["replyto"]);
+ $mil->email_errorsto = trim($_POST["errorsto"]);
+ $mil->titre = trim($_POST["titre"]);
+ $mil->sujet = trim($_POST["sujet"]);
+ $mil->body = trim($_POST["body"]);
+ $mil->bgcolor = trim($_POST["bgcolor"]);
+ $mil->bgimage = trim($_POST["bgimage"]);
if (! $mil->titre) $message.=($message?'
':'').$langs->trans("ErrorFieldRequired",$langs->trans("MailTitle"));
if (! $mil->sujet) $message.=($message?'
':'').$langs->trans("ErrorFieldRequired",$langs->trans("MailTopic"));
@@ -351,22 +354,25 @@ if ($_POST["action"] == 'add')
$_GET["action"]="create";
}
-// Action mise a jour mailing
+// Action update emailing
if ($_POST["action"] == 'update')
{
$mil = new Mailing($db);
- $mil->id = $_POST["id"];
- $mil->email_from = $_POST["from"];
- $mil->titre = $_POST["titre"];
- $mil->sujet = $_POST["sujet"];
- $mil->body = $_POST["body"];
- $mil->bgcolor = $_POST["bgcolor"];
- $mil->bgimage = $_POST["bgimage"];
+ $mil->id = $_POST["id"];
+ $mil->email_from = trim($_POST["from"]);
+ $mil->email_replyto = trim($_POST["replyto"]);
+ $mil->email_errorsto = trim($_POST["errorsto"]);
+ $mil->titre = trim($_POST["titre"]);
+ $mil->sujet = trim($_POST["sujet"]);
+ $mil->body = trim($_POST["body"]);
+ $mil->bgcolor = trim($_POST["bgcolor"]);
+ $mil->bgimage = trim($_POST["bgimage"]);
- if ($mil->update())
+ if ($mil->update($user))
{
Header("Location: fiche.php?id=".$mil->id);
+ exit;
}
}
@@ -489,6 +495,7 @@ if ($_GET["action"] == 'create')
print '