ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Change password does not work


  • 2013-11-16 12:03:28

    Change password does not work

    When going in the back-end and selecting a user and change his password, the next message appears after clicking on "submit":
    The following errors occurred:
    There was an error sending the email message.

    I have checked all relevant threads, however none solves the issue. This issue appears on almost all our installations.

    Things to describe:
    Operating system ATutor is installed on - Linux 3.10.7-20130820-0900-de18969
    ATutor version - 2.1.1
    Patch #s applied - 03, 04
    ATutor theme name - ATutor
    PHP version - 5.3.27
    MySQL version - N/A
    Changes to default settings - NONE
    Web browser being used - Chrome Version 31.0.1650.57 m

  • 2013-11-16 12:26:27

    Re: Change password does not work

    Some more info:

    I have set in config.inc:
    define('MAIL_USE_SMTP', TRUE);

    SMTP settings at ISP are:
    SMTP: mailout.one.com
    Port: 25
    Authentication / SSL: None
    username: a domain email address
    Password : domain email address password

    They stated to use SMTP mailer method in using mailer using scripts for PHP files. What should I adjust now as I am confused in this.

  • 2013-11-16 13:40:06

    Re: Change password does not work

    Settings in class.phpmailer.php are now:
    /////////////////////////////////////////////////
    // SMTP VARIABLES
    /////////////////////////////////////////////////

    /**
    * Sets the SMTP hosts. All hosts must be separated by a
    * semicolon. You can also specify a different port
    * for each host by using this format: [hostname:port]
    * (e.g. "smtp1.example.com:25;smtp2.example.com").
    * Hosts will be tried in order.
    * @var string
    */
    var $Host = "mailout.one.com";

    /**
    * Sets the default SMTP server port.
    * @var int
    */
    var $Port = 25;

    /**
    * Sets the SMTP HELO of the message (Default is $Hostname).
    * @var string
    */
    var $Helo = "";

    /**
    * Sets SMTP authentication. Utilizes the Username and Password variables.
    * @var bool
    */
    var $SMTPAuth = false;

    /**
    * Sets SMTP username.
    * @var string
    */
    var $Username = "A VALID EMAIL ADDRESS FILLED IN BY ME ON THE DOMAIN";

    /**
    * Sets SMTP password.
    * @var string
    */
    var $Password = "";

    /**
    * Sets the SMTP server timeout in seconds. This function will not
    * work with the win32 version.
    * @var int
    */
    var $Timeout = 10;

    /**
    * Sets SMTP class debugging on or off.
    * @var bool
    */
    var $SMTPDebug = false;

    /**
    * Prevents the SMTP connection from being closed after each mail
    * sending. If this is set to true then to close the connection
    * requires an explicit call to SmtpClose().
    * @var bool
    */
    var $SMTPKeepAlive = false;

    /**#@+
    * @access private
    */
    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";
    /**#@-*/

  • 2013-11-16 13:50:38

    Re: Change password does not work

    I do not have an answer for you unfortunately. Sendmail is expected on Linux systems. Normally during installation, a warning message appears if your system's mail is not configured.

    http://atutor.ca/atutor/docs/faq.php#1

    If you do figure it out, you may be able to help others by posting your results here.

  • 2013-11-18 03:08:38

    Re: Change password does not work

    Dear Greg,

    It took me quite some time, but with help of the ISP I found the solution to this problem, I hope it will work out for others that face the same issue:

    STEP 1:
    There was a a missing varible set on the SMTP setting in the intranet/include/classes/phpmailer/class.smtp.php file.

    The $host is missing thus it cannot connect to the server SMTP_SERVER_AS_DEFINED_BY_ISP_IN_PHP.INI at all. YOu need to edit the line:
    $this->smtp_conn = @fsockopen($host,

    and change it to $this->smtp_conn = @fsockopen('SMTP_SERVER_AS_DEFINED_BY_ISP_IN_PHP.INI',

    This should fix the issue in using SMTP method to send out emails from the Atutor website.

    STEP 2:
    Enable the SMTP method in the intranet/include/config.inc.php
    define('MAIL_USE_SMTP', TRUE);

    STEP 3:
    Settings in intranet/include/classes/phpmailer/class.phpmailer.php to be adjusted to reflect SMTP

    /////////////////////////////////////////////////
    // PUBLIC VARIABLES
    /////////////////////////////////////////////////

    /**
    * Email priority (1 = High, 3 = Normal, 5 = low).
    * @var int
    */
    var $Priority = 3;

    /**
    * Sets the CharSet of the message.
    * @var string
    */
    var $CharSet = "iso-8859-1";

    /**
    * Sets the Content-type of the message.
    * @var string
    */
    var $ContentType = "text/plain";

    /**
    * Sets the Encoding of the message. Options for this are "8bit",
    * "7bit", "binary", "base64", and "quoted-printable".
    * @var string
    */
    var $Encoding = "8bit";

    /**
    * Holds the most recent mailer error message.
    * @var string
    */
    var $ErrorInfo = "";

    /**
    * Sets the From email address for the message.
    * @var string
    */
    var $From = "EMAIL_YOU_HAVE_ON_THAT_ISP_SERVER";

    /**
    * Sets the From name of the message.
    * @var string
    */
    var $FromName = "EMAIL_YOU_HAVE_ON_THAT_ISP_SERVER";

    /**
    * Sets the Sender email (Return-Path) of the message. If not empty,
    * will be sent via -f to sendmail or as 'MAIL FROM' in smtp mode.
    * @var string
    */
    var $Sender = "EMAIL_YOU_HAVE_ON_THAT_ISP_SERVER";

    /**
    * Sets the Subject of the message.
    * @var string
    */
    var $Subject = "";

    /**
    * Sets the Body of the message. This can be either an HTML or text body.
    * If HTML then run IsHTML(true).
    * @var string
    */
    var $Body = "";

    /**
    * Sets the text-only body of the message. This automatically sets the
    * email to multipart/alternative. This body can be read by mail
    * clients that do not have HTML email capability such as mutt. Clients
    * that can read HTML will view the normal Body.
    * @var string
    */
    var $AltBody = "";

    /**
    * Sets word wrapping on the body of the message to a given number of
    * characters.
    * @var int
    */
    var $WordWrap = 0;

    /**
    * Method to send mail: ("mail", "sendmail", or "smtp").
    * @var string
    */
    var $Mailer = "mail";

    /**
    * Sets the path of the sendmail program.
    * @var string
    */
    var $Sendmail = "/usr/sbin/b1sendmail -t -i";

    /**
    * Path to PHPMailer plugins. This is now only useful if the SMTP class
    * is in a different directory than the PHP include path.
    * @var string
    */
    var $PluginDir = "";

    /**
    * Holds PHPMailer version.
    * @var string
    */
    var $Version = "1.73";

    /**
    * Sets the email address that a reading confirmation will be sent.
    * @var string
    */
    var $ConfirmReadingTo = "";

    /**
    * Sets the hostname to use in Message-Id and Received headers
    * and as default HELO string. If empty, the value returned
    * by SERVER_NAME is used or 'localhost.localdomain'.
    * @var string
    */
    var $Hostname = '';

    /////////////////////////////////////////////////
    // SMTP VARIABLES
    /////////////////////////////////////////////////

    /**
    * Sets the SMTP hosts. All hosts must be separated by a
    * semicolon. You can also specify a different port
    * for each host by using this format: [hostname:port]
    * (e.g. "smtp1.example.com:25;smtp2.example.com").
    * Hosts will be tried in order.
    * @var string
    */
    var $Host = "SMTP_SERVER_AS_DEFINED_BY_ISP_IN_PHP.INI";

    /**
    * Sets the default SMTP server port.
    * @var int
    */
    var $Port = 25;

    /**
    * Sets the SMTP HELO of the message (Default is $Hostname).
    * @var string
    */
    var $Helo = "";

    /**
    * Sets SMTP authentication. Utilizes the Username and Password variables.
    * @var bool
    */
    //var $SMTPAuth = false;

    /**
    * Sets SMTP username.
    * @var string
    */
    var $Username = "EMAIL_YOU_HAVE_ON_THAT_ISP_SERVER";

    /**
    * Sets SMTP password.
    * @var string
    */
    var $Password = "PASSWORD_EMAIL_YOU_HAVE_ON_THAT_ISP_SERVER";

    /**
    * Sets the SMTP server timeout in seconds. This function will not
    * work with the win32 version.
    * @var int
    */
    var $Timeout = 10;

    /**
    * Sets SMTP class debugging on or off.
    * @var bool
    */
    var $SMTPDebug = true;

    /**
    * Prevents the SMTP connection from being closed after each mail
    * sending. If this is set to true then to close the connection
    * requires an explicit call to SmtpClose().
    * @var bool
    */
    var $SMTPKeepAlive = false;

    /**#@+
    * @access private
    */
    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";
    /**#@-*/