![]() |
Send mail notifications via Gmail - Printable Version +- LetoDMS Community Forum (https://community.letodms.com) +-- Forum: LetoDMS Support (https://community.letodms.com/forumdisplay.php?fid=4) +--- Forum: General Questions (https://community.letodms.com/forumdisplay.php?fid=15) +--- Thread: Send mail notifications via Gmail (/showthread.php?tid=430) |
Send mail notifications via Gmail - ssrini - 01-08-2012 I require to also send out mail notifications via Gmail/Google Apps. The mail settings today do not permit that. Any easy ways this can be achieved? Thanks Srini RE: Send mail notifications via Gmail - hugo13 - 02-24-2012 download PHPMailer from http://code.google.com/a/apache-extras.org/p/phpmailer/downloads/list and add a folder called PHPMailer in the docRootOfLetoDMS I changed file inc/inc.ClassEmail.php add after line 19 PHP Code: require_once('../PHPMailer/class.phpmailer.php'); in the class I added PHP Code: function mail($recipient, $subject, $message, $header){ lines like PHP Code: return (mail($recipient->getEmail(), $this->replaceMarker($subject), $this->replaceMarker($message), $header) ? 0 : -1); PHP Code: return ($this->mail($recipient->getEmail(), $this->replaceMarker($subject), $this->replaceMarker($message), $header) ? 0 : -1); have fun rainer |