Category: mailer

Failed to install symfony/mailer because of friendsofsymfony/user-bundle

I have problem in using mailer in symfony. I want to follow the instruction on symfony website. When I write composer require symfony/mailer in the terminal, I get an error: Using version ^2.1 for friendsofsymfony/user-bundle ./composer.json has been updated Loading…

Symfony 4.3 Mailer – undefined method named "getAll" of class "SymfonyComponentMimeHeaderHeaders"

I’m trying to send mails with the new mailer component in symfony 4.3 but if i try my implemetation, i’m getting this exception: Attempted to call an undefined method named “getAll” of class “SymfonyComponentMimeHeaderHeaders”. stack trace: SymfonyComponentDebugExceptionUndefinedMethodException: Attempted to call…

Symfony Mailer TLS Certificate Name Validation Error

How can I turn off name validations in symfony/mailer TLS connections. I am getting the following error. Warning: stream_socket_enable_crypto(): Peer certificate CN=smtp.somename.com’ did not match expected CN=smtp.someothername.com’ In swift mailer I can simply set verify_peer_name to false. How do you…