8000 Integrate mailer_url for tierce library · Issue #217 · symfony/swiftmailer-bundle · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Feb 6, 2022. It is now read-only.

Integrate mailer_url for tierce library #217

Closed
Nightbr opened this issue Dec 7, 2017 · 2 comments
Closed

Integrate mailer_url for tierce library #217

Nightbr opened this issue Dec 7, 2017 · 2 comments

Comments

@Nightbr
8000 Copy link
Nightbr commented Dec 7, 2017

Hello,

I would like to handle MAILER_URL with Mailjet library such as mailjet://apikey:apisecret@api.mailjet.com/v3.

I looked into https://github.com/symfony/swiftmailer-bundle/blob/master/DependencyInjection/SwiftmailerTransportFactory.php and it seems that we only can use smtp, sendmail, gmail or null.

My question is : is it a way to handle custom url bind on custom SwiftMailer transport in swiftmailer-bundle or we have to handle this into our bundle and use classic configuration transport: mailjet?

Thanks in advance!

Related: mailjet/mailjetBundle#7

@kojidev
Copy link
kojidev commented Feb 1, 2019

You can use a service id in transport field, but you should have no env vars in other config fields, so you have to put credentials directly into your transport service which is a hachish workaround.

@fabpot
Copy link
Member
fabpot commented Sep 27, 2020

This has been implemented in Symfony Mailer.

@fabpot fabpot closed this as completed Sep 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
0