Project

General

Profile

« Previous | Next » 

Revision 2053

Added by darkviper almost 11 years ago

! update PHPMailer to version Version 5.2.7

View differences:

branches/2.8.x/CHANGELOG
11 11
! = Update/Change
12 12
===============================================================================
13 13

  
14
01 Jan-2014 Build 2053 Manuela v.d.Decken(DarkViper)
15
! update PHPMailer to version Version 5.2.7
14 16
29 Dec-2013 Build 2052 Manuela v.d.Decken(DarkViper)
15 17
# account/forgot_form : fixed fix...
16 18
29 Dec-2013 Build 2051 Manuela v.d.Decken(DarkViper)
branches/2.8.x/wb/include/phpmailer/LICENSE
1
		  GNU LESSER GENERAL PUBLIC LICENSE
2
		       Version 2.1, February 1999
3

  
4
 Copyright (C) 1991, 1999 Free Software Foundation, Inc.
5
     59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
6
 Everyone is permitted to copy and distribute verbatim copies
7
 of this license document, but changing it is not allowed.
8

  
9
[This is the first released version of the Lesser GPL.  It also counts
10
 as the successor of the GNU Library Public License, version 2, hence
11
 the version number 2.1.]
12

  
13
			    Preamble
14

  
15
  The licenses for most software are designed to take away your
16
freedom to share and change it.  By contrast, the GNU General Public
17
Licenses are intended to guarantee your freedom to share and change
18
free software--to make sure the software is free for all its users.
19

  
20
  This license, the Lesser General Public License, applies to some
21
specially designated software packages--typically libraries--of the
22
Free Software Foundation and other authors who decide to use it.  You
23
can use it too, but we suggest you first think carefully about whether
24
this license or the ordinary General Public License is the better
25
strategy to use in any particular case, based on the explanations below.
26

  
27
  When we speak of free software, we are referring to freedom of use,
28
not price.  Our General Public Licenses are designed to make sure that
29
you have the freedom to distribute copies of free software (and charge
30
for this service if you wish); that you receive source code or can get
31
it if you want it; that you can change the software and use pieces of
32
it in new free programs; and that you are informed that you can do
33
these things.
34

  
35
  To protect your rights, we need to make restrictions that forbid
36
distributors to deny you these rights or to ask you to surrender these
37
rights.  These restrictions translate to certain responsibilities for
38
you if you distribute copies of the library or if you modify it.
39

  
40
  For example, if you distribute copies of the library, whether gratis
41
or for a fee, you must give the recipients all the rights that we gave
42
you.  You must make sure that they, too, receive or can get the source
43
code.  If you link other code with the library, you must provide
44
complete object files to the recipients, so that they can relink them
45
with the library after making changes to the library and recompiling
46
it.  And you must show them these terms so they know their rights.
47

  
48
  We protect your rights with a two-step method: (1) we copyright the
49
library, and (2) we offer you this license, which gives you legal
50
permission to copy, distribute and/or modify the library.
51

  
52
  To protect each distributor, we want to make it very clear that
53
there is no warranty for the free library.  Also, if the library is
54
modified by someone else and passed on, the recipients should know
55
that what they have is not the original version, so that the original
56
author's reputation will not be affected by problems that might be
57
introduced by others.
58

  
59
  Finally, software patents pose a constant threat to the existence of
60
any free program.  We wish to make sure that a company cannot
61
effectively restrict the users of a free program by obtaining a
62
restrictive license from a patent holder.  Therefore, we insist that
63
any patent license obtained for a version of the library must be
64
consistent with the full freedom of use specified in this license.
65

  
66
  Most GNU software, including some libraries, is covered by the
67
ordinary GNU General Public License.  This license, the GNU Lesser
68
General Public License, applies to certain designated libraries, and
69
is quite different from the ordinary General Public License.  We use
70
this license for certain libraries in order to permit linking those
71
libraries into non-free programs.
72

  
73
  When a program is linked with a library, whether statically or using
74
a shared library, the combination of the two is legally speaking a
75
combined work, a derivative of the original library.  The ordinary
76
General Public License therefore permits such linking only if the
77
entire combination fits its criteria of freedom.  The Lesser General
78
Public License permits more lax criteria for linking other code with
79
the library.
80

  
81
  We call this license the "Lesser" General Public License because it
82
does Less to protect the user's freedom than the ordinary General
83
Public License.  It also provides other free software developers Less
84
of an advantage over competing non-free programs.  These disadvantages
85
are the reason we use the ordinary General Public License for many
86
libraries.  However, the Lesser license provides advantages in certain
87
special circumstances.
88

  
89
  For example, on rare occasions, there may be a special need to
90
encourage the widest possible use of a certain library, so that it becomes
91
a de-facto standard.  To achieve this, non-free programs must be
92
allowed to use the library.  A more frequent case is that a free
93
library does the same job as widely used non-free libraries.  In this
94
case, there is little to gain by limiting the free library to free
95
software only, so we use the Lesser General Public License.
96

  
97
  In other cases, permission to use a particular library in non-free
98
programs enables a greater number of people to use a large body of
99
free software.  For example, permission to use the GNU C Library in
100
non-free programs enables many more people to use the whole GNU
101
operating system, as well as its variant, the GNU/Linux operating
102
system.
103

  
104
  Although the Lesser General Public License is Less protective of the
105
users' freedom, it does ensure that the user of a program that is
106
linked with the Library has the freedom and the wherewithal to run
107
that program using a modified version of the Library.
108

  
109
  The precise terms and conditions for copying, distribution and
110
modification follow.  Pay close attention to the difference between a
111
"work based on the library" and a "work that uses the library".  The
112
former contains code derived from the library, whereas the latter must
113
be combined with the library in order to run.
114

  
115
		  GNU LESSER GENERAL PUBLIC LICENSE
116
   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
117

  
118
  0. This License Agreement applies to any software library or other
119
program which contains a notice placed by the copyright holder or
120
other authorized party saying it may be distributed under the terms of
121
this Lesser General Public License (also called "this License").
122
Each licensee is addressed as "you".
123

  
124
  A "library" means a collection of software functions and/or data
125
prepared so as to be conveniently linked with application programs
126
(which use some of those functions and data) to form executables.
127

  
128
  The "Library", below, refers to any such software library or work
129
which has been distributed under these terms.  A "work based on the
130
Library" means either the Library or any derivative work under
131
copyright law: that is to say, a work containing the Library or a
132
portion of it, either verbatim or with modifications and/or translated
133
straightforwardly into another language.  (Hereinafter, translation is
134
included without limitation in the term "modification".)
135

  
136
  "Source code" for a work means the preferred form of the work for
137
making modifications to it.  For a library, complete source code means
138
all the source code for all modules it contains, plus any associated
139
interface definition files, plus the scripts used to control compilation
140
and installation of the library.
141

  
142
  Activities other than copying, distribution and modification are not
143
covered by this License; they are outside its scope.  The act of
144
running a program using the Library is not restricted, and output from
145
such a program is covered only if its contents constitute a work based
146
on the Library (independent of the use of the Library in a tool for
147
writing it).  Whether that is true depends on what the Library does
148
and what the program that uses the Library does.
149
  
150
  1. You may copy and distribute verbatim copies of the Library's
151
complete source code as you receive it, in any medium, provided that
152
you conspicuously and appropriately publish on each copy an
153
appropriate copyright notice and disclaimer of warranty; keep intact
154
all the notices that refer to this License and to the absence of any
155
warranty; and distribute a copy of this License along with the
156
Library.
157

  
158
  You may charge a fee for the physical act of transferring a copy,
159
and you may at your option offer warranty protection in exchange for a
160
fee.
161

  
162
  2. You may modify your copy or copies of the Library or any portion
163
of it, thus forming a work based on the Library, and copy and
164
distribute such modifications or work under the terms of Section 1
165
above, provided that you also meet all of these conditions:
166

  
167
    a) The modified work must itself be a software library.
168

  
169
    b) You must cause the files modified to carry prominent notices
