Fix use of sender profiles

This commit is contained in:
Laurent Destailleur 2017-10-11 19:57:53 +02:00
parent 37272b264c
commit 0d0030cff4

View File

@ -426,7 +426,8 @@ class FormMail extends Form
if (! ($this->fromtype === 'user' && $this->fromid > 0) if (! ($this->fromtype === 'user' && $this->fromid > 0)
&& ! ($this->fromtype === 'company') && ! ($this->fromtype === 'company')
&& ! preg_match('/user_aliases/', $this->fromtype) && ! preg_match('/user_aliases/', $this->fromtype)
&& ! preg_match('/global_aliases/', $this->fromtype)) && ! preg_match('/global_aliases/', $this->fromtype)
&& ! preg_match('/senderprofile/', $this->fromtype))
{ {
// Use this->fromname and this->frommail or error if not defined // Use this->fromname and this->frommail or error if not defined
$out.= $this->fromname; $out.= $this->fromname;