We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22098
    • 218 Posts
    Hello,

    currently MODx uses the PHP build-in mail functionality for it’s default mailing. This gives us sometimes headaches with customers who haven’t or cannot have their servers correctly configured concerning php.ini and/or mail-settings.
    Imho it would be much nicer and more powerfull if the MODx core would enable us to use the Swift mailer-class (default or optional through configuration) and also makes this class available through the MODx API.

    More info:

    http://www.swiftmailer.org/

    Olaf
      • 27376
      • 576 Posts
      Doesn’t Swift use the same PHP mail() function as well? I’m confused.

      MODx comes with PHPMailer, it’s located in [tt]manager/includes/controls/class.phpmailer.php[/tt]
        • 33372
        • 1,611 Posts
        Although it would be cool if you could set the essential PHPMailer variables in the Manager (I’m thinking of important stuff like SMTP server and login settings for them that want to use this, etc.).
          "Things are not what they appear to be; nor are they otherwise." - Buddha

          "Well, gee, Buddha - that wasn't very helpful..." - ZAP

          Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
          • 22098
          • 218 Posts
          you can use the default php mail with swift, but there are lots more options. Even if MODx will continue using phpmailer, it would be essential to give more configuration options, like f.e. SMTP options, authentication, etc.

          Olaf
            • 5727
            • 160 Posts
            I’ve been thinking of developing some kind of module/class around SwiftMailer but because of the upcoming changes with 0.9.7 (modules are out), I’m just waiting to see where we’re all going with this. It would indeed be a great idea to be able to configure SMTP infos from the MODx back-end and then provide basic mailing capabilities for everyone.
              Olivier Deland
              Montreal, Canada - Web Developer
              • 22303 MODX Staff
              • 10,725 Posts
              Quote from: ConseilsWeb at Jun 25, 2007, 01:21 PM

              I’ve been thinking of developing some kind of module/class around SwiftMailer but because of the upcoming changes with 0.9.7 (modules are out), I’m just waiting to see where we’re all going with this. It would indeed be a great idea to be able to configure SMTP infos from the MODx back-end and then provide basic mailing capabilities for everyone.
              For now you can certainly add custom system_settings that will be available in $modx->config and quickly create a module for managing those settings; modules will still work on 0.9.7 BTW, there will just be new options for customizing the MODx manager intefaces.

              I’ll work on a class/API within MODx 0.9.7 for utilizing whatever method, library, or extension you prefer, and will include a default library that supports SMTP. This can serve as a wrapper for mail(), SwiftMailer, PHPMailer, etc. and provide a consistent and convenient way for component authors to utilize the core mail configuration.