diff --git a/info.textgrid.middleware.tgauth.tgaccount/include/tgImap.class.php b/info.textgrid.middleware.tgauth.tgaccount/include/tgImap.class.php index a89b09524710ab0ddedb1a9588afb2f5ef253200..f904990e105212b752e04053e773e3d1ec0e66b7 100644 --- a/info.textgrid.middleware.tgauth.tgaccount/include/tgImap.class.php +++ b/info.textgrid.middleware.tgauth.tgaccount/include/tgImap.class.php @@ -43,13 +43,18 @@ class tgImap { * mail($to, $subject, $body, $header); */ - $recipients = $to . ', ' . $this->bcc; + if (strpos($subject, 'Request Received') or strpos($subject, 'Anfrage eingegangen')) { + $recipients = $to; + } + else { + $recipients = $to . ', ' . $this->bcc; + $headers['Bcc'] = $this->bcc; + } - $headers['Bcc'] = $this->bcc; - $headers['From'] = $this->sender; - $headers['Reply-To'] = $this->reply; - $headers['Subject'] = $subject; - $headers['To'] = $to; + $headers['From'] = $this->sender; + $headers['Reply-To'] = $this->reply; + $headers['Subject'] = $subject; + $headers['To'] = $to; $body = wordwrap($body, 70); $text = $body;