From a9fefd298df66d8e1408bf1512813895454bcbbe Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Thu, 21 Feb 2019 20:53:17 -0500 Subject: bootstrap/Functions: Move email setting to global config file --- bootstrap/Functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bootstrap') diff --git a/bootstrap/Functions.php b/bootstrap/Functions.php index b4f0ac0..e53fb59 100644 --- a/bootstrap/Functions.php +++ b/bootstrap/Functions.php @@ -22,8 +22,8 @@ function sendMail($name, $email, $message) $mail->Port = $config['mail']['port']; // TCP port to connect to //Recipients - $mail->setFrom('edwinmattiacci@yahoo.com', 'Edwin Mattiacci'); - $mail->addAddress('edwinmattiacci@yahoo.com', 'Edwin Mattiacci'); + $mail->setFrom($config['mail']['username'], 'Edwin Mattiacci'); + $mail->addAddress($config['mail']['username'], 'Edwin Mattiacci'); $mail->addReplyTo($email, $name); //Content -- cgit v1.2.3