We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4095
    • 372 Posts
    I was wondering where the email settings were kept in MODx GUI if at all?

    The email address that MODx is using to send system messages is not that of the administrator, I think I might have set a different one (the one its using) during the install. If this is correct where do you change it.

    This may be something for the wish list, so while I’m at it a big one for me is a place to provide a authentication password. My mail server requires SMTP authentication even for local system accounts, and currently MODx can’t send emails sad

      [img]http://www.emanz.ac.nz/assets/images/logo/emanz-icon_16x16.gif[/img] Emergency Management Academy of New Zealand [br] http://www.emanz.ac.nz[br][br]MODx Sandbox Login: sandbox Password: castle [br]
      Admin Sandbox Login: sandbox Password: castle
    • In "System configuration", the "User settings" tabe, "E-mail address" appears to be it; it is accessed through the [(emailsender)] system variable. Or at least that’s what I use.

      As far as your authentication problem is concerned, you probably will need to set up a snippet or TV to send email. It appears that the standard php mail() function can’t do that, but there is a mailing class that uses a different method of sending mail that does:

      http://phpmailer.sourceforge.net/
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 4095
        • 372 Posts
        In "System configuration", the "User settings" tabe, "E-mail address" appears to be it

        Hmmm, thats what I thought but thats set to [email protected] (not real of domain) yet my mail server is getting attempts from [email protected]

        So must be getting it from elsewhere, maybe a bug?

        Thanks for the info on PHP mail, looks a bit hard for me, but I guess I’ll have to try work out some of this scary MODx stuff. Think this is something that should be built into MODx later, SMTP AUTH is pretty common now days.
          [img]http://www.emanz.ac.nz/assets/images/logo/emanz-icon_16x16.gif[/img] Emergency Management Academy of New Zealand [br] http://www.emanz.ac.nz[br][br]MODx Sandbox Login: sandbox Password: castle [br]
          Admin Sandbox Login: sandbox Password: castle
        • System messages...what exactly do you mean by system messages? This sounds more like your default server’s mail configuration, not MODx.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 4095
            • 372 Posts
            Messages like user passwords and login details etc that MODx sends.

            MODx tried to send the message as [email protected], rather than the [email protected] which is set in the MODx system configuration -> user settings tab.

            Sun 2005-08-07 22:41:44: [6317:1] Accepting SMTP connection from [127.0.0.1 : 1606]
            Sun 2005-08-07 22:41:44: [6317:1] --> 220 Domain ESMTP MDaemon 8.0.2; Sun, 07 Aug 2005 22:41:44 +1200
            Sun 2005-08-07 22:41:44: [6317:1] <-- HELO Machine-Name
            Sun 2005-08-07 22:41:44: [6317:1] --> 250 Domain Hello Machine-Name, pleased to meet you
            Sun 2005-08-07 22:41:44: [6317:1] <-- MAIL FROM:<[email protected]>
            Sun 2005-08-07 22:41:44: [6317:1] --> 250 <[email protected]>, Sender ok
            Sun 2005-08-07 22:41:44: [6317:1] <-- RCPT TO:<[email protected]>
            Sun 2005-08-07 22:41:44: [6317:1] --> 530 Authentication required
            Sun 2005-08-07 22:41:44: [6317:1] <-- QUIT
            Sun 2005-08-07 22:41:44: [6317:1] --> 221 See ya in cyberspace
            Sun 2005-08-07 22:41:44: [6317:1] SMTP session successful (Bytes in/out: 92/234)
            Sun 2005-08-07 22:41:44: ----------
            


            As you see the MAIL FROM tag used during the SMTP session should have read [email protected], but MODx (or something related) used the [email protected] instead.

            So I must have given it the admin address at some stage, but can only think maybe during the install. I must have then changed it to the briggsys address in the GUI but somewhere MODx still thinks its the orginal address. (which is why I think it might be a bug)

            The email also has a Return-Path of [email protected], not briggsys.

            Also to prove its not the mailserver doing it, it was giving 550 errors (Sender Unkown) because that admin account no longer exists.
              [img]http://www.emanz.ac.nz/assets/images/logo/emanz-icon_16x16.gif[/img] Emergency Management Academy of New Zealand [br] http://www.emanz.ac.nz[br][br]MODx Sandbox Login: sandbox Password: castle [br]
              Admin Sandbox Login: sandbox Password: castle
              • 22097
              • 37 Posts
              If your server is a Windows machine, check the setting sendmail_from in php.ini maybe that is the problem.
                • 4095
                • 372 Posts
                False alert, no bug..... Ok I feel silly now..... it was indeed the php.ini settingt smiley

                Thanks.
                  [img]http://www.emanz.ac.nz/assets/images/logo/emanz-icon_16x16.gif[/img] Emergency Management Academy of New Zealand [br] http://www.emanz.ac.nz[br][br]MODx Sandbox Login: sandbox Password: castle [br]
                  Admin Sandbox Login: sandbox Password: castle