|
@@ 747-753 (lines=7) @@
|
| 744 |
|
} |
| 745 |
|
|
| 746 |
|
// check to see if they are a dynamic reply to. eg based on a email field a user selected |
| 747 |
|
if ($recipient->SendEmailFromField()) { |
| 748 |
|
$submittedFormField = $submittedFields->find('Name', $recipient->SendEmailFromField()->Name); |
| 749 |
|
|
| 750 |
|
if ($submittedFormField && is_string($submittedFormField->Value)) { |
| 751 |
|
$email->setReplyTo($submittedFormField->Value); |
| 752 |
|
} |
| 753 |
|
} |
| 754 |
|
// check to see if they are a dynamic reciever eg based on a dropdown field a user selected |
| 755 |
|
if ($recipient->SendEmailToField()) { |
| 756 |
|
$submittedFormField = $submittedFields->find('Name', $recipient->SendEmailToField()->Name); |
|
@@ 755-761 (lines=7) @@
|
| 752 |
|
} |
| 753 |
|
} |
| 754 |
|
// check to see if they are a dynamic reciever eg based on a dropdown field a user selected |
| 755 |
|
if ($recipient->SendEmailToField()) { |
| 756 |
|
$submittedFormField = $submittedFields->find('Name', $recipient->SendEmailToField()->Name); |
| 757 |
|
|
| 758 |
|
if ($submittedFormField && is_string($submittedFormField->Value)) { |
| 759 |
|
$email->setTo($submittedFormField->Value); |
| 760 |
|
} |
| 761 |
|
} |
| 762 |
|
|
| 763 |
|
// check to see if there is a dynamic subject |
| 764 |
|
if ($recipient->SendEmailSubjectField()) { |
|
@@ 764-770 (lines=7) @@
|
| 761 |
|
} |
| 762 |
|
|
| 763 |
|
// check to see if there is a dynamic subject |
| 764 |
|
if ($recipient->SendEmailSubjectField()) { |
| 765 |
|
$submittedFormField = $submittedFields->find('Name', $recipient->SendEmailSubjectField()->Name); |
| 766 |
|
|
| 767 |
|
if ($submittedFormField && trim($submittedFormField->Value)) { |
| 768 |
|
$email->setSubject($submittedFormField->Value); |
| 769 |
|
} |
| 770 |
|
} |
| 771 |
|
|
| 772 |
|
$this->extend('updateEmail', $email, $recipient, $emailData); |
| 773 |
|
|