diff --git a/htdocs/core/class/html.formmail.class.php b/htdocs/core/class/html.formmail.class.php
index 77f3d30c93b..3ad460a8688 100644
--- a/htdocs/core/class/html.formmail.class.php
+++ b/htdocs/core/class/html.formmail.class.php
@@ -426,7 +426,8 @@ class FormMail extends Form
if (! ($this->fromtype === 'user' && $this->fromid > 0)
&& ! ($this->fromtype === 'company')
&& ! 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
$out.= $this->fromname;