|
@@ 782-788 (lines=7) @@
|
| 779 |
|
} |
| 780 |
|
|
| 781 |
|
// check to see if they are a dynamic reply to. eg based on a email field a user selected |
| 782 |
|
if ($recipient->SendEmailFromField()) { |
| 783 |
|
$submittedFormField = $submittedFields->find('Name', $recipient->SendEmailFromField()->Name); |
| 784 |
|
|
| 785 |
|
if ($submittedFormField && is_string($submittedFormField->Value)) { |
| 786 |
|
$email->setReplyTo($submittedFormField->Value); |
| 787 |
|
} |
| 788 |
|
} |
| 789 |
|
// check to see if they are a dynamic reciever eg based on a dropdown field a user selected |
| 790 |
|
if ($recipient->SendEmailToField()) { |
| 791 |
|
$submittedFormField = $submittedFields->find('Name', $recipient->SendEmailToField()->Name); |
|
@@ 790-796 (lines=7) @@
|
| 787 |
|
} |
| 788 |
|
} |
| 789 |
|
// check to see if they are a dynamic reciever eg based on a dropdown field a user selected |
| 790 |
|
if ($recipient->SendEmailToField()) { |
| 791 |
|
$submittedFormField = $submittedFields->find('Name', $recipient->SendEmailToField()->Name); |
| 792 |
|
|
| 793 |
|
if ($submittedFormField && is_string($submittedFormField->Value)) { |
| 794 |
|
$email->setTo($submittedFormField->Value); |
| 795 |
|
} |
| 796 |
|
} |
| 797 |
|
|
| 798 |
|
// check to see if there is a dynamic subject |
| 799 |
|
if ($recipient->SendEmailSubjectField()) { |
|
@@ 799-805 (lines=7) @@
|
| 796 |
|
} |
| 797 |
|
|
| 798 |
|
// check to see if there is a dynamic subject |
| 799 |
|
if ($recipient->SendEmailSubjectField()) { |
| 800 |
|
$submittedFormField = $submittedFields->find('Name', $recipient->SendEmailSubjectField()->Name); |
| 801 |
|
|
| 802 |
|
if ($submittedFormField && trim($submittedFormField->Value)) { |
| 803 |
|
$email->setSubject($submittedFormField->Value); |
| 804 |
|
} |
| 805 |
|
} |
| 806 |
|
|
| 807 |
|
$this->extend('updateEmail', $email, $recipient, $emailData); |
| 808 |
|
|