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

    Im trying to send mail from website with eForm and also with ContactForm but im getting eror like:
    Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()

    Well my mail port is not 25, its 465.

    I changed in class.phpmailer.php and also in class.smtp.php but i still getting error for port 25?!

    Please what to do. Im ASP programmer, and just started with php and ModX CMS.
    Sorry about my language but you will understod what i want to say...

    Thanks in advance grin
      • 32982
      • 674 Posts
      i dont know very much about but it seems your php.ini port is 25
      change in this archive or use ini set in php if dont have access to it
      hi
        Jabiertxof (formerly XYZVISUAL)
        My bussines: http://marker.es
        https://www.youtube.com/user/jabiertxof/videos
        • 15680
        • 5 Posts
        Quote from: xyzvisual at Aug 10, 2007, 05:37 AM

        i dont know very much about but it seems your php.ini port is 25
        change in this archive or use ini set in php if dont have access to it
        hi

        I saw that, but how to use ini_set() and where(which file) to use it?
        Like i said im new to php.

        Thanks
          • 32982
          • 674 Posts
          in htaccess put this

          php_value SMTP localhost
          php_value smtp_port 465
          or
          in the config.php of modx put
          ini_set("smtp_port","465");
          hi
            Jabiertxof (formerly XYZVISUAL)
            My bussines: http://marker.es
            https://www.youtube.com/user/jabiertxof/videos
            • 15680
            • 5 Posts
            Quote from: xyzvisual at Aug 10, 2007, 06:21 AM

            in htaccess put this

            php_value SMTP localhost
            php_value smtp_port 465
            or
            in the config.php of modx put
            ini_set("smtp_port","465");
            hi

            Thanks man smiley