Merge pull request #1056 from purplespider/patch-1

Stops reply-to address being set to empty, if reply-to field value is empty
This commit is contained in:
Daniel Hensby 2021-05-14 21:21:52 +01:00 committed by GitHub
commit bc5689b55a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -359,7 +359,7 @@ JS
if ($emailFrom && $emailFrom->exists()) {
$submittedFormField = $submittedFields->find('Name', $recipient->SendEmailFromField()->Name);
if ($submittedFormField && is_string($submittedFormField->Value)) {
if ($submittedFormField && $submittedFormField->Value && is_string($submittedFormField->Value)) {
$email->setReplyTo(explode(',', $submittedFormField->Value));
}
} elseif ($recipient->EmailReplyTo) {