ich bin neu in Plesk.
Da stellt sich mir eine Frage:
Ich benutze PHPMailer ( https://github.com/PHPMailer/PHPMailer ), mit dem man E-Mails per PHP Skript senden kann.
Das Problem ist allerdings, dass es Fehlermeldungen gibt:
Code: Alles auswählen
Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in ... on line 200
SMTP -> ERROR: RSET failed:
Code: Alles auswählen
//Server settings
$mail->SMTPDebug = 1; // Enable verbose debug output
$mail->isSMTP(); // Set mailer to use SMTP
$mail->Host = 'mail.....de'; // Specify main and backup SMTP servers
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = 'mail@....de'; // SMTP username
$mail->Password = '...'; // SMTP password
$mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted
$mail->addAddress('mail@....de', '...');
$mail->Port = 587; // TCP port to connect to
//Recipients
$mail->setFrom($_POST['email'], $_POST['fullname']);
$mail->addReplyTo($_POST['email'], $_POST['fullname']);
//Content
$mail->isHTML(true); // Set email format to HTML
$mail->Subject = 'Anfrage vom ' . date("d.m.Y H:i");
$mail->Body = utf8_decode(nl2br($_POST['message']));
//$mail->AltBody = utf8_decode($_POST['message']);
$mail->send();
Unter Plesk habe ich bereits unter "SMTP-Service auf Port 587 auf allen IP-Adressen aktivieren" ein Häckchen gesetzt.