|
@@ 306-312 (lines=7) @@
|
| 303 |
|
} |
| 304 |
|
|
| 305 |
|
// check to see if they are a dynamic reply to. eg based on a email field a user selected |
| 306 |
|
if ($recipient->SendEmailFromField()) { |
| 307 |
|
$submittedFormField = $submittedFields->find('Name', $recipient->SendEmailFromField()->Name); |
| 308 |
|
|
| 309 |
|
if ($submittedFormField && is_string($submittedFormField->Value)) { |
| 310 |
|
$email->setReplyTo($submittedFormField->Value); |
| 311 |
|
} |
| 312 |
|
} |
| 313 |
|
// check to see if they are a dynamic reciever eg based on a dropdown field a user selected |
| 314 |
|
if ($recipient->SendEmailToField()) { |
| 315 |
|
$submittedFormField = $submittedFields->find('Name', $recipient->SendEmailToField()->Name); |
|
@@ 314-320 (lines=7) @@
|
| 311 |
|
} |
| 312 |
|
} |
| 313 |
|
// check to see if they are a dynamic reciever eg based on a dropdown field a user selected |
| 314 |
|
if ($recipient->SendEmailToField()) { |
| 315 |
|
$submittedFormField = $submittedFields->find('Name', $recipient->SendEmailToField()->Name); |
| 316 |
|
|
| 317 |
|
if ($submittedFormField && is_string($submittedFormField->Value)) { |
| 318 |
|
$email->setTo($submittedFormField->Value); |
| 319 |
|
} |
| 320 |
|
} |
| 321 |
|
|
| 322 |
|
// check to see if there is a dynamic subject |
| 323 |
|
if ($recipient->SendEmailSubjectField()) { |
|
@@ 323-329 (lines=7) @@
|
| 320 |
|
} |
| 321 |
|
|
| 322 |
|
// check to see if there is a dynamic subject |
| 323 |
|
if ($recipient->SendEmailSubjectField()) { |
| 324 |
|
$submittedFormField = $submittedFields->find('Name', $recipient->SendEmailSubjectField()->Name); |
| 325 |
|
|
| 326 |
|
if ($submittedFormField && trim($submittedFormField->Value)) { |
| 327 |
|
$email->setSubject($submittedFormField->Value); |
| 328 |
|
} |
| 329 |
|
} |
| 330 |
|
|
| 331 |
|
$this->extend('updateEmail', $email, $recipient, $emailData); |
| 332 |
|
|