1 | <?php |
||
35 | class XoopsMultiMailer extends PHPMailer // for 6.0 \PHPMailer\PHPMailer\PHPMailer |
||
36 | { |
||
37 | /** |
||
38 | * 'from' address |
||
39 | * |
||
40 | * @var string from address |
||
41 | */ |
||
42 | public $From = ''; |
||
43 | |||
44 | /** |
||
45 | * 'from' name |
||
46 | * |
||
47 | * @var string from name |
||
48 | */ |
||
49 | public $FromName = ''; |
||
50 | |||
51 | // can be 'smtp', 'sendmail', or 'mail' |
||
52 | /** |
||
53 | * Method to be used when sending the mail. |
||
54 | * |
||
55 | * This can be: |
||
56 | * <li>mail (standard PHP function 'mail()') (default) |
||
57 | * <li>smtp (send through any SMTP server, SMTPAuth is supported. |
||
58 | * You must set {@link $Host}, for SMTPAuth also {@link $SMTPAuth}, |
||
59 | * {@link $Username}, and {@link $Password}.) |
||
60 | * <li>sendmail (manually set the path to your sendmail program |
||
61 | * to something different than 'mail()' uses in {@link $Sendmail}) |
||
62 | * |
||
63 | * @var string type of mailer |
||
64 | */ |
||
65 | public $Mailer = 'mail'; |
||
66 | |||
67 | /** |
||
68 | * set if $Mailer is 'sendmail' |
||
69 | * |
||
70 | * Only used if {@link $Mailer} is set to 'sendmail'. |
||
71 | * Contains the full path to your sendmail program or replacement. |
||
72 | * |
||
73 | * @var string sendmail configuration |
||
74 | */ |
||
75 | public $Sendmail = '/usr/sbin/sendmail'; |
||
76 | |||
77 | /** |
||
78 | * SMTP Host. |
||
79 | * |
||
80 | * Only used if {@link $Mailer} is set to 'smtp' |
||
81 | * |
||
82 | * @var string SMTP host name |
||
83 | */ |
||
84 | public $Host = ''; |
||
85 | |||
86 | /** |
||
87 | * Does your SMTP host require SMTPAuth authentication? |
||
88 | * |
||
89 | * @var boolean authorized? |
||
90 | */ |
||
91 | public $SMTPAuth = false; |
||
92 | |||
93 | /** |
||
94 | * Username for authentication with your SMTP host. |
||
95 | * |
||
96 | * Only used if {@link $Mailer} is 'smtp' and {@link $SMTPAuth} is TRUE |
||
97 | * |
||
98 | * @var string user name for SMTP authentication |
||
99 | */ |
||
100 | public $Username = ''; |
||
101 | |||
102 | /** |
||
103 | * Password for SMTPAuth. |
||
104 | * |
||
105 | * Only used if {@link $Mailer} is 'smtp' and {@link $SMTPAuth} is TRUE |
||
106 | * |
||
107 | * @var string password for smtp authentication |
||
108 | */ |
||
109 | public $Password = ''; |
||
110 | |||
111 | /** |
||
112 | * Constructor |
||
113 | */ |
||
114 | 28 | public function __construct() |
|
138 | } |
||
139 |