Skip to content
Snippets Groups Projects
Commit 14530201 authored by Hannes Riebl's avatar Hannes Riebl
Browse files

Only send relevant e-mails to list

git-svn-id: https://textgridlab.org/svn/textgrid/trunk/middleware/tgauth@13767 7c539038-3410-0410-b1ec-0f2a7bf1c452
parent c181386b
No related branches found
No related tags found
No related merge requests found
...@@ -43,13 +43,18 @@ class tgImap { ...@@ -43,13 +43,18 @@ class tgImap {
* mail($to, $subject, $body, $header); * 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['From'] = $this->sender; $headers['Reply-To'] = $this->reply;
$headers['Reply-To'] = $this->reply; $headers['Subject'] = $subject;
$headers['Subject'] = $subject; $headers['To'] = $to;
$headers['To'] = $to;
$body = wordwrap($body, 70); $body = wordwrap($body, 70);
$text = $body; $text = $body;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment