аутентификация сервера обмена phpmailer
Мой почтовый код: $mail = new PHPMailer(true); $mail->IsSMTP(); try { $mail->Host = 192.168.205.19; $mail->Port = 25; $mail->SMTPDebug = 2; $mail->SMTPSecure = "tls"; $mail->SMTPAuth = true; $mail->Username = "mymailadress@mysite.com"; $mail->Password = "mypassword"; $mail->From = "mymailaddress@mysite.com"; $mail->FromName = "My Mail Address"; $mail->SetFrom("mymailaddress@mysite.cm", "My Mail Address"); $mail->AddAddress('toaddress@mysite.com'); $mail->Subject = "Test for subject"; $mail->MsgHTML("Test my mail body"); if ($mail->Send()) […]