I have problem with PHP Mailer, Im sure that my data is correct beacuse i used it to test on SMTP Test site, and he sends mail correct, but from Mailer it dont work.
require './libs/PHPMailer-master/class.phpmailer.php';
$mail = new PHPMailer;
$mail->SMTPDebug = SMTP::DEBUG_SERVER;
$mail->IsSMTP(); // Set mailer to use SMTP
$mail->Port = 25;
$mail->Host = 'my.server.com'; // Specify main and backup server
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = 'my@mail.com'; // SMTP username
$mail->Password = 'mypass'; // SMTP password
$mail->SMTPSecure = 'tls'; // Enable encryption, 'ssl' also accepted
$mail->From = 'my@mail.com';
$mail->FromName = 'Name';
echo "Mail sended";
$mail->WordWrap = 50; // Set word wrap to 50 characters
$mail->IsHTML(true); // Set email format to HTML
?>```
Thank you on help in advance.