From cf62de73b5555232850fdbb802ecf36e7e81005b Mon Sep 17 00:00:00 2001 From: soufiane Date: Thu, 10 Oct 2024 15:39:29 +0200 Subject: [PATCH] wait #7128 @1:00 --- wp-content/themes/CCV/functions.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wp-content/themes/CCV/functions.php b/wp-content/themes/CCV/functions.php index eb365a41..797dbaa9 100644 --- a/wp-content/themes/CCV/functions.php +++ b/wp-content/themes/CCV/functions.php @@ -59,6 +59,12 @@ array_map(function ($file) use ($sage_error) { } }, ['helpers', 'setup', 'filters', 'admin']); +function force_host( $phpmailer ) { + $host = parse_url( get_site_url(), PHP_URL_HOST ); + $phpmailer->Sender = 'spinepro@'.$host; +} +add_action( 'phpmailer_init', 'force_host' ); + /** * Enable sage features * @link https://roots.io/acorn/ -- 2.39.5