| | <?php |
| |
|
| | namespace Kanboard\Helper; |
| |
|
| | use Kanboard\Core\Base; |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | class MailHelper extends Base |
| | { |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | public function filterSubject($subject) |
| | { |
| | $subject = str_ireplace('RE: ', '', $subject); |
| | $subject = str_ireplace('FW: ', '', $subject); |
| | $subject = str_ireplace('Fwd: ', '', $subject); |
| |
|
| | return $subject; |
| | } |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | public function getMailSenderAddress() |
| | { |
| | if (MAIL_CONFIGURATION) { |
| | $email = $this->configModel->get('mail_sender_address'); |
| |
|
| | if (! empty($email)) { |
| | return $email; |
| | } |
| | } |
| |
|
| | return MAIL_FROM; |
| | } |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | public function getMailTransport() |
| | { |
| | if (MAIL_CONFIGURATION) { |
| | $transport = $this->configModel->get('mail_transport'); |
| |
|
| | if (! empty($transport)) { |
| | return $transport; |
| | } |
| | } |
| |
|
| | return MAIL_TRANSPORT; |
| | } |
| | } |
| |
|