How to send mails and append them using protonbridge? I get how to send them with php mailer I did so for Yandex but idk how to do this using protonbridge.
$mail = new PHPMailer(true);
$mail->IsSMTP(); $mail->Mailer = "smtp"; $mail->SMTPDebug = 4;
$mail->SMTPAuth = TRUE; $mail->SMTPSecure = "ssl";
$mail->Port = 1025;
$mail->Host = "127.0.0.1";
// [...] subject, mail, mailto, setfrom etc.
Proton is configured to use SSL but STARTTLS can also be used, I just dont know how. I keep getting:
Connection: opening to ssl://127.0.0.1:1025, timeout=300, options=array() 2023-05-24 19:16:30 Connection failed. Error #2: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed [SMTP.php line 389] 2023-05-24 19:16:30 Connection failed. Error #2: stream_socket_client(): Failed to enable crypto [SMTP.php line 389] 2023-05-24 19:16:30 Connection failed. Error #2: stream_socket_client(): Unable to connect to ssl://127.0.0.1:1025 (Unknown error) [SMTP.php line 389] 2023-05-24 19:16:30 SMTP ERROR: Failed to connect to server: (0) 2023-05-24 19:16:30 SMTP Error: Could not connect to SMTP host.
It's something with SSL or TLS and I don't know what I need to do for it to work. How do I actually set this up?
source https://stackoverflow.com/questions/76326798/how-to-send-mails-and-append-them-to-imap-with-php-using-protonbridge
No comments:
Post a Comment