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

    I setup my site with MODx a few months ago and everything has been fine however I just noticed that the ’reset login’ form has started to return an error but only when a known email is entered. If unknown it returns the correct response. This is the error:

    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »
     
    PHP error debug
      Error: 	mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()	 
      Error type/ Nr.: 	Warning - 2	 
      File: 	C:\wamp\www\assets\snippets\weblogin\weblogin.processor.inc.php	 
      Line: 	105	 
      Line 105 source: 	if(!mail($email, "New Password Activation for $site_name", $message, "From: ".$emailsender."\r\n"."X-Mailer: MODx Content Manager - PHP/".phpversion())) { 	 
     
    Parser timing
      MySQL: 	0.0334 s	(7 Requests)
      PHP: 	1.0179 s	 
      Total: 	1.0513 s


    Could anyone tell me what this is and how to fix it?

    To be honest I’ve forgotten the versions of MODx, Apache, PHP and MySQL that I’m running as I haven’t touched it in months but it was the latest versions of each at that time (around June if that helps at all). I’m away from the server at the moment so I can’t check.

    Thank you for your time.
    • Are you on shared hosting? A number of such hosting companies have disabled the use of the php mail() command. There was just a discussion of this on the forums recently, but I can’t seem to find the relevant posts.
        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
        • 28788
        • 79 Posts
        No I’m hosting it on a WinXP machine at home.