![]() |
how to get email notification work - Printable Version +- LetoDMS Community Forum (https://community.letodms.com) +-- Forum: LetoDMS Support (https://community.letodms.com/forumdisplay.php?fid=4) +--- Forum: Technical Support (https://community.letodms.com/forumdisplay.php?fid=10) +--- Thread: how to get email notification work (/showthread.php?tid=251) |
how to get email notification work - hani133 - 02-24-2011 Hi, I'm a newbie to LetoDMS. Need assistance to enable the email notification for my LetoDMS application. I've already ENABLE the notification setting in the inc.Settings.php and still the notification is not working. Can anyone help please? RE: how to get email notification work - administrator - 02-24-2011 (02-24-2011, 12:20 PM)hani133 Wrote: Hi, hi please post your setting file plus LetoDMS version . and mysql and php version Thanks LetoDMS Team. RE: how to get email notification work - hani133 - 02-24-2011 Hi, following is my setting file:- class Settings { // Name of site -- used in the page titles. Default: MyDMS var $_siteName = "letoDMS"; // Message to display at the bottom of every page. var $_footNote = "letoDMS free document management system - www.letodms.com"; // if true the disclaimer message the lang.inc files will be print on the bottom of the page var $_printDisclaimer = true; // Default page on login. Defaults to out/out.ViewFolder.php var $_siteDefaultPage = ""; // IDs of admin-user, guest-user and root-folder (no need to change) var $_adminID = 1; var $_guestID = 2; var $_rootFolderID = 1; // If you want anybody to login as guest, set the following line to true // note: guest login should be used only in a trusted environment var $_enableGuestLogin = true; // Restricted access: only allow users to log in if they have an entry in // the local database (irrespective of successful authentication with LDAP). var $_restricted = true; // Strict form checking. If set to true, then all fields in the form will // be checked for a value. If set to false, then (most) comments and // keyword fields become optional. Comments are always required when // submitting a review or overriding document status. var $_strictFormCheck = false; // path to where mydms is located var $_rootDir = "C:/Program Files/BitNami WAMPStack/apache2/htdocs/dms/"; // The relative path in the URL, after the domain part. Do not include the // http:// prefix or the web host name. e.g. If the full URL is // http://www.example.com/mydms/, set $_httpRoot = "/mydms/". // If the URL is http://www.example.com/, set $_httpRoot = "/". var $_httpRoot = "/dms/"; // Where the uploaded files are stored (best to choose a directory that // is not accessible through your web-server) var $_contentDir = "C:/Program Files/BitNami WAMPStack/apache2/data/"; // To work around limitations in the underlying file system, a new // directory structure has been devised that exists within the content // directory ($_contentDir). This requires a base directory from which // to begin. Usually leave this to the default setting, 1048576, but can // be any number or string that does not already exist within $_contentDir. var $_contentOffsetDir = "1048576"; // Maximum number of sub-directories per parent directory. Default: 32700. var $_maxDirID = 32700; // default language (name of a subfolder in folder "languages") var $_language = "English"; // users are notified about document-changes that took place within the last $_updateNotifyTime seconds var $_updateNotifyTime = 86400; //means 24 hours // files with one of the following endings can be viewed online (USE ONLY LOWER CASE CHARACTERS) //var $_viewOnlineFileTypes = array(); var $_viewOnlineFileTypes = array(".txt", ".text", ".html", ".htm", ".pdf", ".gif", ".png", ".jpg", ".jpeg"); // enable/disable converting of files var $_enableConverting = false; // default style (name of a subfolder in folder "styles") var $_theme = "clean"; // Workaround for page titles that go over more than 2 lines. var $_titleDisplayHack = true; // enable/disable automatic email notification var $_enableEmail = true; // enable/disable group and user view for all users var $_enableUsersView = true; // false to don't list administrator as reviewer/approver var $_enableAdminRevApp = false; // the name of the versioning info file created by the backup tool var $_versioningFileName = "versioning_info.txt"; // set false to disable log system var $_logFileEnable = true; // the log file rotation (h=hourly, d=daily, m=monthly) var $_logFileRotation = "m"; // enable users images var $_enableUserImage = false; // enable calendar var $_enableCalendar = true; // calendar default view ("w" for week,"m" for month,"y" for year) var $_calendarDefaultView = "y"; // first day of the week (0=sunday, 6=saturday) var $_firstDayOfWeek = 0; // false to don't show the folder tree side panel var $_enableFolderTree = true; // 0 to start with tree hidden // 1 to start with tree shown and first level expanded // 2 to start with tree shown fully expanded var $_expandFolderTree = 1; // if true user cannot edit his own profile var $_disableSelfEdit = false; // if enabled admin can login only by specified IP addres // leave ampty to avoid the control // NOTE: works only with local autentication (no LDAP) var $_adminIP = ""; // -------------------------------- Database-Setup -------------------------------------------- //Path to adodb var $_ADOdbPath = "C:/Program Files/BitNami WAMPStack/apache2/htdocs/dms/adodb/"; //DB-Driver used by adodb (see adodb-readme) var $_dbDriver = "mysql"; //DB-Server var $_dbHostname = "localhost"; //database where the tables for mydms are stored (optional - see adodb-readme) var $_dbDatabase = "letodms"; //username for database-access var $_dbUser = "root"; //password for database-access var $_dbPass = "password"; // -------------------------------- LDAP Authentication Setup -------------------------------------------- /* new code by Doudoux - TO BE TESTED */ // var $_ldapHost = ""; // URIs are supported, e.g.: ldaps://ldap.host.com // var $_ldapPort = 389; // Optional. // var $_ldapBaseDN = ""; // var $_ldapAccountDomainName = ""; // var $_ldapType = 1; // 0 = Generic LDAP ; 1 = Microsoft LDAP /* old code */ // var $_ldapHost = ""; // URIs are supported, e.g.: ldaps://ldap.host.com // var $_ldapPort = 389; // Optional. // var $_ldapBaseDN = ""; function Settings() { //files with one of the following endings will be converted with the given commands //for windows users $this->_convertFileTypes = array(".doc" => "cscript \"" . $this->_rootDir."op/convert_word.js\" {SOURCE} {TARGET}", ".xls" => "cscript \"".$this->_rootDir."op/convert_excel.js\" {SOURCE} {TARGET}", ".ppt" => "cscript \"".$this->_rootDir."op/convert_pp.js\" {SOURCE} {TARGET}"); // For linux users // $this->_convertFileTypes = array(".doc" => "mswordview -o {TARGET} {SOURCE}"); } } $settings = new Settings(); ?> letodms version - 2.0.2 mysql version - 5.0.51a php version - 5.2.15 RE: how to get email notification work - administrator - 02-24-2011 (02-24-2011, 04:50 PM)hani133 Wrote: Hi, hi your settings are correct , LetoDMS uses php mail function so please check that on your server what i would suggest you to upload a form on your server and send a test email see if you get the email if it doesn't work then something you gotta check on your server thanks LetoDMS team RE: how to get email notification work - Doudoux - 02-24-2011 hy you must configure your SMTP server. in php.ini Code: SMTP = localhost or add this line in inc.Settings.php file PHP Code: ini_set('sendmail_from', 'you@yourdomain'); doudoux RE: how to get email notification work - simonbaev - 06-10-2011 (02-24-2011, 05:56 PM)Doudoux Wrote: hy Hi Everybody! The proposed modification (I tried editing php.ini file) doesn't fix the problem with Notifications via email for me. I believe details are important... below are mine: 1. OS: Debian Lenny 2. Version of letoDMS: 3.0 (retrieved from Downloads on 06/04/2011) 3. The server hosting letoDMS doesn't have FQDN -- it is set up for experimental purposes only. 4. The server hosting letoDMS can run an SMTP session (using telnet) with the ISP's SMTP server via port 25. (no authentication is in place). This means that SMTP server does not reject an incoming connection from the letoDMS server. I'm not good at PHP but I have an experience of setting up Moodle server on similar environment. It is also PHP + MySQL based webserver. It allows to specify an SMTP server using web interface so it works like a charm... My question: should I consider obtaining FQDN before trying to setup Notifications? Is there any workarounds of using existing SMTP server? Thanks. UPDATE: My latest finding was http://reflective.me/blog/matthew-clark/2009-oct-13/enabling-php-mail-debian-easily-and-quickly blog where I FOUND the solution. Thanks to Matthew Clark. -- Simon |