You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test your setup with the following command on your terminal: bin/console swiftmailer:email:send --from=<from email> --to=<to email> --subject="Foo" --body="Bar"
With this setup, I've made it work.
Let me know if I miss something on it.
@fluchi I'm not sure about my situation, but after I installed the bundle. In my config directory, it just add mailgun.yaml. I can't find any find like swiftmailer.yaml or swiftmail.* .So my site is crashing now. Not sure what to do
@PhongNguyen512, try to create those files manually. On my case, they weren't create via composer due to permission issues (if I'm non mistaken). Then I've create them manually and everything works fine.
@fluchi Before I posted my question, I also tried to create swiftmailer.yaml file in config/packages. But I got another error There is no extension able to load the configuration for "swiftmailer" (in /home/vagrant/code/project1/config/packages/swiftmailer.yaml). Looked for namespace "swiftmailer", found "framework", "web_profiler", "twig", "monolog", "debug", "sensio_framework_extra", "security", "doctrine_cache", "do ctrine", "doctrine_migrations", "maker", "cspoo_swiftmailer_mailgun"
I also check in vendor/ . I saw cspoo, swiftmailer and mailgun directories in there. I'm not sure where did I go wrong.
@infomaniac50 I already solved this issue. In my case, I install swiftmailer first I install this bundle. I think the swiftmailer in this bundle does not exist. Therefore, I install swiftmailer first and it works perfectly.
Activity
fluchi commentedon Oct 10, 2018
Hi @Jeeppler,
Setting up this on Symfony 4 is slight different.
Adding on AppKernel, now config/bundles.php
cspoo\Swiftmailer\MailgunBundle\cspooSwiftmailerMailgunBundle::class => ['all' => true],Configuring credentials:
Create a new config file on config/packages/mailgun.yaml (if it's not there) and copy the following lines:
p.s.: Not sure if you really have to comment url
bin/console swiftmailer:email:send --from=<from email> --to=<to email> --subject="Foo" --body="Bar"With this setup, I've made it work.
Let me know if I miss something on it.
Felipe
Jeeppler commentedon Oct 10, 2018
@fluchi thank you. Awesome. Do you want add your explanation to the README.md (create pull request)?
PhongNguyen512 commentedon Nov 9, 2018
@fluchi I'm not sure about my situation, but after I installed the bundle. In my config directory, it just add mailgun.yaml. I can't find any find like swiftmailer.yaml or swiftmail.* .So my site is crashing now. Not sure what to do
fluchi commentedon Nov 10, 2018
@PhongNguyen512, try to create those files manually. On my case, they weren't create via composer due to permission issues (if I'm non mistaken). Then I've create them manually and everything works fine.
PhongNguyen512 commentedon Nov 11, 2018
@fluchi Before I posted my question, I also tried to create swiftmailer.yaml file in config/packages. But I got another error
There is no extension able to load the configuration for "swiftmailer" (in /home/vagrant/code/project1/config/packages/swiftmailer.yaml). Looked for namespace "swiftmailer", found "framework", "web_profiler", "twig", "monolog", "debug", "sensio_framework_extra", "security", "doctrine_cache", "do ctrine", "doctrine_migrations", "maker", "cspoo_swiftmailer_mailgun"I also check in vendor/ . I saw cspoo, swiftmailer and mailgun directories in there. I'm not sure where did I go wrong.
infomaniac50 commentedon Feb 7, 2019
If
MAILER_URLis equal tonull://localhostthen it will definitely interfere.PhongNguyen512 commentedon Feb 11, 2019
@infomaniac50 I already solved this issue. In my case, I install swiftmailer first I install this bundle. I think the swiftmailer in this bundle does not exist. Therefore, I install swiftmailer first and it works perfectly.