| @@ 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() |
|
| @@ 292-294 (lines=3) @@ | ||
| 289 | 'application' => $application, |
|
| 290 | 'to' => $jobEntity->contactEmail |
|
| 291 | ); |
|
| 292 | if (array_key_exists('mails', $config) && array_key_exists('from', $config['mails']) && array_key_exists('email', $config['mails']['from'])) { |
|
| 293 | $mailData['from'] = $config['mails']['from']['email']; |
|
| 294 | } |
|
| 295 | $this->mailer('Applications/CarbonCopy', $mailData, true); |
|
| 296 | $repositories->remove($application); |
|
| 297 | //$this->notification()->success(/*@translate*/ 'Application has been send.'); |
|