Announcement

Collapse
No announcement yet.

Password recovery fails with smtp email error

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Password recovery fails with smtp email error

    I set up the smtp email setting and then tried to do a password recovery for my scriptcase login. and got this error

    Fatal error: Uncaught exception 'Swift_TransportException' with message 'Failed to authenticate on SMTP server with username "xxxxxx" using 0 possible authenticators' in /var/www/htdocs/scriptcase7/wwwroot/scriptcase/prod/third/swift/classes/Swift/Transport/Esmtp/AuthHandler.php:176 Stack trace: #0 /var/www/htdocs/scriptcase7/wwwroot/scriptcase/prod/third/swift/classes/Swift/Transport/EsmtpTransport.php(307): Swift_Transport_Esmtp_AuthHandler->afterEhlo(Object(Swift_SmtpTransport)) #1 /var/www/htdocs/scriptcase7/wwwroot/scriptcase/prod/third/swift/classes/Swift/Transport/AbstractSmtpTransport.php(124): Swift_Transport_EsmtpTransport->_doHeloCommand() #2 /var/www/htdocs/scriptcase7/wwwroot/scriptcase/prod/third/swift/classes/Swift/Mailer.php(79): Swift_Transport_AbstractSmtpTransport->start() #3 /var/www/htdocs/scriptcase7/wwwroot/scriptcase/devel/class/page/nmPageForgetPassword.class.php(296): Swift_Mailer->send(Object(Swift_Message)) #4 /var/www/htdocs/script in /var/www/htdocs/scriptcase7/wwwroot/scriptcase/prod/third/swift/classes/Swift/Transport/Esmtp/AuthHandler.php on line 176
    This is a pretty uggly error to give somebody when an email fails to send.

  • #2
    You have to configure the change password
    Application

    Look at the php method
    It has to be configured for your system

    Kevin

    Comment


    • #3
      Kevin, I am not sure which php method you are referring to.

      Look at the php method
      It has to be configured for your system
      I did configure SMTP in the System settings options. I am trying to recover a password on the Scriptcase login screen. Not an application login screen.

      Nick

      Comment


      • #4
        Hello Nick,

        In order to be able to retrieve any kind of password - even the password to login to SC - you have to previously set and configure a SMTP server.

        regards,
        Bernhard Bernsmann

        Comment


        • #5
          I understand that Bernhard,

          1) I CANNOT configure a connection to our SMTP server because it REQUIRES and SSL connection, and the version of php that is distributed with Linux Scriptcase does not include the SSL functions.

          2) The error message itself is sloppy and shows that somebody is not doing error checking in their code. This does not give a good impression of the quality of the rest of the code in Scriptcase.

          3) There is no provision in the SMTP setup to specify that the connection requires TLS.

          Nick

          Comment


          • #6
            Nick,
            Sorry I was in california when I replied originally on vacation... Let me help more...


            As usual... The instructions from support are not precise..
            When you create a security for a project, there are applications that are generated.
            Look for one called ??sec_retrieve_pswd I change the ?? to the project I am doing security for...
            The important part is the retrieve_pswd name...

            Open up the application.
            Go to the Programming section on the left menu.
            Select the PHP Methods
            Click on the send_mail_message
            This is where the the setting for the mail need to be configured.
            Since each project can be for a different company and they usually use specific settings for email, you need to control in the specific application not globally.

            Here is the data you will see in the method..
            Just change for your system...

            /**
            * Send a simple email
            */

            // Email parameters
            $mail_smtp_server = ''; // SMTP server name or IP address
            $mail_smtp_user = 'Password'; // SMTP user name
            $mail_smtp_pass = 'admin'; // SMTP password
            $mail_from = ''; // From email
            $mail_to = [usr_email]; // To email
            $mail_message = $param_message;
            $mail_subject = {lang_subject_mail}; // Message body
            $mail_format = 'H'; // Message format: (T)ext or (H)tml

            // Send email
            sc_mail_send($mail_smtp_server,
            $mail_smtp_user,
            $mail_smtp_pass,
            $mail_from,
            $mail_to,
            $mail_subject,
            $mail_message,
            $mail_format,
            '','', '');

            if ({sc_mail_ok})
            {
            sc_alert({lang_mail_sended_ok} );
            }
            else
            {
            sc_erro_mensagem({sc_mail_erro});
            }

            Comment


            • #7
              Kevin,

              Thanks for the reply. Hope you had a good vacation.

              I'll remember your answer when I get further into my application.

              But my problem is actually trying to retrieve my ScriptCase Password (the one I use to log in to my ScriptCase development to work on my applications).

              I can't set up the connection to the SMTP server correctly because there isn't a field to tell ScriptCase it needs to use TLS to connect to the server. And even trying to relay through gmail, gmail requires that you connect via TLS or it will refuse the connection. This is set in Options->Settings->System Settings.

              But to further complicate my problem, the version of PHP and Apache that comes with ScriptCase doesn't have OpenSSL installed. So even if I could tell it to use TLS, it couldn't because the encryption functions are not available.

              Nick

              Comment

              Working...
              X