@@ 401-403 (lines=3) @@ | ||
398 | } |
|
399 | ||
400 | // Get the mail sender or fallback to the admin email |
|
401 | if (($from = self::config()->get('mail_sender')) && empty($from)) { |
|
402 | $from = Config::inst()->get('Email', 'admin_email'); |
|
403 | } |
|
404 | ||
405 | // Create the email with given template and reservation data |
|
406 | $email = new Email(); |
|
@@ 431-433 (lines=3) @@ | ||
428 | public function sendTickets() |
|
429 | { |
|
430 | // Get the mail sender or fallback to the admin email |
|
431 | if (($from = self::config()->get('mail_sender')) && empty($from)) { |
|
432 | $from = Config::inst()->get('Email', 'admin_email'); |
|
433 | } |
|
434 | ||
435 | // Send the tickets to the main contact |
|
436 | $email = new Email(); |
|
@@ 479-481 (lines=3) @@ | ||
476 | return true; |
|
477 | } |
|
478 | ||
479 | if (($from = self::config()->get('mail_sender')) && empty($from)) { |
|
480 | $from = Config::inst()->get('Email', 'admin_email'); |
|
481 | } |
|
482 | ||
483 | if (($to = self::config()->get('mail_receiver')) && empty($to)) { |
|
484 | $to = Config::inst()->get('Email', 'admin_email'); |
|
@@ 483-485 (lines=3) @@ | ||
480 | $from = Config::inst()->get('Email', 'admin_email'); |
|
481 | } |
|
482 | ||
483 | if (($to = self::config()->get('mail_receiver')) && empty($to)) { |
|
484 | $to = Config::inst()->get('Email', 'admin_email'); |
|
485 | } |
|
486 | ||
487 | $email = new Email(); |
|
488 | $email->setSubject(_t( |