removed unused css classes
[openemr.git] / library / classes / postmaster.php
blob9ed806776f0021ea3a4e67c8bd3bfa44a3b07f5e
1 <?php
2 // Copyright (C) 2010 Open Support LLC
3 // This program is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU General Public License
5 // as published by the Free Software Foundation; either version 2
6 // of the License, or (at your option) any later version.
8 // Add these two lines to Authenticate in phpmailer.php, lines 633-634
9 // Customized for Web hosts that don't require SMTP authentication
10 // if ($SMTP_Auth=="No") { $connection = true; }
11 // Also, remove "25" in line 185 and change $Port to $this->Port on line 612 so that it can read Admin's setting
13 class MyMailer extends PHPMailer
15 var $Mailer;
16 var $SMTPAuth;
17 var $Host;
18 var $Username;
19 var $Password;
20 var $Port;
21 var $CharSet;
23 function __construct()
25 $this->emailMethod();
28 function emailMethod()
30 global $HTML_CHARSET;
31 $this->CharSet = $HTML_CHARSET;
32 switch($GLOBALS['EMAIL_METHOD'])
34 case "PHPMAIL" :
36 $this->Mailer = "mail";
38 break;
39 case "SMTP" :
41 global $SMTP_Auth;
42 $this->Mailer = "smtp";
43 $this->SMTPAuth = $SMTP_Auth;
44 $this->Host = $GLOBALS['SMTP_HOST'];
45 $this->Username = $GLOBALS['SMTP_USER'];
46 $this->Password = $GLOBALS['SMTP_PASS'];
47 $this->Port = $GLOBALS['SMTP_PORT'];
48 $this->SMTPSecure = $GLOBALS['SMTP_SECURE'];
50 break;
51 case "SENDMAIL" :
53 $this->Mailer = "sendmail";
55 break;