170
    stating that you changed the files and the date of any change.
171

  
172
    c) You must cause the whole of the work to be licensed at no
173
    charge to all third parties under the terms of this License.
174

  
175
    d) If a facility in the modified Library refers to a function or a
176
    table of data to be supplied by an application program that uses
177
    the facility, other than as an argument passed when the facility
178
    is invoked, then you must make a good faith effort to ensure that,
179
    in the event an application does not supply such function or
180
    table, the facility still operates, and performs whatever part of
181
    its purpose remains meaningful.
182

  
183
    (For example, a function in a library to compute square roots has
184
    a purpose that is entirely well-defined independent of the
185
    application.  Therefore, Subsection 2d requires that any
186
    application-supplied function or table used by this function must
187
    be optional: if the application does not supply it, the square
188
    root function must still compute square roots.)
189

  
190
These requirements apply to the modified work as a whole.  If
191
identifiable sections of that work are not derived from the Library,
192
and can be reasonably considered independent and separate works in
193
themselves, then this License, and its terms, do not apply to those
194
sections when you distribute them as separate works.  But when you
195
distribute the same sections as part of a whole which is a work based
196
on the Library, the distribution of the whole must be on the terms of
197
this License, whose permissions for other licensees extend to the
198
entire whole, and thus to each and every part regardless of who wrote
199
it.
200

  
201
Thus, it is not the intent of this section to claim rights or contest
202
your rights to work written entirely by you; rather, the intent is to
203
exercise the right to control the distribution of derivative or
204
collective works based on the Library.
205

  
206
In addition, mere aggregation of another work not based on the Library
207
with the Library (or with a work based on the Library) on a volume of
208
a storage or distribution medium does not bring the other work under
209
the scope of this License.
210

  
211
  3. You may opt to apply the terms of the ordinary GNU General Public
212
License instead of this License to a given copy of the Library.  To do
213
this, you must alter all the notices that refer to this License, so
214
that they refer to the ordinary GNU General Public License, version 2,
215
instead of to this License.  (If a newer version than version 2 of the
216
ordinary GNU General Public License has appeared, then you can specify
217
that version instead if you wish.)  Do not make any other change in
218
these notices.
219

  
220
  Once this change is made in a given copy, it is irreversible for
221
that copy, so the ordinary GNU General Public License applies to all
222
subsequent copies and derivative works made from that copy.
223

  
224
  This option is useful when you wish to copy part of the code of
225
the Library into a program that is not a library.
226

  
227
  4. You may copy and distribute the Library (or a portion or
228
derivative of it, under Section 2) in object code or executable form
229
under the terms of Sections 1 and 2 above provided that you accompany
230
it with the complete corresponding machine-readable source code, which
231
must be distributed under the terms of Sections 1 and 2 above on a
232
medium customarily used for software interchange.
233

  
234
  If distribution of object code is made by offering access to copy
235
from a designated place, then offering equivalent access to copy the
236
source code from the same place satisfies the requirement to
237
distribute the source code, even though third parties are not
238
compelled to copy the source along with the object code.
239

  
240
  5. A program that contains no derivative of any portion of the
241
Library, but is designed to work with the Library by being compiled or
242
linked with it, is called a "work that uses the Library".  Such a
243
work, in isolation, is not a derivative work of the Library, and
244
therefore falls outside the scope of this License.
245

  
246
  However, linking a "work that uses the Library" with the Library
247
creates an executable that is a derivative of the Library (because it
248
contains portions of the Library), rather than a "work that uses the
249
library".  The executable is therefore covered by this License.
250
Section 6 states terms for distribution of such executables.
251

  
252
  When a "work that uses the Library" uses material from a header file
253
that is part of the Library, the object code for the work may be a
254
derivative work of the Library even though the source code is not.
255
Whether this is true is especially significant if the work can be
256
linked without the Library, or if the work is itself a library.  The
257
threshold for this to be true is not precisely defined by law.
258

  
259
  If such an object file uses only numerical parameters, data
260
structure layouts and accessors, and small macros and small inline
261
functions (ten lines or less in length), then the use of the object
262
file is unrestricted, regardless of whether it is legally a derivative
263
work.  (Executables containing this object code plus portions of the
264
Library will still fall under Section 6.)
265

  
266
  Otherwise, if the work is a derivative of the Library, you may
267
distribute the object code for the work under the terms of Section 6.
268
Any executables containing that work also fall under Section 6,
269
whether or not they are linked directly with the Library itself.
270

  
271
  6. As an exception to the Sections above, you may also combine or
272
link a "work that uses the Library" with the Library to produce a
273
work containing portions of the Library, and distribute that work
274
under terms of your choice, provided that the terms permit
275
modification of the work for the customer's own use and reverse
276
engineering for debugging such modifications.
277

  
278
  You must give prominent notice with each copy of the work that the
279
Library is used in it and that the Library and its use are covered by
280
this License.  You must supply a copy of this License.  If the work
281
during execution displays copyright notices, you must include the
282
copyright notice for the Library among them, as well as a reference
283
directing the user to the copy of this License.  Also, you must do one
284
of these things:
285

  
286
    a) Accompany the work with the complete corresponding
287
    machine-readable source code for the Library including whatever
288
    changes were used in the work (which must be distributed under
289
    Sections 1 and 2 above); and, if the work is an executable linked
290
    with the Library, with the complete machine-readable "work that
291
    uses the Library", as object code and/or source code, so that the
292
    user can modify the Library and then relink to produce a modified
293
    executable containing the modified Library.  (It is understood
294
    that the user who changes the contents of definitions files in the
295
    Library will not necessarily be able to recompile the application
296
    to use the modified definitions.)
297

  
298
    b) Use a suitable shared library mechanism for linking with the
299
    Library.  A suitable mechanism is one that (1) uses at run time a
300
    copy of the library already present on the user's computer system,
301
    rather than copying library functions into the executable, and (2)
302
    will operate properly with a modified version of the library, if
303
    the user installs one, as long as the modified version is
304
    interface-compatible with the version that the work was made with.
305

  
306
    c) Accompany the work with a written offer, valid for at
307
    least three years, to give the same user the materials
308
    specified in Subsection 6a, above, for a charge no more
309
    than the cost of performing this distribution.
310

  
311
    d) If distribution of the work is made by offering access to copy
312
    from a designated place, offer equivalent access to copy the above
313
    specified materials from the same place.
314

  
315
    e) Verify that the user has already received a copy of these
316
    materials or that you have already sent this user a copy.
317

  
318
  For an executable, the required form of the "work that uses the
319
Library" must include any data and utility programs needed for
320
reproducing the executable from it.  However, as a special exception,
321
the materials to be distributed need not include anything that is
322
normally distributed (in either source or binary form) with the major
323
components (compiler, kernel, and so on) of the operating system on
324
which the executable runs, unless that component itself accompanies
325
the executable.
326

  
327
  It may happen that this requirement contradicts the license
328
restrictions of other proprietary libraries that do not normally
329
accompany the operating system.  Such a contradiction means you cannot
330
use both them and the Library together in an executable that you
331
distribute.
332

  
333
  7. You may place library facilities that are a work based on the
334
Library side-by-side in a single library together with other library
335
facilities not covered by this License, and distribute such a combined
336
library, provided that the separate distribution of the work based on
337
the Library and of the other library facilities is otherwise
338
permitted, and provided that you do these two things:
339

  
340
    a) Accompany the combined library with a copy of the same work
341
    based on the Library, uncombined with any other library
342
    facilities.  This must be distributed under the terms of the
343
    Sections above.
344

  
345
    b) Give prominent notice with the combined library of the fact
346
    that part of it is a work based on the Library, and explaining
347
    where to find the accompanying uncombined form of the same work.
348

  
349
  8. You may not copy, modify, sublicense, link with, or distribute
