Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Mautic
  3. 3rd Party Email Transports on Mautic 5

3rd Party Email Transports on Mautic 5

Scheduled Pinned Locked Moved Mautic
19 Posts 4 Posters 2.5k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Dave SwiftD Dave Swift

    @girish Composer looks at your composer.json to figure out what packages and versions your project needs. In composer.json, you can specify version constraints for packages.

    If a package you want to install (like an email transport plugin) requires a different version of a package that Mautic already depends on, Composer identifies this conflict. It tries to find a version of the packages that satisfies all requirements. If it's impossible to reconcile these version requirements, Composer will throw an error and stop the installation process.

    girishG Offline
    girishG Offline
    girish
    Staff
    wrote on last edited by
    #9

    @Dave-Swift ok, perfect, thanks for explaining. Which transport(s) do you need? For a start, I can pre-install them in the image already (instead of making composer.json configurable which seems like a bigger project).

    Dave SwiftD 1 Reply Last reply
    1
    • girishG girish

      @Dave-Swift ok, perfect, thanks for explaining. Which transport(s) do you need? For a start, I can pre-install them in the image already (instead of making composer.json configurable which seems like a bigger project).

      Dave SwiftD Offline
      Dave SwiftD Offline
      Dave Swift
      wrote on last edited by
      #10

      @girish SES & Mailgun would be my priorities. 🙏

      1 Reply Last reply
      1
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #11

        I quickly tried this but installing via composer seems to mess up with mautic. Have to debug later.

        17:49:19 - PHP Warning:  include(/run/mautic/app/config/paths_helper.php): Failed to open stream: No such file or directory in /app/code/app/bundles/CoreBundle/Helper/PathsHelper.php on line 50
        17:49:19 - PHP Warning:  include(): Failed opening '/run/mautic/app/config/paths_helper.php' for inclusion (include_path='.:/usr/share/php') in /app/code/app/bundles/CoreBundle/Helper/PathsHelper.php on line 50
        17:49:19 - PHP Warning:  Undefined array key "root" in /app/code/app/bundles/CoreBundle/Helper/PathsHelper.php on line 185
        17:49:19 - 
        17:49:19 -                                                                                 
        17:49:19 -  [WARNING] Some commands could not be registered:                               
        17:49:19 -                                                                                 
        17:49:19 - 
        17:49:19 - In FilesystemLoader.php line 92:
        17:49:19 -                                                                                
        17:49:19 -   The "/run/mautic/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views" dire  
        17:49:19 -   ctory does not exist ("/run/mautic/vendor/knplabs/knp-menu/src/Knp/Menu/Res  
        17:49:19 -   ources/views").                                                              
        17:49:19 -                                                                                
        17:49:19 - 
        17:49:19 - In PathsHelper.php line 187:
        17:49:19 -                         
        17:49:19 -   root does not exist.  
        17:49:19 -                         
        17:49:19 - 
        17:49:19 - In FileLoader.php line 38:
        17:49:19 -                                                                                
        17:49:19 -   The mapping file "/run/mautic/vendor/symfony/form/Resources/config/validati  
        17:49:19 -   on.xml" does not exist.                                                      
        17:49:19 -                                                                                
        17:49:19 - 
        17:49:19 - In FilesystemLoader.php line 92:
        17:49:19 -                                                                                
        17:49:19 -   The "/run/mautic/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views" dire  
        17:49:19 -   ctory does not exist ("/run/mautic/vendor/knplabs/knp-menu/src/Knp/Menu/Res  
        17:49:19 -   ources/views").                                                              
        17:49:19 -                                                                                
        17:49:19 - 
        17:49:19 - In FilesystemLoader.php line 92:
        17:49:19 -                                                                                
        17:49:19 -   The "/run/mautic/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views" dire  
        17:49:19 -   ctory does not exist ("/run/mautic/vendor/knplabs/knp-menu/src/Knp/Menu/Res  
        17:49:19 -   ources/views").                                                              
        17:49:19 -                                                                                
        17:49:19 - 
        
        micmcM 1 Reply Last reply
        1
        • girishG girish

          I quickly tried this but installing via composer seems to mess up with mautic. Have to debug later.

          17:49:19 - PHP Warning:  include(/run/mautic/app/config/paths_helper.php): Failed to open stream: No such file or directory in /app/code/app/bundles/CoreBundle/Helper/PathsHelper.php on line 50
          17:49:19 - PHP Warning:  include(): Failed opening '/run/mautic/app/config/paths_helper.php' for inclusion (include_path='.:/usr/share/php') in /app/code/app/bundles/CoreBundle/Helper/PathsHelper.php on line 50
          17:49:19 - PHP Warning:  Undefined array key "root" in /app/code/app/bundles/CoreBundle/Helper/PathsHelper.php on line 185
          17:49:19 - 
          17:49:19 -                                                                                 
          17:49:19 -  [WARNING] Some commands could not be registered:                               
          17:49:19 -                                                                                 
          17:49:19 - 
          17:49:19 - In FilesystemLoader.php line 92:
          17:49:19 -                                                                                
          17:49:19 -   The "/run/mautic/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views" dire  
          17:49:19 -   ctory does not exist ("/run/mautic/vendor/knplabs/knp-menu/src/Knp/Menu/Res  
          17:49:19 -   ources/views").                                                              
          17:49:19 -                                                                                
          17:49:19 - 
          17:49:19 - In PathsHelper.php line 187:
          17:49:19 -                         
          17:49:19 -   root does not exist.  
          17:49:19 -                         
          17:49:19 - 
          17:49:19 - In FileLoader.php line 38:
          17:49:19 -                                                                                
          17:49:19 -   The mapping file "/run/mautic/vendor/symfony/form/Resources/config/validati  
          17:49:19 -   on.xml" does not exist.                                                      
          17:49:19 -                                                                                
          17:49:19 - 
          17:49:19 - In FilesystemLoader.php line 92:
          17:49:19 -                                                                                
          17:49:19 -   The "/run/mautic/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views" dire  
          17:49:19 -   ctory does not exist ("/run/mautic/vendor/knplabs/knp-menu/src/Knp/Menu/Res  
          17:49:19 -   ources/views").                                                              
          17:49:19 -                                                                                
          17:49:19 - 
          17:49:19 - In FilesystemLoader.php line 92:
          17:49:19 -                                                                                
          17:49:19 -   The "/run/mautic/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views" dire  
          17:49:19 -   ctory does not exist ("/run/mautic/vendor/knplabs/knp-menu/src/Knp/Menu/Res  
          17:49:19 -   ources/views").                                                              
          17:49:19 -                                                                                
          17:49:19 - 
          
          micmcM Offline
          micmcM Offline
          micmc
          wrote on last edited by micmc
          #12

          @girish It seems like Composer needs to be tightly integrated, which is not yet the case.

          I've installed a totally new instance of Version 5 on one of my servers-had to find out more since the upgrade didn't work, yet. Now it appears that this will not work until the Composer part is 'fixed'.

          How we can know that? Because, as also reported here in the OP by @Dave-Swift, it is indicated within Mautic that Composer is not supported, and as a matter of fact this is going on for a while and been reported before by me, and some other Mautic power users.

          We see this from the Marketplace section, this is in version 4.4 and it's the same thing we see in version 5 as well.
          no-composer.png

          I have many question: How does composer handle dependencies and conflicts? What if installing a email transport upgrade or downgrades a package that Mautic depends on? How are composer upgrades handled when updating Mautic?

          Here's the details concerning the actual major changes in the script.

          And here you will find the composer.json file content, I guess that should help to see where it will stand in your investigation.

          ADDED:
          I also pull your attention on this post here, seems you have missed, of what I extracted from my logs after the glitched attempt to upgrade. TTYL

          Ignorance is not an excuse anymore!
          https://AutomateKit.com

          1 Reply Last reply
          1
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #13

            I can't get symfony/amazon-mailer or symfony/mailgun-mailer installed outside cloudron as well. So, maybe if someone figures this out, we can add it later in the package.

            1 Reply Last reply
            0
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #14

              I figured this one out. The magic incantation is:

              composer require --no-update --no-install --prefer-stable --no-scripts symfony/amazon-mailer symfony/mailgun-mailer
              

              The main thing was --no-scripts . The packages started building assets and they ended up being half baked since mautic is not even installed at that point. The latest package has the email transports installed.

              1 Reply Last reply
              1
              • dsp76D Offline
                dsp76D Offline
                dsp76
                wrote on last edited by
                #15

                Has anyone tried to install new 3rd party plugins with improved mailer support already? E.g. Amazon SES by default is only supported with SMTP, no API and no bounce handling. Now there are 2-3 Plugins out there, which seems to handle it quite well.

                Was anyone able to install those into Mautic Cloudron?

                (Ask me about B2B marketing automation & low code business solutions, if thats interesting for you.)

                1 Reply Last reply
                1
                • girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #16

                  @dsp76 I don't have experience with this part of Mautic but can one not use https://docs.mautic.org/en/5.x/channels/emails.html#bounce-management ? Essentially, with webhooks to notify mautic.

                  1 Reply Last reply
                  1
                  • dsp76D Offline
                    dsp76D Offline
                    dsp76
                    wrote on last edited by dsp76
                    #17

                    @girish with the jump to v5, some functions have been moved from core to plugins. The core functionality of AWS Support doesn't include the API based bounce handling (with webhooks). Thats why there are several SES Plugins now:

                    1. https://github.com/jos0405/mauticawsmailer
                    2. https://github.com/pabloveintimilla/mautic-amazon-ses
                    3. https://github.com/alexhammerschmied/MauticSesSnsBundle
                    4. https://github.com/pm-pmaas/etailors_amazon_ses
                    5. https://github.com/hachther/mauticawsmailer

                    I will give them a try and test it also with Cloudron.

                    (Ask me about B2B marketing automation & low code business solutions, if thats interesting for you.)

                    1 Reply Last reply
                    1
                    • dsp76D Offline
                      dsp76D Offline
                      dsp76
                      wrote on last edited by
                      #18

                      Update and input from the community call:

                        1. enhances version 5.
                        1. don't know a lot about it
                        1. is considered as not finished yet
                        1. seems to be in use in some instances

                      (Ask me about B2B marketing automation & low code business solutions, if thats interesting for you.)

                      1 Reply Last reply
                      0
                      • dsp76D Offline
                        dsp76D Offline
                        dsp76
                        wrote on last edited by
                        #19
                        1. and 4. are not installable via composer in my trials at cloudron.
                        2. throws an error:
                        Your requirements could not be resolved to an installable set of packages.
                        
                          Problem 1
                            - mautic/core-lib[5.0.0, ..., 5.0.4] require friendsofsymfony/oauth-server-bundle dev-upgrade-2 -> found friendsofsymfony/oauth-server-bundle[dev-master, 1.0.0, ..., 1.7.x-dev, 2.0.0-alpha.0, 2.0.x-dev (alias of dev-master)] but it does not match the constraint.
                            - pabloveintimilla/mautic-amazon-ses[v1.0.0, ..., v1.0.2] require mautic/core-lib ^5.0 -> satisfiable by mautic/core-lib[5.0.0, ..., 5.0.4].
                            - Root composer.json requires pabloveintimilla/mautic-amazon-ses ^1.0 -> satisfiable by pabloveintimilla/mautic-amazon-ses[v1.0.0, v1.0.1, v1.0.2].
                        
                        You can also try re-running composer require with an explicit version constraint, e.g. "composer require pabloveintimilla/mautic-amazon-ses:*" to figure out if any version is installable, or "composer require pabloveintimilla/mautic-amazon-ses:^2.1" if you know which you need.
                        
                        Installation failed, deleting ./composer.json.
                        

                        Not sure if this is related to the Cloudron environment. I also wonder if this has a chance to succeed at all as the code path is read only by design?

                        Would a necessary plugin needed to be added to the cloudron mautic package?

                        (Ask me about B2B marketing automation & low code business solutions, if thats interesting for you.)

                        1 Reply Last reply
                        0
                        • dsp76D dsp76 referenced this topic on
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Bookmarks
                        • Search