My activities New request

contact atmail support

PH: +61 (7) 5357-6605

support@atmail.com

Follow

ChangePassword Plugin

Stewart -

PROBLEM

How can I enable change password feature for my users when using WebMail only version of Atmail?

ENVIRONMENT

  • Webmail Only Installations: Version 6.0 > 7.8

CAUSE

This is a skeleton plugin that, once integrated with your mailserver, allows you to add ChangePassword functionality to the WebMail only version of Atmail.

RESOLUTION

Download

The Change Password Plugin can be downloaded via the following URL.

http://download.atmail.com/plugins/mail-plugins/ChangePassword.tgz

Installation

Upload

Upload via Atmail WebAdmin > Plugins > Add Plugin.

Configuration

Via the terminal go to the ChangePassword directory.

/var/www/html/atmail/application/modules/mail/plugins/Atmail/ChangePassword/

Edit Api.php API config settings file.

vi Api.php

Then edit Api.php so it has your correct MailServer API details.

<?php
/**
 * This class is used to interface with your API so that the plugin
 * can change users' passwords
 *
 */
 
class Api
{
 /**
 * This is the email account name for which we need to change password
 */
 private $_emailAccount;
 public function __construct($emailAccount)
 {
 $this->_emailAccount = $emailAccount;
 
 // Do any further API connection/authentication if required
 }
 
 
 /**
 * This method is used to set the new password
 *
 * @param string $newPassword The user's new password
 * @return Bool|String Return boolean TRUE on success or an error message on failure
 */
 public function savePassword($newPassword)
 {
 // Use your API to set the new password
 
 }
 
}


Have more questions? Submit a request

Comments