| @@ 290-292 (lines=3) @@ | ||
| 287 | 'application' => $application, |
|
| 288 | 'to' => $jobEntity->contactEmail |
|
| 289 | ); |
|
| 290 | if (array_key_exists('mails', $config) && array_key_exists('from', $config['mails']) && array_key_exists('email', $config['mails']['from'])) { |
|
| 291 | $mailData['from'] = $config['mails']['from']['email']; |
|
| 292 | } |
|
| 293 | $this->mailer('Applications/CarbonCopy', $mailData, true); |
|
| 294 | $repositories->remove($application); |
|
| 295 | //$this->notification()->success(/*@translate*/ 'Application has been send.'); |
|
| @@ 335-337 (lines=3) @@ | ||
| 332 | 'application' => $entityApplication, |
|
| 333 | 'to' => $mailAddress |
|
| 334 | ); |
|
| 335 | if (array_key_exists('mails', $config) && array_key_exists('from', $config['mails']) && array_key_exists('email', $config['mails']['from'])) { |
|
| 336 | $mailData['from'] = $config['mails']['from']['email']; |
|
| 337 | } |
|
| 338 | ||
| 339 | $mail = $this->mailer('Applications/CarbonCopy', $mailData, true); |
|
| 340 | $this->notification() |
|