| @@ 334-336 (lines=3) @@ | ||
| 331 | 'application' => $entityApplication, |
|
| 332 | 'to' => $mailAddress |
|
| 333 | ); |
|
| 334 | if (array_key_exists('mails', $config) && array_key_exists('from', $config['mails']) && array_key_exists('email', $config['mails']['from'])) { |
|
| 335 | $mailData['from'] = $config['mails']['from']['email']; |
|
| 336 | } |
|
| 337 | ||
| 338 | $mail = $this->mailer('Applications/CarbonCopy', $mailData, true); |
|
| 339 | $this->notification() |
|
| @@ 303-305 (lines=3) @@ | ||
| 300 | 'application' => $application, |
|
| 301 | 'to' => $jobEntity->contactEmail |
|
| 302 | ); |
|
| 303 | if (array_key_exists('mails', $config) && array_key_exists('from', $config['mails']) && array_key_exists('email', $config['mails']['from'])) { |
|
| 304 | $mailData['from'] = $config['mails']['from']['email']; |
|
| 305 | } |
|
| 306 | $this->mailer('Applications/CarbonCopy', $mailData, true); |
|
| 307 | $repositories->remove($application); |
|
| 308 | //$this->notification()->success(/*@translate*/ 'Application has been send.'); |
|