diff --git a/administrator/components/com_config/model/form/application.xml b/administrator/components/com_config/model/form/application.xml index d68509812bbcd..f6cf72704f493 100644 --- a/administrator/components/com_config/model/form/application.xml +++ b/administrator/components/com_config/model/form/application.xml @@ -459,6 +459,27 @@ showon="mailonline:1" /> + + + + setSubject($subject); $this->setBody($body); @@ -722,6 +725,10 @@ public function sendMail($from, $fromName, $recipient, $subject, $body, $mode = return false; } } + elseif ($config->get('replyto')) + { + $this->addReplyTo($config->get('replyto'), $config->get('replytoname')); + } // Add sender to replyTo only if no replyTo received $autoReplyTo = (empty($this->ReplyTo)) ? true : false;