We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22797
    • 134 Posts
    I’m having trouble making the SMTP connection work properly. I’m using MODx .9.5 on Windows Server. I know that the SMTP can work on this server because I have another PHP software program, Mantis, working just fine using SMTP on the same server.

    Specifically, when I try to update a password for a web user, and when I set it to send the password via email, I get this error message:

    Warning: mail() [function.mail]: SMTP server response: 530 5.7.0 No AUTH command has been given. in C:\wamp\www\manager\processors\save_web_user.processor.php on line 430

    And the password update fails.

    I looked in manager/includes/class.phpmailer and set the variables as I thought they should be set, but still no luck. Here’s how I have the variables set (with "fakedomain.com" substituted for my real smtp domain):

    var $Priority = 3;
    var $CharSet = "iso-8859-1";
    var $ContentType = "text/plain";
    var $Encoding = "8bit";
    var $ErrorInfo = "";
    var $From = "[email protected]";
    var $FromName = "My name";
    var $Sender = "[email protected]";
    var $Body = "";
    var $AltBody = "";
    var $WordWrap = 0;
    var $Mailer = "smtp";
    //var $Sendmail = "/usr/sbin/sendmail"; //commented out
    var $PluginDir = "";
    var $Version = "1.73";
    var $ConfirmReadingTo = "";
    var $Hostname = "fakedomain.com";
    var $Host = "smtp.fakedomain.com";
    var $Port = 25;
    var $Helo = "fakedomain.com";
    var $SMTPAuth = true;
    var $Username = "fakeusername";
    ar $Password = "fakepassword";
    var $Timeout = 10;
    var $SMTPDebug = true;
    var $SMTPKeepAlive = false;
    var $smtp = NULL;
    var $to = array();
    var $cc = array();
    var $bcc = array();
    var $ReplyTo = array();
    var $attachment = array();
    var $CustomHeader = array();
    var $message_type = "";
    var $boundary = array();
    var $language = array();
    var $error_count = 0;
    var $LE = "\n";
      • 22797
      • 134 Posts
      I posted the above question a few days ago, but so far no response. Any help with SMTP on Windows would be much appreciated.
        • 25663 MODX Staff
        • 12,272 Posts
        Moving to the appropriate forum ... likely get a prompt response there! smiley
          Ryan Thrash, MODX Co-Founder
          Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
          • 3188
          • 75 Posts
          Same problem here wink

          Altough, not IIS. WAMP
            • 37550 ☆ A M B ☆
            • 711 Posts
            Hmm thats a strange one for me it all just worked out the box

            Windows 2003
            IIS6
            Smartermail Mail server listening on localhost

            You say that normal phpmail function works? do you have an example of some existing code which can send mail outside of modx.

            Aaron
              http://www.onesmarthost.co.uk
              UK MODX Hosting with love.
              • 37550 ☆ A M B ☆
              • 711 Posts
              Not sure if this is it but perhaps worth a shot

              in the code quote above


              var $SMTPAuth = true;
              var $Username = "fakeusername";
              ar $Password = "fakepassword";

              the last line is missing the v?

              var $Password = "fakepassword";

                http://www.onesmarthost.co.uk
                UK MODX Hosting with love.
                • 22797
                • 134 Posts
                You might be right about the "v" missing. I posted that message a long time ago, and have since upgraded to newer versions of MODx and have moved to a Linux server, where these problems are not an issue. I can’t verify whether or not the original problem has been solved.