Skip to content

Commit b72cd54

Browse files
committed
Added custom fields/Overrides for Reply-to field
1 parent c654918 commit b72cd54

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

helper.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,15 @@ public static function submitForm($ajax = false) {
215215
}
216216

217217
// Reply-To
218-
$reply_to = !empty($params->get('reply_to', '')) ? $params->get('reply_to') : '';
219-
$reply_to = explode(',', $reply_to);
220-
if (!empty($reply_to)) {
218+
if (!empty($params->get('reply_to', ''))) {
219+
$reply_to = $params->get('reply_to', '');
220+
$reply_to = self::renderVariables($contents, $reply_to);
221+
if (!filter_var($reply_to, FILTER_VALIDATE_EMAIL)) {
222+
$reply_to = '';
223+
}
221224
$mailer->addReplyTo($reply_to);
225+
} else {
226+
$reply_to = '';
222227
}
223228

224229
// CC

0 commit comments

Comments
 (0)