|
@@ 325-331 (lines=7) @@
|
| 322 |
|
} |
| 323 |
|
|
| 324 |
|
// check to see if they are a dynamic reply to. eg based on a email field a user selected |
| 325 |
|
if ($recipient->SendEmailFromField()) { |
| 326 |
|
$submittedFormField = $submittedFields->find('Name', $recipient->SendEmailFromField()->Name); |
| 327 |
|
|
| 328 |
|
if ($submittedFormField && is_string($submittedFormField->Value)) { |
| 329 |
|
$email->setReplyTo($submittedFormField->Value); |
| 330 |
|
} |
| 331 |
|
} |
| 332 |
|
// check to see if they are a dynamic reciever eg based on a dropdown field a user selected |
| 333 |
|
if ($recipient->SendEmailToField()) { |
| 334 |
|
$submittedFormField = $submittedFields->find('Name', $recipient->SendEmailToField()->Name); |
|
@@ 333-339 (lines=7) @@
|
| 330 |
|
} |
| 331 |
|
} |
| 332 |
|
// check to see if they are a dynamic reciever eg based on a dropdown field a user selected |
| 333 |
|
if ($recipient->SendEmailToField()) { |
| 334 |
|
$submittedFormField = $submittedFields->find('Name', $recipient->SendEmailToField()->Name); |
| 335 |
|
|
| 336 |
|
if ($submittedFormField && is_string($submittedFormField->Value)) { |
| 337 |
|
$email->setTo($submittedFormField->Value); |
| 338 |
|
} |
| 339 |
|
} |
| 340 |
|
|
| 341 |
|
// check to see if there is a dynamic subject |
| 342 |
|
if ($recipient->SendEmailSubjectField()) { |
|
@@ 342-348 (lines=7) @@
|
| 339 |
|
} |
| 340 |
|
|
| 341 |
|
// check to see if there is a dynamic subject |
| 342 |
|
if ($recipient->SendEmailSubjectField()) { |
| 343 |
|
$submittedFormField = $submittedFields->find('Name', $recipient->SendEmailSubjectField()->Name); |
| 344 |
|
|
| 345 |
|
if ($submittedFormField && trim($submittedFormField->Value)) { |
| 346 |
|
$email->setSubject($submittedFormField->Value); |
| 347 |
|
} |
| 348 |
|
} |
| 349 |
|
|
| 350 |
|
$this->extend('updateEmail', $email, $recipient, $emailData); |
| 351 |
|
|