I was able to do that with a filter
add_filter('notification/carrier/email/headers', function ($headers, Email $email, Triggerable $trigger) {
if ($trigger instanceof ContactNotification) {
$tags = $trigger->getMergeTags();
$keyedTags = [];
foreach ($tags as $tag) {
$keyedTags[$tag->getSlug()] = $tag;
}
$headers[] = 'Reply-To: ' . $keyedTags['last_name']?->getValue() . ' ' . $keyedTags['first_name']?->getValue() . ' <' . $keyedTags['email']?->getValue() . '>';
}
return $headers;
}, 10, 3);
I did enable this option but I don’t have any Headers section on the Notification page. That’s why I went with a filter
-
This reply was modified 11 months, 2 weeks ago by
Tofandel.
-
This reply was modified 11 months, 2 weeks ago by
Tofandel.