|
@@ 703-709 (lines=7) @@
|
| 700 |
|
} |
| 701 |
|
|
| 702 |
|
// check to see if they are a dynamic reply to. eg based on a email field a user selected |
| 703 |
|
if($recipient->SendEmailFromField()) { |
| 704 |
|
$submittedFormField = $submittedFields->find('Name', $recipient->SendEmailFromField()->Name); |
| 705 |
|
|
| 706 |
|
if($submittedFormField && is_string($submittedFormField->Value)) { |
| 707 |
|
$email->setReplyTo($submittedFormField->Value); |
| 708 |
|
} |
| 709 |
|
} |
| 710 |
|
// check to see if they are a dynamic reciever eg based on a dropdown field a user selected |
| 711 |
|
if($recipient->SendEmailToField()) { |
| 712 |
|
$submittedFormField = $submittedFields->find('Name', $recipient->SendEmailToField()->Name); |
|
@@ 711-717 (lines=7) @@
|
| 708 |
|
} |
| 709 |
|
} |
| 710 |
|
// check to see if they are a dynamic reciever eg based on a dropdown field a user selected |
| 711 |
|
if($recipient->SendEmailToField()) { |
| 712 |
|
$submittedFormField = $submittedFields->find('Name', $recipient->SendEmailToField()->Name); |
| 713 |
|
|
| 714 |
|
if($submittedFormField && is_string($submittedFormField->Value)) { |
| 715 |
|
$email->setTo($submittedFormField->Value); |
| 716 |
|
} |
| 717 |
|
} |
| 718 |
|
|
| 719 |
|
// check to see if there is a dynamic subject |
| 720 |
|
if($recipient->SendEmailSubjectField()) { |
|
@@ 720-726 (lines=7) @@
|
| 717 |
|
} |
| 718 |
|
|
| 719 |
|
// check to see if there is a dynamic subject |
| 720 |
|
if($recipient->SendEmailSubjectField()) { |
| 721 |
|
$submittedFormField = $submittedFields->find('Name', $recipient->SendEmailSubjectField()->Name); |
| 722 |
|
|
| 723 |
|
if($submittedFormField && trim($submittedFormField->Value)) { |
| 724 |
|
$email->setSubject($submittedFormField->Value); |
| 725 |
|
} |
| 726 |
|
} |
| 727 |
|
|
| 728 |
|
$this->extend('updateEmail', $email, $recipient, $emailData); |
| 729 |
|
|