350
the Library except as expressly provided under this License.  Any
351
attempt otherwise to copy, modify, sublicense, link with, or
352
distribute the Library is void, and will automatically terminate your
353
rights under this License.  However, parties who have received copies,
354
or rights, from you under this License will not have their licenses
355
terminated so long as such parties remain in full compliance.
356

  
357
  9. You are not required to accept this License, since you have not
358
signed it.  However, nothing else grants you permission to modify or
359
distribute the Library or its derivative works.  These actions are
360
prohibited by law if you do not accept this License.  Therefore, by
361
modifying or distributing the Library (or any work based on the
362
Library), you indicate your acceptance of this License to do so, and
363
all its terms and conditions for copying, distributing or modifying
364
the Library or works based on it.
365

  
366
  10. Each time you redistribute the Library (or any work based on the
367
Library), the recipient automatically receives a license from the
368
original licensor to copy, distribute, link with or modify the Library
369
subject to these terms and conditions.  You may not impose any further
370
restrictions on the recipients' exercise of the rights granted herein.
371
You are not responsible for enforcing compliance by third parties with
372
this License.
373

  
374
  11. If, as a consequence of a court judgment or allegation of patent
375
infringement or for any other reason (not limited to patent issues),
376
conditions are imposed on you (whether by court order, agreement or
377
otherwise) that contradict the conditions of this License, they do not
378
excuse you from the conditions of this License.  If you cannot
379
distribute so as to satisfy simultaneously your obligations under this
380
License and any other pertinent obligations, then as a consequence you
381
may not distribute the Library at all.  For example, if a patent
382
license would not permit royalty-free redistribution of the Library by
383
all those who receive copies directly or indirectly through you, then
384
the only way you could satisfy both it and this License would be to
385
refrain entirely from distribution of the Library.
386

  
387
If any portion of this section is held invalid or unenforceable under any
388
particular circumstance, the balance of the section is intended to apply,
389
and the section as a whole is intended to apply in other circumstances.
390

  
391
It is not the purpose of this section to induce you to infringe any
392
patents or other property right claims or to contest validity of any
393
such claims; this section has the sole purpose of protecting the
394
integrity of the free software distribution system which is
395
implemented by public license practices.  Many people have made
396
generous contributions to the wide range of software distributed
397
through that system in reliance on consistent application of that
398
system; it is up to the author/donor to decide if he or she is willing
399
to distribute software through any other system and a licensee cannot
400
impose that choice.
401

  
402
This section is intended to make thoroughly clear what is believed to
403
be a consequence of the rest of this License.
404

  
405
  12. If the distribution and/or use of the Library is restricted in
406
certain countries either by patents or by copyrighted interfaces, the
407
original copyright holder who places the Library under this License may add
408
an explicit geographical distribution limitation excluding those countries,
409
so that distribution is permitted only in or among countries not thus
410
excluded.  In such case, this License incorporates the limitation as if
411
written in the body of this License.
412

  
413
  13. The Free Software Foundation may publish revised and/or new
414
versions of the Lesser General Public License from time to time.
415
Such new versions will be similar in spirit to the present version,
416
but may differ in detail to address new problems or concerns.
417

  
418
Each version is given a distinguishing version number.  If the Library
419
specifies a version number of this License which applies to it and
420
"any later version", you have the option of following the terms and
421
conditions either of that version or of any later version published by
422
the Free Software Foundation.  If the Library does not specify a
423
license version number, you may choose any version ever published by
424
the Free Software Foundation.
425

  
426
  14. If you wish to incorporate parts of the Library into other free
427
programs whose distribution conditions are incompatible with these,
428
write to the author to ask for permission.  For software which is
429
copyrighted by the Free Software Foundation, write to the Free
430
Software Foundation; we sometimes make exceptions for this.  Our
431
decision will be guided by the two goals of preserving the free status
432
of all derivatives of our free software and of promoting the sharing
433
and reuse of software generally.
434

  
435
			    NO WARRANTY
436

  
437
  15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
438
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
439
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
440
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
441
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
442
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
443
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
444
LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
445
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
446

  
447
  16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
448
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
449
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
450
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
451
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
452
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
453
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
454
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
455
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
456
DAMAGES.
457

  
458
		     END OF TERMS AND CONDITIONS
459

  
460
           How to Apply These Terms to Your New Libraries
461

  
462
  If you develop a new library, and you want it to be of the greatest
463
possible use to the public, we recommend making it free software that
464
everyone can redistribute and change.  You can do so by permitting
465
redistribution under these terms (or, alternatively, under the terms of the
466
ordinary General Public License).
467

  
468
  To apply these terms, attach the following notices to the library.  It is
469
safest to attach them to the start of each source file to most effectively
470
convey the exclusion of warranty; and each file should have at least the
471
"copyright" line and a pointer to where the full notice is found.
472

  
473
    <one line to give the library's name and a brief idea of what it does.>
474
    Copyright (C) <year>  <name of author>
475

  
476
    This library is free software; you can redistribute it and/or
477
    modify it under the terms of the GNU Lesser General Public
478
    License as published by the Free Software Foundation; either
479
    version 2.1 of the License, or (at your option) any later version.
480

  
481
    This library is distributed in the hope that it will be useful,
482
    but WITHOUT ANY WARRANTY; without even the implied warranty of
483
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
484
    Lesser General Public License for more details.
485

  
486
    You should have received a copy of the GNU Lesser General Public
487
    License along with this library; if not, write to the Free Software
488
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
489

  
490
Also add information on how to contact you by electronic and paper mail.
491

  
492
You should also get your employer (if you work as a programmer) or your
493
school, if any, to sign a "copyright disclaimer" for the library, if
494
necessary.  Here is a sample; alter the names:
495

  
496
  Yoyodyne, Inc., hereby disclaims all copyright interest in the
