diff options
author | Thedro Neely <thedroneely@gmail.com> | 2019-03-01 06:11:41 -0500 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2019-03-01 06:11:41 -0500 |
commit | d46e0ee719011746d1f75a3f928a5dce56c8b332 (patch) | |
tree | cc3c092c062e1646c75fadb1df07a288cf85a6fe | |
parent | d223cb7d573a105095abd711657bf3d728844ce5 (diff) | |
download | thedroneely.com-d46e0ee719011746d1f75a3f928a5dce56c8b332.tar.gz thedroneely.com-d46e0ee719011746d1f75a3f928a5dce56c8b332.tar.bz2 thedroneely.com-d46e0ee719011746d1f75a3f928a5dce56c8b332.zip |
app/model/Form: Abstract email address to a config option
-rw-r--r-- | app/model/Form.php | 4 |
1 files changed, 2 insertions, 2 deletions
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 |