|
@@ 768-774 (lines=7) @@
|
| 765 |
|
} |
| 766 |
|
|
| 767 |
|
// check to see if they are a dynamic reply to. eg based on a email field a user selected |
| 768 |
|
if ($recipient->SendEmailFromField()) { |
| 769 |
|
$submittedFormField = $submittedFields->find('Name', $recipient->SendEmailFromField()->Name); |
| 770 |
|
|
| 771 |
|
if ($submittedFormField && is_string($submittedFormField->Value)) { |
| 772 |
|
$email->setReplyTo($submittedFormField->Value); |
| 773 |
|
} |
| 774 |
|
} |
| 775 |
|
// check to see if they are a dynamic reciever eg based on a dropdown field a user selected |
| 776 |
|
if ($recipient->SendEmailToField()) { |
| 777 |
|
$submittedFormField = $submittedFields->find('Name', $recipient->SendEmailToField()->Name); |
|
@@ 776-782 (lines=7) @@
|
| 773 |
|
} |
| 774 |
|
} |
| 775 |
|
// check to see if they are a dynamic reciever eg based on a dropdown field a user selected |
| 776 |
|
if ($recipient->SendEmailToField()) { |
| 777 |
|
$submittedFormField = $submittedFields->find('Name', $recipient->SendEmailToField()->Name); |
| 778 |
|
|
| 779 |
|
if ($submittedFormField && is_string($submittedFormField->Value)) { |
| 780 |
|
$email->setTo($submittedFormField->Value); |
| 781 |
|
} |
| 782 |
|
} |
| 783 |
|
|
| 784 |
|
// check to see if there is a dynamic subject |
| 785 |
|
if ($recipient->SendEmailSubjectField()) { |
|
@@ 785-791 (lines=7) @@
|
| 782 |
|
} |
| 783 |
|
|
| 784 |
|
// check to see if there is a dynamic subject |
| 785 |
|
if ($recipient->SendEmailSubjectField()) { |
| 786 |
|
$submittedFormField = $submittedFields->find('Name', $recipient->SendEmailSubjectField()->Name); |
| 787 |
|
|
| 788 |
|
if ($submittedFormField && trim($submittedFormField->Value)) { |
| 789 |
|
$email->setSubject($submittedFormField->Value); |
| 790 |
|
} |
| 791 |
|
} |
| 792 |
|
|
| 793 |
|
$this->extend('updateEmail', $email, $recipient, $emailData); |
| 794 |
|
|