|
@@ 805-811 (lines=7) @@
|
| 802 |
|
} |
| 803 |
|
|
| 804 |
|
// check to see if they are a dynamic reply to. eg based on a email field a user selected |
| 805 |
|
if ($recipient->SendEmailFromField()) { |
| 806 |
|
$submittedFormField = $submittedFields->find('Name', $recipient->SendEmailFromField()->Name); |
| 807 |
|
|
| 808 |
|
if ($submittedFormField && is_string($submittedFormField->Value)) { |
| 809 |
|
$email->setReplyTo($submittedFormField->Value); |
| 810 |
|
} |
| 811 |
|
} |
| 812 |
|
// check to see if they are a dynamic reciever eg based on a dropdown field a user selected |
| 813 |
|
if ($recipient->SendEmailToField()) { |
| 814 |
|
$submittedFormField = $submittedFields->find('Name', $recipient->SendEmailToField()->Name); |
|
@@ 813-819 (lines=7) @@
|
| 810 |
|
} |
| 811 |
|
} |
| 812 |
|
// check to see if they are a dynamic reciever eg based on a dropdown field a user selected |
| 813 |
|
if ($recipient->SendEmailToField()) { |
| 814 |
|
$submittedFormField = $submittedFields->find('Name', $recipient->SendEmailToField()->Name); |
| 815 |
|
|
| 816 |
|
if ($submittedFormField && is_string($submittedFormField->Value)) { |
| 817 |
|
$email->setTo($submittedFormField->Value); |
| 818 |
|
} |
| 819 |
|
} |
| 820 |
|
|
| 821 |
|
// check to see if there is a dynamic subject |
| 822 |
|
if ($recipient->SendEmailSubjectField()) { |
|
@@ 822-828 (lines=7) @@
|
| 819 |
|
} |
| 820 |
|
|
| 821 |
|
// check to see if there is a dynamic subject |
| 822 |
|
if ($recipient->SendEmailSubjectField()) { |
| 823 |
|
$submittedFormField = $submittedFields->find('Name', $recipient->SendEmailSubjectField()->Name); |
| 824 |
|
|
| 825 |
|
if ($submittedFormField && trim($submittedFormField->Value)) { |
| 826 |
|
$email->setSubject($submittedFormField->Value); |
| 827 |
|
} |
| 828 |
|
} |
| 829 |
|
|
| 830 |
|
$this->extend('updateEmail', $email, $recipient, $emailData); |
| 831 |
|
|