Hey Jungs,
ich hab ein Registerscript geschrieben das nach erfolgreichen abschließen eine Mail mit PHPMailer versendet. Jetzt ist das Problem, dass viele E-Mail Dienste irgendwie die Nachricht nicht erhalten. In der Email Warteschlange von Plesk sehe ich das keine Email zu z.B. web.de rausgeht. Die verrotten sozusagen in der Warteschlange.
Meine PHPMailer Settings sind wie folgt:
PHP Code:
<?php
date_default_timezone_set('Etc/UTC');
require 'PHPMailerAutoload.php';
//Create a new PHPMailer instance
$mail = new PHPMailer;
//Tell PHPMailer to use SMTP
$mail->isSMTP();
//Enable SMTP debugging
// 0 = off (for production use)
// 1 = client messages
// 2 = client and server messages
$mail->SMTPDebug = 2;
//Ask for HTML-friendly debug output
$mail->Debugoutput = 'html';
//Set the hostname of the mail server
$mail->Host = '<meinhost>';
//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission
$mail->Port = 587;
//Set the encryption system to use - ssl (deprecated) or tls
$mail->SMTPSecure = 'tls';
//Whether to use SMTP authentication
$mail->SMTPAuth = true;
//Username to use for SMTP authentication - use full email address for gmail
$mail->Username = "<meinemail>";
//Password to use for SMTP authentication
$mail->Password = "<meinpasswort>";
//Set who the message is to be sent from
$mail->setFrom('<meinemail>', '<Hostname>');
//Set an alternative reply-to address
//$mail->addReplyTo('<meinemail>');
//Set who the message is to be sent to
$mail->addAddress('<empfänger email>');
//Set the subject line
$mail->Subject = 'PHPMailer TLS SMTP test';
//Read an HTML message body from an external file, convert referenced images to embedded,
//convert HTML into a basic plain-text alternative body
$mail->Body = 'Test email';
//Replace the plain text body with one created manually
$mail->AltBody = 'No HTML Client';
if (!$mail->send()) { echo error;
} else {
echo "Message sent!";
}
?>
Laut dem script wird die Email auch verschickt und kommt wie gesagt bei paar Email Adressen an, jedoch nicht bei web.de, gmx.de, hotmail etc..
Jetzt ist die Frage, funktioniert es bei den oben genannten Email Portalen nicht, da die ausgehenden emails nicht über tls verschlüsselt werden?
Die Email Adressen wurden über Parallel Plesk erstellt