diff options
author | Thedro Neely <thedroneely@gmail.com> | 2019-06-02 06:22:33 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2019-06-02 06:22:33 -0400 |
commit | 0d6a515ae209b5ab552e7cf6a83094b85ac94af5 (patch) | |
tree | 31d04d7990f8864668a72527a7b8703f146231d3 /app/model | |
parent | 2da79b1bd40903724c0439b2dc987de9b682c90f (diff) | |
download | thedroneely.com-0d6a515ae209b5ab552e7cf6a83094b85ac94af5.tar.gz thedroneely.com-0d6a515ae209b5ab552e7cf6a83094b85ac94af5.tar.bz2 thedroneely.com-0d6a515ae209b5ab552e7cf6a83094b85ac94af5.zip |
app/model/Form: Do not use reply to
Some mail servers are finicky
Diffstat (limited to 'app/model')
-rw-r--r-- | app/model/Form.php | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/app/model/Form.php b/app/model/Form.php index f3d7a15..61efb2f 100644 --- a/app/model/Form.php +++ b/app/model/Form.php @@ -41,24 +41,24 @@ class Form try { //Server settings - $mail->isSMTP(); // Set mailer to use SMTP - $mail->Host = $config['mail']['host']; // Specify main and backup SMTP servers - $mail->SMTPAuth = true; // Enable SMTP authentication - $mail->Username = $config['mail']['username']; // SMTP username - $mail->Password = $config['mail']['password']; // SMTP password - $mail->SMTPSecure = 'ssl'; // Enable TLS encryption, `ssl` also accepted - $mail->Port = $config['mail']['port']; // TCP port to connect to + //$mail->SMTPDebug = 2; + $mail->isSMTP(); + $mail->SMTPAuth = true; + $mail->SMTPSecure = 'ssl'; + $mail->Port = $config['mail']['port']; + $mail->Host = $config['mail']['host']; + $mail->Username = $config['mail']['username']; + $mail->Password = $config['mail']['password']; //Recipients $mail->setFrom($config['mail']['username'], 'Thedro Neely'); $mail->addAddress($config['mail']['username'], 'Thedro Neely'); - $mail->addReplyTo($this->email, $this->name); //Content $mail->isHTML(true); - $mail->Subject = 'New message from ' . $this->name; - $mail->Body = $this->message; - $mail->AltBody = $this->message; + $mail->Subject = 'New message from ' . $this->email; + $mail->Body = $this->message . "\n\n" . $this->name . "\n" . $this->email; + $mail->AltBody = $this->message . "\n\n" . $this->name . "\n" . $this->email; //Send Mail $mail->send(); |