497
  library `Frob' (a library for tweaking knobs) written by James Random Hacker.
498

  
499
  <signature of Ty Coon>, 1 April 1990
500
  Ty Coon, President of Vice
501

  
502
That's all there is to it!
503

  
504

  
505 0

  
branches/2.8.x/wb/include/phpmailer/README
1
/*******************************************************************
2
*     http://code.google.com/a/apache-extras.org/p/phpmailer/      *
3
********************************************************************/
4

  
5
PHPMailer
6
Full Featured Email Transfer Class for PHP
7
==========================================
8

  
9
Version 5.2.1 (January 16, 2012)
10

  
11
Patch release (see changelog.txt).
12

  
13
Version 5.2.0 (July 19, 2011)
14

  
15
With the release of this version, PHPMailer has moved to Apache
16
Extras:
17
   http://code.google.com/a/apache-extras.org/p/phpmailer/
18

  
19
Version 5.0.0 (April 02, 2009)
20

  
21
With the release of this version, we are initiating a new version numbering
22
system to differentiate from the PHP4 version of PHPMailer.
23

  
24
Most notable in this release is fully object oriented code.
25

  
26
We now have available the PHPDocumentor (phpdocs) documentation. This is
27
separate from the regular download to keep file sizes down. Please see the
28
download area of http://phpmailer.codeworxtech.com.
29

  
30
We also have created a new test script (see /test_script) that you can use
31
right out of the box. Copy the /test_script folder directly to your server (in
32
the same structure ... with class.phpmailer.php and class.smtp.php in the
33
folder above it. Then launch the test script with:
34
http://www.yourdomain.com/phpmailer/test_script/index.php
35
from this one script, you can test your server settings for mail(), sendmail (or
36
qmail), and SMTP. This will email you a sample email (using contents.html for
37
the email body) and two attachments. One of the attachments is used as an inline
38
image to demonstrate how PHPMailer will automatically detect if attachments are
39
the same source as inline graphics and only include one version. Once you click
40
the Submit button, the results will be displayed including any SMTP debug
41
information and send status. We will also display a version of the script that
42
you can cut and paste to include in your projects. Enjoy!
43

  
44
Version 2.3 (November 08, 2008)
45

  
46
We have removed the /phpdoc from the downloads. All documentation is now on
47
the http://phpmailer.codeworxtech.com website.
48

  
49
The phpunit.php has been updated to support PHP5.
50

  
51
For all other changes and notes, please see the changelog.
52

  
53
Donations are accepted at PayPal with our id "paypal@worxteam.com".
54

  
55
Version 2.2 (July 15 2008)
56

  
57
- see the changelog.
58

  
59
Version 2.1 (June 04 2008)
60

  
61
With this release, we are announcing that the development of PHPMailer for PHP5
62
will be our focus from this date on. We have implemented all the enhancements
63
and fixes from the latest release of PHPMailer for PHP4.
64

  
65
Far more important, though, is that this release of PHPMailer (v2.1) is
66
fully tested with E_STRICT error checking enabled.
67

  
68
** NOTE: WE HAVE A NEW LANGUAGE VARIABLE FOR DIGITALLY SIGNED S/MIME EMAILS.
69
   IF YOU CAN HELP WITH LANGUAGES OTHER THAN ENGLISH AND SPANISH, IT WOULD BE
70
   APPRECIATED.
71

  
72
We have now added S/MIME functionality (ability to digitally sign emails).
73
BIG THANKS TO "sergiocambra" for posting this patch back in November 2007.
74
The "Signed Emails" functionality adds the Sign method to pass the private key
75
filename and the password to read it, and then email will be sent with
76
content-type multipart/signed and with the digital signature attached.
77

  
78
A quick note on E_STRICT:
79

  
80
- In about half the test environments the development version was subjected
81
  to, an error was thrown for the date() functions (used at line 1565 and 1569).
82
  This is NOT a PHPMailer error, it is the result of an incorrectly configured
83
  PHP5 installation. The fix is to modify your 'php.ini' file and include the
84
  date.timezone = America/New York
85
  directive, (for your own server timezone)
86
- If you do get this error, and are unable to access your php.ini file, there is
87
  a workaround. In your PHP script, add
88
  date_default_timezone_set('America/Toronto');
89

  
90
  * do NOT try to use
91
  $myVar = date_default_timezone_get();
92
  as a test, it will throw an error.
93

  
94
We have also included more example files to show the use of "sendmail", "mail()",
95
"smtp", and "gmail".
96

  
97
We are also looking for more programmers to join the volunteer development team.
98
If you have an interest in this, please let us know.
99

  
100
Enjoy!
101

  
102

  
103
Version 2.1.0beta1 & beta2
104

  
105
please note, this is BETA software
106
** DO NOT USE THIS IN PRODUCTION OR LIVE PROJECTS
107
INTENDED STRICTLY FOR TESTING
108

  
109
** NOTE:
110

  
111
As of November 2007, PHPMailer has a new project team headed by industry
112
veteran Andy Prevost (codeworxtech). The first release in more than two
113
years will focus on fixes, adding ease-of-use enhancements, provide
114
basic compatibility with PHP4 and PHP5 using PHP5 backwards compatibility
115
features. A new release is planned before year-end 2007 that will provide
116
full compatiblity with PHP4 and PHP5, as well as more bug fixes.
117

  
118
We are looking for project developers to assist in restoring PHPMailer to
119
its leadership position. Our goals are to simplify use of PHPMailer, provide
120
good documentation and examples, and retain backward compatibility to level
121
1.7.3 standards.
122

  
123
If you are interested in helping out, visit http://sourceforge.net/projects/phpmailer
124
and indicate your interest.
125

  
126
**
127

  
128
http://phpmailer.sourceforge.net/
129

  
130
This software is licenced under the LGPL.  Please read LICENSE for information on the
131
software availability and distribution.
132

  
133
Class Features:
134
- Send emails with multiple TOs, CCs, BCCs and REPLY-TOs
135
- Redundant SMTP servers
136
- Multipart/alternative emails for mail clients that do not read HTML email
137
- Support for 8bit, base64, binary, and quoted-printable encoding
138
- Uses the same methods as the very popular AspEmail active server (COM) component
139
- SMTP authentication
140
- Native language support
141
- Word wrap, and more!
142

  
143
Why you might need it:
144

  
145
Many PHP developers utilize email in their code.  The only PHP function
146
that supports this is the mail() function.  However, it does not expose
147
any of the popular features that many email clients use nowadays like
148
HTML-based emails and attachments. There are two proprietary
149
development tools out there that have all the functionality built into
150
easy to use classes: AspEmail(tm) and AspMail.  Both of these
151
programs are COM components only available on Windows.  They are also a
152
little pricey for smaller projects.
153

  
154
Since I do Linux development I�ve missed these tools for my PHP coding.
155
So I built a version myself that implements the same methods (object
156
calls) that the Windows-based components do. It is open source and the
157
LGPL license allows you to place the class in your proprietary PHP
158
projects.
159

  
160

  
161
Installation:
162

  
163
Copy class.phpmailer.php into your php.ini include_path. If you are
164
using the SMTP mailer then place class.smtp.php in your path as well.
165
In the language directory you will find several files like
166
phpmailer.lang-en.php.  If you look right before the .php extension
167
that there are two letters.  These represent the language type of the
168
translation file.  For instance "en" is the English file and "br" is
169
the Portuguese file.  Chose the file that best fits with your language
170
and place it in the PHP include path.  If your language is English
171
then you have nothing more to do.  If it is a different language then
172
you must point PHPMailer to the correct translation.  To do this, call
173
the PHPMailer SetLanguage method like so:
174

  
175
// To load the Portuguese version
176
$mail->SetLanguage("br", "/optional/path/to/language/directory/");
177

  
178
That's it.  You should now be ready to use PHPMailer!
179

  
180

  
181
A Simple Example:
182

  
183
<?php
184
require("class.phpmailer.php");
185

  
186
$mail = new PHPMailer();
187

  
188
$mail->IsSMTP();                                      // set mailer to use SMTP
189
$mail->Host = "smtp1.example.com;smtp2.example.com";  // specify main and backup server
190
$mail->SMTPAuth = true;     // turn on SMTP authentication
191
$mail->Username = "jswan";  // SMTP username
192
$mail->Password = "secret"; // SMTP password
193

  
194
$mail->From = "from@example.com";
195
$mail->FromName = "Mailer";
196
$mail->AddAddress("josh@example.net", "Josh Adams");
197
$mail->AddAddress("ellen@example.com");                  // name is optional
198
$mail->AddReplyTo("info@example.com", "Information");
199

  
200
$mail->WordWrap = 50;                                 // set word wrap to 50 characters
201
$mail->AddAttachment("/var/tmp/file.tar.gz");         // add attachments
202
$mail->AddAttachment("/tmp/image.jpg", "new.jpg");    // optional name
203
$mail->IsHTML(true);                                  // set email format to HTML
204

  
205
$mail->Subject = "Here is the subject";
206
$mail->Body    = "This is the HTML message body <b>in bold!</b>";
207
$mail->AltBody = "This is the body in plain text for non-HTML mail clients";
208

  
209
if(!$mail->Send())
210
{
211
   echo "Message could not be sent. <p>";
212
   echo "Mailer Error: " . $mail->ErrorInfo;
213
   exit;
214
}
215

  
216
echo "Message has been sent";
217
?>
218

  
219
CHANGELOG
220

  
221
See ChangeLog.txt
222

  
223
Download: http://sourceforge.net/project/showfiles.php?group_id=26031
224

  
225
Andy Prevost
226 0

  
branches/2.8.x/wb/include/phpmailer/ChangeLog.txt
1
ChangeLog
2

  
3
NOTE: THIS VERSION OF PHPMAILER IS DESIGNED FOR PHP5/PHP6.
4
      IT WILL NOT WORK WITH PHP4.
5

  
6
Version 5.2.1 (January 16, 2012)
7
* Closed several bugs
8
* Performance improvements
9
* MsgHTML() now returns the message as required.
10
* New method: GetSentMIMEMessage() (returns full copy of sent message)
11

  
12
Version 5.2 (July 19, 2011)
13
* protected MIME body and header
14
* better DKIM DNS Resource Record support
15
* better aly handling
16
* htmlfilter class added to extras
17
* moved to Apache Extras
18

  
19
Version 5.1 (October 20, 2009)
20
* fixed filename issue with AddStringAttachment (thanks to Tony)
21
* fixed "SingleTo" property, now works with Senmail, Qmail, and SMTP in
22
  addition to PHP mail()
23
* added DKIM digital signing functionality
24
  New properties:
25
  - DKIM_domain (sets the domain name)
26
  - DKIM_private (holds DKIM private key)
27
  - DKIM_passphrase (holds your DKIM passphrase)
28
  - DKIM_selector (holds the DKIM "selector")
29
  - DKIM_identity (holds the identifying email address)
30
* added callback function support
31
  - callback function parameters include:
32
    result, to, cc, bcc, subject and body
33
  * see the test/test_callback.php file for usage.
34
* added "auto" identity functionality
35
  - can automatically add:
36
    - Return-path (if Sender not set)
37
    - Reply-To (if ReplyTo not set)
38
  - can be disabled:
39
    - $mail->SetFrom('yourname@yourdomain.com','First Last',false);
40
    - or by adding the $mail->Sender and/or $mail->ReplyTo properties
41
  Note: "auto" identity added to help with emails ending up in spam
42
  or junk boxes because of missing headers
43

  
44
Version 5.0.2 (May 24, 2009)
45
* Fix for missing attachments when inline graphics are present
46
* Fix for missing Cc in header when using SMTP (mail was sent,
47
  but not displayed in header -- Cc receiver only saw email To: 
48
  line and no Cc line, but did get the email (To receiver
49
  saw same)
50

  
51
Version 5.0.1 (April 05, 2009)
52
* Temporary fix for missing attachments
53

  
54
Version 5.0.0 (April 02, 2009)
55

  
56
* With the release of this version, we are initiating a new version numbering
57
  system to differentiate from the PHP4 version of PHPMailer.
58
* Most notable in this release is fully object oriented code.
59
class.smtp.php:
60
* Refactored class.smtp.php to support new exception handling
61
  code size reduced from 29.2 Kb to 25.6 Kb
62
* Removed unnecessary functions from class.smtp.php:
63
  public function Expand($name) {
64
  public function Help($keyword="") {
65
  public function Noop() {
66
  public function Send($from) {
67
  public function SendOrMail($from) {
68
  public function Verify($name) {
69
class.phpmailer.php:
70
* Refactored class.phpmailer.php with new exception handling
71
* Changed processing functionality of Sendmail and Qmail so they cannot be
72
  inadvertently used
73
* removed getFile() function, just became a simple wrapper for
74
  file_get_contents()
75
* added check for PHP version (will gracefully exit if not at least PHP 5.0)
76
class.phpmailer.php enhancements
77
* enhanced code to check if an attachment source is the same as an embedded or
78
  inline graphic source to eliminate duplicate attachments
79
New /test_script
80
* We have written a test script you can use to test the script as part of your
81
  installation. Once you press submit, the test script will send a multi-mime
82
  email with either the message you type in or an HTML email with an inline
83
  graphic. Two attachments are included in the email (one of the attachments
84
  is also the inline graphic so you can see that only one copy of the graphic
85
  is sent in the email). The test script will also display the functional
86
  script that you can copy/paste to your editor to duplicate the functionality.
87
New examples
88
* All new examples in both basic and advanced modes. Advanced examples show
89
  Exception handling.
90
PHPDocumentator (phpdocs) documentation for PHPMailer version 5.0.0
91
* all new documentation
92

  
93
Please note: the website has been updated to reflect the changes in PHPMailer
94
version 5.0.0. http://phpmailer.codeworxtech.com/
95

  
96
Version 2.3 (November 06, 2008)
97

  
98
* added Arabic language (many thanks to Bahjat Al Mostafa)
99
* removed English language from language files and made it a default within
100
  class.phpmailer.php - if no language is found, it will default to use
101
  the english language translation
102
* fixed public/private declarations
103
* corrected line 1728, $basedir to $directory
104
* added $sign_cert_file to avoid improper duplicate use of $sign_key_file
105
* corrected $this->Hello on line 612 to $this->Helo
106
* changed default of $LE to "\r\n" to comply with RFC 2822. Can be set by the user
107
  if default is not acceptable
108
* removed trim() from return results in EncodeQP
109
* /test and three files it contained are removed from version 2.3
110
* fixed phpunit.php for compliance with PHP5
111
* changed $this->AltBody = $textMsg; to $this->AltBody = html_entity_decode($textMsg);
112
* We have removed the /phpdoc from the downloads. All documentation is now on
113
  the http://phpmailer.codeworxtech.com website.
114

  
115
Version 2.2.1 () July 19 2008
116

  
117
* fixed line 1092 in class.smtp.php (my apologies, error on my part)
118

  
119
Version 2.2 () July 15 2008
120

  
121
* Fixed redirect issue (display of UTF-8 in thank you redirect)
122
* fixed error in getResponse function declaration (class.pop3.php)
123
* PHPMailer now PHP6 compliant
124
* fixed line 1092 in class.smtp.php (endless loop from missing = sign)
125

  
126
Version 2.1 (Wed, June 04 2008)
127

  
128
** NOTE: WE HAVE A NEW LANGUAGE VARIABLE FOR DIGITALLY SIGNED S/MIME EMAILS.
129
   IF YOU CAN HELP WITH LANGUAGES OTHER THAN ENGLISH AND SPANISH, IT WOULD BE
130
   APPRECIATED.
131

  
132
* added S/MIME functionality (ability to digitally sign emails)
133
  BIG THANKS TO "sergiocambra" for posting this patch back in November 2007.
134
  The "Signed Emails" functionality adds the Sign method to pass the private key
135
  filename and the password to read it, and then email will be sent with
136
  content-type multipart/signed and with the digital signature attached.
137
* fully compatible with E_STRICT error level
138
  - Please note:
139
    In about half the test environments this development version was subjected
140
    to, an error was thrown for the date() functions used (line 1565 and 1569).
141
    This is NOT a PHPMailer error, it is the result of an incorrectly configured
142
    PHP5 installation. The fix is to modify your 'php.ini' file and include the
143
    date.timezone = America/New York
144
    directive, to your own server timezone
145
  - If you do get this error, and are unable to access your php.ini file:
146
    In your PHP script, add
147
    date_default_timezone_set('America/Toronto');
148
    - do not try to use
149
    $myVar = date_default_timezone_get();
150
    as a test, it will throw an error.
151
* added ability to define path (mainly for embedded images)
152
  function MsgHTML($message,$basedir='') ... where:
153
  $basedir is the fully qualified path
154
* fixed MsgHTML() function:
155
  - Embedded Images where images are specified by <protocol>:// will not be altered or embedded
156
* fixed the return value of SMTP exit code ( pclose )
157
* addressed issue of multibyte characters in subject line and truncating
158
* added ability to have user specified Message ID
159
  (default is still that PHPMailer create a unique Message ID)
160
* corrected unidentified message type to 'application/octet-stream'
161
* fixed chunk_split() multibyte issue (thanks to Colin Brown, et al).
162
* added check for added attachments
163
* enhanced conversion of HTML to text in MsgHTML (thanks to "brunny")
164

  
165
Version 2.1.0beta2 (Sun, Dec 02 2007)
166
* implemented updated EncodeQP (thanks to coolbru, aka Marcus Bointon)
167
* finished all testing, all known bugs corrected, enhancements tested
168
- note: will NOT work with PHP4.
169

  
170
please note, this is BETA software
171
** DO NOT USE THIS IN PRODUCTION OR LIVE PROJECTS
172
INTENDED STRICTLY FOR TESTING
173

  
174
Version 2.1.0beta1
175
please note, this is BETA software
176
** DO NOT USE THIS IN PRODUCTION OR LIVE PROJECTS
177
INTENDED STRICTLY FOR TESTING
178

  
179
Version 2.0.0 rc2 (Fri, Nov 16 2007), interim release
180
* implements new property to control VERP in class.smtp.php
181
  example (requires instantiating class.smtp.php):
182
  $mail->do_verp = true;
183
* POP-before-SMTP functionality included, thanks to Richard Davey
184
  (see class.pop3.php & pop3_before_smtp_test.php for examples)
185
* included example showing how to use PHPMailer with GMAIL
186
* fixed the missing Cc in SendMail() and Mail()
187

  
188
******************
189
A note on sending bulk emails:
190

  
191
If the email you are sending is not personalized, consider using the
192
"undisclosed-recipient:;" strategy. That is, put all of your recipients
193
in the Bcc field and set the To field to "undisclosed-recipients:;".
194
It's a lot faster (only one send) and saves quite a bit on resources.
195
Contrary to some opinions, this will not get you listed in spam engines -
196
it's a legitimate way for you to send emails.
197

  
198
A partial example for use with PHPMailer:
199

  
200
$mail->AddAddress("undisclosed-recipients:;");
201
$mail->AddBCC("email1@anydomain.com,email2@anyotherdomain.com,email3@anyalternatedomain.com");
202

  
203
Many email service providers restrict the number of emails that can be sent
204
in any given time period. Often that is between 50 - 60 emails maximum
205
per hour or per send session.
206

  
207
If that's the case, then break up your Bcc lists into chunks that are one
208
less than your limit, and put a pause in your script.
209
*******************
210

  
211
Version 2.0.0 rc1 (Thu, Nov 08 2007), interim release
212
* dramatically simplified using inline graphics ... it's fully automated and requires no user input
213
* added automatic document type detection for attachments and pictures
214
* added MsgHTML() function to replace Body tag for HTML emails
215
* fixed the SendMail security issues (input validation vulnerability)
216
* enhanced the AddAddresses functionality so that the "Name" portion is used in the email address
217
* removed the need to use the AltBody method (set from the HTML, or default text used)
218
* set the PHP Mail() function as the default (still support SendMail, SMTP Mail)
219
* removed the need to set the IsHTML property (set automatically)
220
* added Estonian language file by Indrek P&auml;ri
221
* added header injection patch
222
* added "set" method to permit users to create their own pseudo-properties like 'X-Headers', etc.
223
  example of use:
224
  $mail->set('X-Priority', '3');
225
  $mail->set('X-MSMail-Priority', 'Normal');
226
* fixed warning message in SMTP get_lines method
227
* added TLS/SSL SMTP support
228
  example of use:
229
  $mail = new PHPMailer();
230
  $mail->Mailer = "smtp";
231
  $mail->Host = "smtp.example.com";
232
  $mail->SMTPSecure   = "tls"; // option
233
  //$mail->SMTPSecure   = "ssl";  // option
234
  ...
235
  $mail->Send();
236
* PHPMailer has been tested with PHP4 (4.4.7) and PHP5 (5.2.7)
237
* Works with PHP installed as a module or as CGI-PHP
238
- NOTE: will NOT work with PHP5 in E_STRICT error mode
239

  
240
Version 1.73 (Sun, Jun 10 2005)
241
* Fixed denial of service bug: http://www.cybsec.com/vuln/PHPMailer-DOS.pdf
242
* Now has a total of 20 translations
243
* Fixed alt attachments bug: http://tinyurl.com/98u9k
244

  
245
Version 1.72 (Wed, May 25 2004)
246
* Added Dutch, Swedish, Czech, Norwegian, and Turkish translations.
247
* Received: Removed this method because spam filter programs like
248
SpamAssassin reject this header.
249
* Fixed error count bug.
250
* SetLanguage default is now "language/".
251
* Fixed magic_quotes_runtime bug.
252

  
253
Version 1.71 (Tue, Jul 28 2003)
254
* Made several speed enhancements
255
* Added German and Italian translation files
256
* Fixed HELO/AUTH bugs on keep-alive connects
257
* Now provides an error message if language file does not load
258
* Fixed attachment EOL bug
259
* Updated some unclear documentation
260
* Added additional tests and improved others
261

  
262
Version 1.70 (Mon, Jun 20 2003)
263
* Added SMTP keep-alive support
264
* Added IsError method for error detection
265
* Added error message translation support (SetLanguage)
266
* Refactored many methods to increase library performance
267
* Hello now sends the newer EHLO message before HELO as per RFC 2821
268
* Removed the boundary class and replaced it with GetBoundary
269
* Removed queue support methods
270
* New $Hostname variable
271
* New Message-ID header
272
* Received header reformat
273
* Helo variable default changed to $Hostname
274
* Removed extra spaces in Content-Type definition (#667182)
275
* Return-Path should be set to Sender when set
276
* Adds Q or B encoding to headers when necessary
277
* quoted-encoding should now encode NULs \000
278
* Fixed encoding of body/AltBody (#553370)
279
* Adds "To: undisclosed-recipients:;" when all recipients are hidden (BCC)
280
* Multiple bug fixes
281

  
282
Version 1.65 (Fri, Aug 09 2002)
283
* Fixed non-visible attachment bug (#585097) for Outlook
284
* SMTP connections are now closed after each transaction
285
* Fixed SMTP::Expand return value
286
* Converted SMTP class documentation to phpDocumentor format
287

  
288
Version 1.62 (Wed, Jun 26 2002)
289
* Fixed multi-attach bug
290
* Set proper word wrapping
291
* Reduced memory use with attachments
292
* Added more debugging
293
* Changed documentation to phpDocumentor format
294

  
295
Version 1.60 (Sat, Mar 30 2002)
296
* Sendmail pipe and address patch (Christian Holtje)
297
* Added embedded image and read confirmation support (A. Ognio)
298
* Added unit tests
299
* Added SMTP timeout support (*nix only)
300
* Added possibly temporary PluginDir variable for SMTP class
301
* Added LE message line ending variable
302
* Refactored boundary and attachment code
303
* Eliminated SMTP class warnings
304
* Added SendToQueue method for future queuing support
305

  
306
Version 1.54 (Wed, Dec 19 2001)
307
* Add some queuing support code
308
* Fixed a pesky multi/alt bug
309
* Messages are no longer forced to have "To" addresses
310

  
311
Version 1.50 (Thu, Nov 08 2001)
312
* Fix extra lines when not using SMTP mailer
313
* Set WordWrap variable to int with a zero default
314

  
315
Version 1.47 (Tue, Oct 16 2001)
316
* Fixed Received header code format
317
* Fixed AltBody order error
318
* Fixed alternate port warning
319

  
320
Version 1.45 (Tue, Sep 25 2001)
321
* Added enhanced SMTP debug support
322
* Added support for multiple ports on SMTP
323
* Added Received header for tracing
324
* Fixed AddStringAttachment encoding
325
* Fixed possible header name quote bug
326
* Fixed wordwrap() trim bug
327
* Couple other small bug fixes
328

  
329
Version 1.41 (Wed, Aug 22 2001)
330
* Fixed AltBody bug w/o attachments
331
* Fixed rfc_date() for certain mail servers
332

  
333
Version 1.40 (Sun, Aug 12 2001)
334
* Added multipart/alternative support (AltBody)
335
* Documentation update
336
* Fixed bug in Mercury MTA
337

  
338
Version 1.29 (Fri, Aug 03 2001)
339
* Added AddStringAttachment() method
340
* Added SMTP authentication support
341

  
342
Version 1.28 (Mon, Jul 30 2001)
343
* Fixed a typo in SMTP class
344
* Fixed header issue with Imail (win32) SMTP server
345
* Made fopen() calls for attachments use "rb" to fix win32 error
346

  
347
Version 1.25 (Mon, Jul 02 2001)
348
* Added RFC 822 date fix (Patrice)
349
* Added improved error handling by adding a $ErrorInfo variable
350
* Removed MailerDebug variable (obsolete with new error handler)
351

  
352
Version 1.20 (Mon, Jun 25 2001)
353
* Added quoted-printable encoding (Patrice)
354
* Set Version as public and removed PrintVersion()
355
* Changed phpdoc to only display public variables and methods
356

  
357
Version 1.19 (Thu, Jun 21 2001)
358
* Fixed MS Mail header bug
359
* Added fix for Bcc problem with mail(). *Does not work on Win32*
360
  (See PHP bug report: http://www.php.net/bugs.php?id=11616)
361
* mail() no longer passes a fifth parameter when not needed
362

  
363
Version 1.15 (Fri, Jun 15 2001)
364
[Note: these changes contributed by Patrice Fournier]
365
* Changed all remaining \n to \r\n
366
* Bcc: header no longer writen to message except
367
when sent directly to sendmail
368
* Added a small message to non-MIME compliant mail reader
369
* Added Sender variable to change the Sender email
370
used in -f for sendmail/mail and in 'MAIL FROM' for smtp mode
371
* Changed boundary setting to a place it will be set only once
372
* Removed transfer encoding for whole message when using multipart
373
* Message body now uses Encoding in multipart messages
374
* Can set encoding and type to attachments 7bit, 8bit
375
and binary attachment are sent as is, base64 are encoded
376
* Can set Encoding to base64 to send 8 bits body
377
through 7 bits servers
378

  
379
Version 1.10 (Tue, Jun 12 2001)
380
* Fixed win32 mail header bug (printed out headers in message body)
381

  
382
Version 1.09 (Fri, Jun 08 2001)
383
* Changed date header to work with Netscape mail programs
384
* Altered phpdoc documentation
385

  
386
Version 1.08 (Tue, Jun 05 2001)
387
* Added enhanced error-checking
388
* Added phpdoc documentation to source
389

  
390
Version 1.06 (Fri, Jun 01 2001)
391
* Added optional name for file attachments
392

  
393
Version 1.05 (Tue, May 29 2001)
394
* Code cleanup
395
* Eliminated sendmail header warning message
396
* Fixed possible SMTP error
397

  
398
Version 1.03 (Thu, May 24 2001)
399
* Fixed problem where qmail sends out duplicate messages
400

  
401
Version 1.02 (Wed, May 23 2001)
402
* Added multiple recipient and attachment Clear* methods
403
* Added Sendmail public variable
404
* Fixed problem with loading SMTP library multiple times
405

  
406
Version 0.98 (Tue, May 22 2001)
407
* Fixed problem with redundant mail hosts sending out multiple messages
408
* Added additional error handler code
409
* Added AddCustomHeader() function
410
* Added support for Microsoft mail client headers (affects priority)
411
* Fixed small bug with Mailer variable
412
* Added PrintVersion() function
413

  
414
Version 0.92 (Tue, May 15 2001)
415
* Changed file names to class.phpmailer.php and class.smtp.php to match
416
  current PHP class trend.
417
* Fixed problem where body not being printed when a message is attached
418
* Several small bug fixes
419

  
420
Version 0.90 (Tue, April 17 2001)
421
* Intial public release
422 0

  
branches/2.8.x/wb/include/phpmailer/PHPMailerAutoload.php
1
<?php
2
/**
3
 * PHPMailer SPL autoloader.
4
 * PHP Version 5.0.0
5
 * @package PHPMailer
6
 * @link https://github.com/PHPMailer/PHPMailer/
7
 * @author Marcus Bointon (coolbru) <phpmailer@synchromedia.co.uk>
8
 * @author Jim Jagielski (jimjag) <jimjag@gmail.com>
9
 * @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
10
 * @author Brent R. Matzelle (original founder)
11
 * @copyright 2013 Marcus Bointon
12
 * @copyright 2010 - 2012 Jim Jagielski
13
 * @copyright 2004 - 2009 Andy Prevost
14
 * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
15
 * @note This program is distributed in the hope that it will be useful - WITHOUT
16
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17
 * FITNESS FOR A PARTICULAR PURPOSE.
18
 */
19

  
20
/**
21
 * PHPMailer SPL autoloader.
22
 * @param string $classname The name of the class to load
23
 */
24
function PHPMailerAutoload($classname)
25
{
26
    //Can't use __DIR__ as it's only in PHP 5.3+
27
    $filename = dirname(__FILE__).DIRECTORY_SEPARATOR.'class.'.strtolower($classname).'.php';
28
    if (is_readable($filename)) {
29
        require $filename;
30
    }
31
}
32

  
33
spl_autoload_register('PHPMailerAutoload');
branches/2.8.x/wb/include/phpmailer/language/phpmailer.lang-en.php
1
<?php
2
/**
3
 * PHPMailer language file.
4
 * English Version
5
 */
6

  
7
$PHPMAILER_LANG = array();
8

  
9
$PHPMAILER_LANG['provide_address']      = 'You must provide at least one recipient email address.';
10
$PHPMAILER_LANG['mailer_not_supported'] = ' mailer is not supported.';
11
$PHPMAILER_LANG['execute']              = 'Could not execute: ';
12
$PHPMAILER_LANG['instantiate']          = 'Could not instantiate mail function.';
13
$PHPMAILER_LANG['authenticate']         = 'SMTP Error: Could not authenticate.';
14
$PHPMAILER_LANG['from_failed']          = 'The following From address failed: ';
15
$PHPMAILER_LANG['recipients_failed']    = 'SMTP Error: The following recipients failed: ';
16
$PHPMAILER_LANG['data_not_accepted']    = 'SMTP Error: Data not accepted.';
17
$PHPMAILER_LANG['connect_host']         = 'SMTP Error: Could not connect to SMTP host.';
18
$PHPMAILER_LANG['file_access']          = 'Could not access file: ';
19
$PHPMAILER_LANG['file_open']            = 'File Error: Could not open file: ';
20
$PHPMAILER_LANG['encoding']             = 'Unknown encoding: ';
21
$PHPMAILER_LANG['signing']              = 'Signing Error: ';
22
$PHPMAILER_LANG['smtp_error']           = 'SMTP server error: ';
23
?>
branches/2.8.x/wb/include/phpmailer/DOCS/LICENSE
1
		  GNU LESSER GENERAL PUBLIC LICENSE
2
		       Version 2.1, February 1999
3

  
4
 Copyright (C) 1991, 1999 Free Software Foundation, Inc.
5
     59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
6
 Everyone is permitted to copy and distribute verbatim copies
7
 of this license document, but changing it is not allowed.
8

  
9
[This is the first released version of the Lesser GPL.  It also counts
10
 as the successor of the GNU Library Public License, version 2, hence
11
 the version number 2.1.]
12

  
13
			    Preamble
14

  
15
  The licenses for most software are designed to take away your
16
freedom to share and change it.  By contrast, the GNU General Public
17
Licenses are intended to guarantee your freedom to share and change
18
free software--to make sure the software is free for all its users.
19

  
20
  This license, the Lesser General Public License, applies to some
21
specially designated software packages--typically libraries--of the
22
Free Software Foundation and other authors who decide to use it.  You
23
can use it too, but we suggest you first think carefully about whether
24
this license or the ordinary General Public License is the better
25
strategy to use in any particular case, based on the explanations below.
26

  
27
  When we speak of free software, we are referring to freedom of use,
28
not price.  Our General Public Licenses are designed to make sure that
29
you have the freedom to distribute copies of free software (and charge
30
for this service if you wish); that you receive source code or can get
31
it if you want it; that you can change the software and use pieces of
32
it in new free programs; and that you are informed that you can do
33
these things.
34

  
35
  To protect your rights, we need to make restrictions that forbid
36
distributors to deny you these rights or to ask you to surrender these
37
rights.  These restrictions translate to certain responsibilities for
38
you if you distribute copies of the library or if you modify it.
39

  
40
  For example, if you distribute copies of the library, whether gratis
41
or for a fee, you must give the recipients all the rights that we gave
42
you.  You must make sure that they, too, receive or can get the source
43
code.  If you link other code with the library, you must provide
44
complete object files to the recipients, so that they can relink them
45
with the library after making changes to the library and recompiling
46
it.  And you must show them these terms so they know their rights.
47

  
48
  We protect your rights with a two-step method: (1) we copyright the
49
library, and (2) we offer you this license, which gives you legal
50
permission to copy, distribute and/or modify the library.
51

  
52
  To protect each distributor, we want to make it very clear that
53
there is no warranty for the free library.  Also, if the library is
54
modified by someone else and passed on, the recipients should know
55
that what they have is not the original version, so that the original
56
author's reputation will not be affected by problems that might be
57
introduced by others.
58

  
59
  Finally, software patents pose a constant threat to the existence of
60
any free program.  We wish to make sure that a company cannot
61
effectively restrict the users of a free program by obtaining a
62
restrictive license from a patent holder.  Therefore, we insist that
63
any patent license obtained for a version of the library must be
64
consistent with the full freedom of use specified in this license.
65

  
66
  Most GNU software, including some libraries, is covered by the
67
ordinary GNU General Public License.  This license, the GNU Lesser
68
General Public License, applies to certain designated libraries, and
69
is quite different from the ordinary General Public License.  We use
70
this license for certain libraries in order to permit linking those
71
libraries into non-free programs.
72

  
73
  When a program is linked with a library, whether statically or using
74
a shared library, the combination of the two is legally speaking a
75
combined work, a derivative of the original library.  The ordinary
76
General Public License therefore permits such linking only if the
77
entire combination fits its criteria of freedom.  The Lesser General
78
Public License permits more lax criteria for linking other code with
79
the library.
80

  
81
  We call this license the "Lesser" General Public License because it
82
does Less to protect the user's freedom than the ordinary General
83
Public License.  It also provides other free software developers Less
84
of an advantage over competing non-free programs.  These disadvantages
85
are the reason we use the ordinary General Public License for many
86
libraries.  However, the Lesser license provides advantages in certain
87
special circumstances.
88

  
89
  For example, on rare occasions, there may be a special need to
90
encourage the widest possible use of a certain library, so that it becomes
91
a de-facto standard.  To achieve this, non-free programs must be
92
allowed to use the library.  A more frequent case is that a free
93
library does the same job as widely used non-free libraries.  In this
94
case, there is little to gain by limiting the free library to free
95
software only, so we use the Lesser General Public License.
96

  
97
  In other cases, permission to use a particular library in non-free
98
programs enables a greater number of people to use a large body of
99
free software.  For example, permission to use the GNU C Library in
100
non-free programs enables many more people to use the whole GNU
101
operating system, as well as its variant, the GNU/Linux operating
102
system.
103

  
104
  Although the Lesser General Public License is Less protective of the
105
users' freedom, it does ensure that the user of a program that is
106
linked with the Library has the freedom and the wherewithal to run
107
that program using a modified version of the Library.
108

  
109
  The precise terms and conditions for copying, distribution and
110
modification follow.  Pay close attention to the difference between a
111
"work based on the library" and a "work that uses the library".  The
112
former contains code derived from the library, whereas the latter must
113
be combined with the library in order to run.
114

  
115
		  GNU LESSER GENERAL PUBLIC LICENSE
116
   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
117

  
118
  0. This License Agreement applies to any software library or other
119
program which contains a notice placed by the copyright holder or
120
other authorized party saying it may be distributed under the terms of
121
this Lesser General Public License (also called "this License").
122
Each licensee is addressed as "you".
123

  
124
  A "library" means a collection of software functions and/or data
125
prepared so as to be conveniently linked with application programs
126
(which use some of those functions and data) to form executables.
127

  
128
  The "Library", below, refers to any such software library or work
129
which has been distributed under these terms.  A "work based on the
130
Library" means either the Library or any derivative work under
131
copyright law: that is to say, a work containing the Library or a
132
portion of it, either verbatim or with modifications and/or translated
133
straightforwardly into another language.  (Hereinafter, translation is
134
included without limitation in the term "modification".)
135

  
136
  "Source code" for a work means the preferred form of the work for
137
making modifications to it.  For a library, complete source code means
138
all the source code for all modules it contains, plus any associated
139
interface definition files, plus the scripts used to control compilation
140
and installation of the library.
141

  
142
  Activities other than copying, distribution and modification are not
143
covered by this License; they are outside its scope.  The act of
144
running a program using the Library is not restricted, and output from
145
such a program is covered only if its contents constitute a work based
146
on the Library (independent of the use of the Library in a tool for
147
writing it).  Whether that is true depends on what the Library does
148
and what the program that uses the Library does.
149
  
150
  1. You may copy and distribute verbatim copies of the Library's
151
complete source code as you receive it, in any medium, provided that
152
you conspicuously and appropriately publish on each copy an
153
appropriate copyright notice and disclaimer of warranty; keep intact
154
all the notices that refer to this License and to the absence of any
155
warranty; and distribute a copy of this License along with the
156
Library.
157

  
158
  You may charge a fee for the physical act of transferring a copy,
159
and you may at your option offer warranty protection in exchange for a
160
fee.
161

  
162
  2. You may modify your copy or copies of the Library or any portion
163
of it, thus forming a work based on the Library, and copy and
164
distribute such modifications or work under the terms of Section 1
165
above, provided that you also meet all of these conditions:
166

  
167
    a) The modified work must itself be a software library.
168

  
169
    b) You must cause the files modified to carry prominent notices
170
    stating that you changed the files and the date of any change.
171

  
172
    c) You must cause the whole of the work to be licensed at no
173
    charge to all third parties under the terms of this License.
174

  
175
    d) If a facility in the modified Library refers to a function or a
176
    table of data to be supplied by an application program that uses
177
    the facility, other than as an argument passed when the facility
178
    is invoked, then you must make a good faith effort to ensure that,
179
    in the event an application does not supply such function or
180
    table, the facility still operates, and performs whatever part of
181
    its purpose remains meaningful.
182

  
183
    (For example, a function in a library to compute square roots has
184
    a purpose that is entirely well-defined independent of the
185
    application.  Therefore, Subsection 2d requires that any
186
    application-supplied function or table used by this function must
187
    be optional: if the application does not supply it, the square
188
    root function must still compute square roots.)
189

  
190
These requirements apply to the modified work as a whole.  If
191
identifiable sections of that work are not derived from the Library,
192
and can be reasonably considered independent and separate works in
193
themselves, then this License, and its terms, do not apply to those
194
sections when you distribute them as separate works.  But when you
195
distribute the same sections as part of a whole which is a work based
196
on the Library, the distribution of the whole must be on the terms of
197
this License, whose permissions for other licensees extend to the
198
entire whole, and thus to each and every part regardless of who wrote
199
it.
200

  
201
Thus, it is not the intent of this section to claim rights or contest
202
your rights to work written entirely by you; rather, the intent is to
203
exercise the right to control the distribution of derivative or
204
collective works based on the Library.
205

  
206
In addition, mere aggregation of another work not based on the Library
207
with the Library (or with a work based on the Library) on a volume of
208
a storage or distribution medium does not bring the other work under
209
the scope of this License.
210

  
211
  3. You may opt to apply the terms of the ordinary GNU General Public
212
License instead of this License to a given copy of the Library.  To do
213
this, you must alter all the notices that refer to this License, so
214
that they refer to the ordinary GNU General Public License, version 2,
215
instead of to this License.  (If a newer version than version 2 of the
216
ordinary GNU General Public License has appeared, then you can specify
217
that version instead if you wish.)  Do not make any other change in
218
these notices.
219

  
220
  Once this change is made in a given copy, it is irreversible for
221
that copy, so the ordinary GNU General Public License applies to all
222
subsequent copies and derivative works made from that copy.
223

  
224
  This option is useful when you wish to copy part of the code of
225
the Library into a program that is not a library.
226

  
227
  4. You may copy and distribute the Library (or a portion or
228
derivative of it, under Section 2) in object code or executable form
229
under the terms of Sections 1 and 2 above provided that you accompany
230
it with the complete corresponding machine-readable source code, which
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff