From: soufiane Date: Thu, 10 Oct 2024 13:39:29 +0000 (+0200) Subject: wait #7128 @1:00 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=cf62de73b5555232850fdbb802ecf36e7e81005b;p=spinepro.git wait #7128 @1:00 --- 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/