This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Mathilde Escher Stiftung
Mathilde Escher Stiftung

Hello,

I don't know if this error has something to do with my recent update from October v1 to v2 with deploy plugin. Anyway this is what is not working:

I filled in the mail settings in backend with SMTP method. When I then try to send a test mail from a mail draft, I'm getting following error:

Declaration of Egulias\EmailValidator\Validation\MessageIDValidation::isValid(string $email, Egulias\EmailValidator\EmailLexer $emailLexer): bool must be compatible with Egulias\EmailValidator\Validation\EmailValidation::isValid($email, Egulias\EmailValidator\EmailLexer $emailLexer)

I tried to switch to PHP-mail method with the same outcome. I tried to deploy the core again with deploy plugin with the same outcome.

I'm using October v2.2.10 on PHP 7.4.

EDIT: This seems to be a laravel 9 issue: https://laracasts.com/discuss/channels/laravel/i-cant-send-any-email-after-upgrade-to-laravel-9

Last updated

240b
240b

Hi Mathilde

Removing the egulias/email-validator package should fix it. Does it help?

Mathilde Escher Stiftung
Mathilde Escher Stiftung

Hello,

How can I remove this package? It's not inside the the composer.json in root dir, it's deep inside vendor on several places...

Mathilde Escher Stiftung
Mathilde Escher Stiftung

UPDATE:

What I just did is, I deleted the vendor folder on my server (you may consider doing a backup, if you want to do the same) and deployed again with the deploy plugin.

After that, SMTP worked :)

1-4 of 4

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.