kodus / mail

Simple, modern library of services for sending UTF-8 e-mail
38 stars 5 forks source link

Upgrade to PHP 8.1 #14

Closed vortrixs closed 2 years ago

vortrixs commented 2 years ago

[1] For the test to pass the SMTP server needs to have a SSL certificate installed and the certificate also needs to be added into the client's trusted CA store ("client" in this case being the system PHP runs on). As such I've added a "stop gap" that skips the test if the connection fails.

This is might not be the best way, but it's tricky finding a clean solution because we are dealing with two types of failure here:

Long story short, I was able to make it pass by integrating https://github.com/rnwood/smtp4dev into my docker setup and doing some "openssl magic", but I'm not sure how easy it is to replicate in the test environment.