CONTACT FORM

Issues related to forms.
Post Reply
kaleauto
 
 
Posts: 3
Joined: Fri Nov 03, 2017 12:26 pm

CONTACT FORM

Post by kaleauto » Fri Nov 03, 2017 12:33 pm

Hi
we have a problem on contact form . we have below error message when we try to send a message via form .

"PHPMailer error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting "
https://ibb.co/d4WXsb our settings ....
our php code settings are as below
<?
require("class.phpmailer.php");

$mail = new PHPMailer();

$mail->IsSMTP();
$mail->Host = "mail.cncservo.com";
$mail->SMTPAuth = true;
$mail->Username = "info@cncservo.com";
$mail->Password = "xxxx";
$mail->Port = 587;
$mail->From = "info@cncservo.com";
$mail->Fromname = "giden ismi";
$mail->AddAddress("info@alanadi.com","Ornek Isim");
$mail->Subject = $_POST['baslik'];
$mail->Body = implode(" ",$_POST);

if(!$mail->Send())
{
echo "Mesaj Gönderilemedi <p>";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}

echo "Mesaj Gönderildi";


?>

User avatar
Pablo
 
Posts: 14601
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: CONTACT FORM

Post by Pablo » Fri Nov 03, 2017 1:06 pm

The error indicates that the SMTP server settings are incorrect.
Note that you will need to use your web host's SMTP server, not your ISP.

kaleauto
 
 
Posts: 3
Joined: Fri Nov 03, 2017 12:26 pm

Re: CONTACT FORM

Post by kaleauto » Mon Nov 06, 2017 9:54 am

we used our server suplier's smtp settings .Do you think our setting are incorrect ?
https://ibb.co/d4WXsb

User avatar
Pablo
 
Posts: 14601
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: CONTACT FORM

Post by Pablo » Mon Nov 06, 2017 10:19 am

Only your webhost can verify whether the settings are correct.

The error message (generated by the server) indicates that the settings are not correct:
"PHPMailer error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting "

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests