From d46e0ee719011746d1f75a3f928a5dce56c8b332 Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Fri, 1 Mar 2019 06:11:41 -0500 Subject: app/model/Form: Abstract email address to a config option --- app/model/Form.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/model') diff --git a/app/model/Form.php b/app/model/Form.php index 9d0b4a4..23e5613 100644 --- a/app/model/Form.php +++ b/app/model/Form.php @@ -64,8 +64,8 @@ class Form $mail->Port = $config['mail']['port']; // TCP port to connect to //Recipients - $mail->setFrom('thedroneely@gmail.com', 'Thedro Neely'); - $mail->addAddress('thedroneely@gmail.com', 'Thedro Neely'); + $mail->setFrom($config['mail']['username'], 'Thedro Neely'); + $mail->addAddress($config['mail']['username'], 'Thedro Neely'); $mail->addReplyTo($this->email, $this->name); //Content -- cgit v1.2.3