1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
<?php /* ExtCalendar v2 Copyright (C) 2003-2004 Mohamed Moujami (Simo)
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Date Started : 21/08/2002 Date Last Updated : 16/09/2004 Author(s) : Mohamed Moujami (Simo), Kristof De Jaeger Description : Extended Mail class
Get the latest version of ExtCalendar at http://extcal.sourceforge.net// */
require("class.phpmailer.php");
class extcalMailer extends phpmailer { // Set default variables for all new objects
var $Mail = false; var $Host = "";
var $From = ""; var $FromName = ""; var $CharSet = "";
var $Mailer = ""; // Method to send mail: ("mail", "sendmail", or "smtp").
var $WordWrap = 75; var $Sender = "";
function extcalMailer() { // defining the constructor global $CONFIG, $global_vars, $lang_info; $this->CharSet = $CONFIG['charset'] == 'language-file' ? $lang_info['charset'] : $CONFIG['charset']; $this->From = $CONFIG['calendar_admin_email']; $this->FromName = $CONFIG['calendar_name'];
$this->WordWrap = 0; $this->Helo = "localhost.localdomain";
switch($CONFIG['mail_method']) { case 'smtp': $this->IsSMTP(); break; case 'mail': $this->IsMail(); break; case 'sendmail': $this->IsSendmail(); break; case 'qmail': $this->IsQmail(); break; default: $this->IsMail(); // use php mail() by default }
$this->Host = $CONFIG["mail_smtp_host"]; //$this->Port = 25; $this->SMTPAuth = (int)$CONFIG['mail_smtp_auth']?true:false; // Sets SMTP authentication. //Utilizes the Username and Password variables if set to true $this->Username = $CONFIG['mail_smtp_username']; $this->Password = $CONFIG['mail_smtp_password']; //$this->PluginDir = $INCLUDE_DIR; $this->Sender = $CONFIG['calendar_admin_email']; $this->SMTPDebug = (int)$CONFIG['debug_mode']>0?true:false; }
/* // Replace the default error_handler function error_handler($msg) { echo "Site Error"; echo "Description:"; printf("%s", $msg); exit; } */
}
?>
|