From cc0dbcb5c53ccef3f2d045ed4dfd1f3cdd07c439 Mon Sep 17 00:00:00 2001 From: Anxhelo Lushka Date: Mon, 12 Mar 2018 21:28:06 +0100 Subject: [PATCH] Update form.php --- form.php | 109 +++++++++++++++++++++++++++---------------------------- 1 file changed, 53 insertions(+), 56 deletions(-) diff --git a/form.php b/form.php index 53ea174..0d8ac99 100644 --- a/form.php +++ b/form.php @@ -1,56 +1,53 @@ --isSMTP(); -- $mail->Host = 'localhost'; -- $mail->Port = 2500; -- $mail->CharSet = 'utf-8'; -- //It's important not to use the submitter's address as the from address as it's forgery, -- //which will cause your messages to fail SPF checks. -- //Use an address in your own domain as the from address, put the submitter's address in a reply-to -- $mail->setFrom('form@ura.design', (empty($name) ? 'Contact form' : $name)); -- $mail->addAddress('anxhelo1995@gmail.com'); -- $mail->addReplyTo($email, $name); -- $mail->Subject = 'Contact form: ' . $subject; -- $mail->Body = "Contact form submission\n\n" . $projectname . $message . $budget; -- if (!$mail->send()) { -- $msg .= "Mailer Error: " . $mail->ErrorInfo; -- } else { -- $msg .= "Message sent!"; -- } -- } --} ?> +isSMTP(); + $mail->Host = 'localhost'; + $mail->Port = 2500; + $mail->CharSet = 'utf-8'; + //It's important not to use the submitter's address as the from address as it's forgery, + //which will cause your messages to fail SPF checks. + //Use an address in your own domain as the from address, put the submitter's address in a reply-to + $mail->setFrom('form@ura.design', (empty($name) ? 'Contact form' : $name)); + $mail->addAddress('anxhelo1995@gmail.com'); + $mail->addReplyTo($email, $name); + $mail->Subject = 'Contact form: ' . $subject; + $mail->Body = "Contact form submission\n\n" . $message; + if (!$mail->send()) { + $msg .= "Mailer Error: " . $mail->ErrorInfo; + } else { + $msg .= "Message sent!"; + } + } +} ?>