作者 邓超

phpmailr

正在显示 70 个修改的文件 包含 5160 行增加0 行删除
  1 +root = true
  2 +
  3 +[*]
  4 +charset = utf-8
  5 +indent_size = 4
  6 +indent_style = space
  7 +end_of_line = lf
  8 +insert_final_newline = true
  9 +trim_trailing_whitespace = true
  10 +
  11 +[*.md]
  12 +trim_trailing_whitespace = false
  13 +
  14 +[*.{yml,yaml}]
  15 +indent_size = 2
  1 +GPL Cooperation Commitment
  2 +Version 1.0
  3 +
  4 +Before filing or continuing to prosecute any legal proceeding or claim
  5 +(other than a Defensive Action) arising from termination of a Covered
  6 +License, we commit to extend to the person or entity ('you') accused
  7 +of violating the Covered License the following provisions regarding
  8 +cure and reinstatement, taken from GPL version 3. As used here, the
  9 +term 'this License' refers to the specific Covered License being
  10 +enforced.
  11 +
  12 + However, if you cease all violation of this License, then your
  13 + license from a particular copyright holder is reinstated (a)
  14 + provisionally, unless and until the copyright holder explicitly
  15 + and finally terminates your license, and (b) permanently, if the
  16 + copyright holder fails to notify you of the violation by some
  17 + reasonable means prior to 60 days after the cessation.
  18 +
  19 + Moreover, your license from a particular copyright holder is
  20 + reinstated permanently if the copyright holder notifies you of the
  21 + violation by some reasonable means, this is the first time you
  22 + have received notice of violation of this License (for any work)
  23 + from that copyright holder, and you cure the violation prior to 30
  24 + days after your receipt of the notice.
  25 +
  26 +We intend this Commitment to be irrevocable, and binding and
  27 +enforceable against us and assignees of or successors to our
  28 +copyrights.
  29 +
  30 +Definitions
  31 +
  32 +'Covered License' means the GNU General Public License, version 2
  33 +(GPLv2), the GNU Lesser General Public License, version 2.1
  34 +(LGPLv2.1), or the GNU Library General Public License, version 2
  35 +(LGPLv2), all as published by the Free Software Foundation.
  36 +
  37 +'Defensive Action' means a legal proceeding or claim that We bring
  38 +against you in response to a prior proceeding or claim initiated by
  39 +you or your affiliate.
  40 +
  41 +'We' means each contributor to this repository as of the date of
  42 +inclusion of this file, including subsidiaries of a corporate
  43 +contributor.
  44 +
  45 +This work is available under a Creative Commons Attribution-ShareAlike
  46 +4.0 International license (https://creativecommons.org/licenses/by-sa/4.0/).
  1 + GNU LESSER GENERAL PUBLIC LICENSE
  2 + Version 2.1, February 1999
  3 +
  4 + Copyright (C) 1991, 1999 Free Software Foundation, Inc.
  5 + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 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!
  1 +[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://supportukrainenow.org/)
  2 +
  3 +![PHPMailer](https://raw.github.com/PHPMailer/PHPMailer/master/examples/images/phpmailer.png)
  4 +
  5 +# PHPMailer – A full-featured email creation and transfer class for PHP
  6 +
  7 +[![Test status](https://github.com/PHPMailer/PHPMailer/workflows/Tests/badge.svg)](https://github.com/PHPMailer/PHPMailer/actions)
  8 +[![codecov.io](https://codecov.io/gh/PHPMailer/PHPMailer/branch/master/graph/badge.svg?token=iORZpwmYmM)](https://codecov.io/gh/PHPMailer/PHPMailer)
  9 +[![Latest Stable Version](https://poser.pugx.org/phpmailer/phpmailer/v/stable.svg)](https://packagist.org/packages/phpmailer/phpmailer)
  10 +[![Total Downloads](https://poser.pugx.org/phpmailer/phpmailer/downloads)](https://packagist.org/packages/phpmailer/phpmailer)
  11 +[![License](https://poser.pugx.org/phpmailer/phpmailer/license.svg)](https://packagist.org/packages/phpmailer/phpmailer)
  12 +[![API Docs](https://github.com/phpmailer/phpmailer/workflows/Docs/badge.svg)](https://phpmailer.github.io/PHPMailer/)
  13 +[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/PHPMailer/PHPMailer/badge)](https://api.securityscorecards.dev/projects/github.com/PHPMailer/PHPMailer)
  14 +
  15 +## Features
  16 +- Probably the world's most popular code for sending email from PHP!
  17 +- Used by many open-source projects: WordPress, Drupal, 1CRM, SugarCRM, Yii, Joomla! and many more
  18 +- Integrated SMTP support – send without a local mail server
  19 +- Send emails with multiple To, CC, BCC, and Reply-to addresses
  20 +- Multipart/alternative emails for mail clients that do not read HTML email
  21 +- Add attachments, including inline
  22 +- Support for UTF-8 content and 8bit, base64, binary, and quoted-printable encodings
  23 +- SMTP authentication with LOGIN, PLAIN, CRAM-MD5, and XOAUTH2 mechanisms over SMTPS and SMTP+STARTTLS transports
  24 +- Validates email addresses automatically
  25 +- Protects against header injection attacks
  26 +- Error messages in over 50 languages!
  27 +- DKIM and S/MIME signing support
  28 +- Compatible with PHP 5.5 and later, including PHP 8.2
  29 +- Namespaced to prevent name clashes
  30 +- Much more!
  31 +
  32 +## Why you might need it
  33 +Many PHP developers need to send email from their code. The only PHP function that supports this directly is [`mail()`](https://www.php.net/manual/en/function.mail.php). However, it does not provide any assistance for making use of popular features such as encryption, authentication, HTML messages, and attachments.
  34 +
  35 +Formatting email correctly is surprisingly difficult. There are myriad overlapping (and conflicting) standards, requiring tight adherence to horribly complicated formatting and encoding rules – the vast majority of code that you'll find online that uses the `mail()` function directly is just plain wrong, if not unsafe!
  36 +
  37 +The PHP `mail()` function usually sends via a local mail server, typically fronted by a `sendmail` binary on Linux, BSD, and macOS platforms, however, Windows usually doesn't include a local mail server; PHPMailer's integrated SMTP client allows email sending on all platforms without needing a local mail server. Be aware though, that the `mail()` function should be avoided when possible; it's both faster and [safer](https://exploitbox.io/paper/Pwning-PHP-Mail-Function-For-Fun-And-RCE.html) to use SMTP to localhost.
  38 +
  39 +*Please* don't be tempted to do it yourself – if you don't use PHPMailer, there are many other excellent libraries that
  40 +you should look at before rolling your own. Try [SwiftMailer](https://swiftmailer.symfony.com/)
  41 +, [Laminas/Mail](https://docs.laminas.dev/laminas-mail/), [ZetaComponents](https://github.com/zetacomponents/Mail), etc.
  42 +
  43 +## License
  44 +This software is distributed under the [LGPL 2.1](http://www.gnu.org/licenses/lgpl-2.1.html) license, along with the [GPL Cooperation Commitment](https://gplcc.github.io/gplcc/). Please read [LICENSE](https://github.com/PHPMailer/PHPMailer/blob/master/LICENSE) for information on the software availability and distribution.
  45 +
  46 +## Installation & loading
  47 +PHPMailer is available on [Packagist](https://packagist.org/packages/phpmailer/phpmailer) (using semantic versioning), and installation via [Composer](https://getcomposer.org) is the recommended way to install PHPMailer. Just add this line to your `composer.json` file:
  48 +
  49 +```json
  50 +"phpmailer/phpmailer": "^6.9.1"
  51 +```
  52 +
  53 +or run
  54 +
  55 +```sh
  56 +composer require phpmailer/phpmailer
  57 +```
  58 +
  59 +Note that the `vendor` folder and the `vendor/autoload.php` script are generated by Composer; they are not part of PHPMailer.
  60 +
  61 +If you want to use XOAUTH2 authentication, you will also need to add a dependency on the `league/oauth2-client` and appropriate service adapters package in your `composer.json`, or take a look at
  62 +by @decomplexity's [SendOauth2 wrapper](https://github.com/decomplexity/SendOauth2), especially if you're using Microsoft services.
  63 +
  64 +Alternatively, if you're not using Composer, you
  65 +can [download PHPMailer as a zip file](https://github.com/PHPMailer/PHPMailer/archive/master.zip), (note that docs and examples are not included in the zip file), then copy the contents of the PHPMailer folder into one of the `include_path` directories specified in your PHP configuration and load each class file manually:
  66 +
  67 +```php
  68 +<?php
  69 +use PHPMailer\PHPMailer\PHPMailer;
  70 +use PHPMailer\PHPMailer\Exception;
  71 +
  72 +require 'path/to/PHPMailer/src/Exception.php';
  73 +require 'path/to/PHPMailer/src/PHPMailer.php';
  74 +require 'path/to/PHPMailer/src/SMTP.php';
  75 +```
  76 +
  77 +If you're not using the `SMTP` class explicitly (you're probably not), you don't need a `use` line for the SMTP class. Even if you're not using exceptions, you do still need to load the `Exception` class as it is used internally.
  78 +
  79 +## Legacy versions
  80 +PHPMailer 5.2 (which is compatible with PHP 5.0 — 7.0) is no longer supported, even for security updates. You will find the latest version of 5.2 in the [5.2-stable branch](https://github.com/PHPMailer/PHPMailer/tree/5.2-stable). If you're using PHP 5.5 or later (which you should be), switch to the 6.x releases.
  81 +
  82 +### Upgrading from 5.2
  83 +The biggest changes are that source files are now in the `src/` folder, and PHPMailer now declares the namespace `PHPMailer\PHPMailer`. This has several important effects – [read the upgrade guide](https://github.com/PHPMailer/PHPMailer/tree/master/UPGRADING.md) for more details.
  84 +
  85 +### Minimal installation
  86 +While installing the entire package manually or with Composer is simple, convenient, and reliable, you may want to include only vital files in your project. At the very least you will need [src/PHPMailer.php](https://github.com/PHPMailer/PHPMailer/tree/master/src/PHPMailer.php). If you're using SMTP, you'll need [src/SMTP.php](https://github.com/PHPMailer/PHPMailer/tree/master/src/SMTP.php), and if you're using POP-before SMTP (*very* unlikely!), you'll need [src/POP3.php](https://github.com/PHPMailer/PHPMailer/tree/master/src/POP3.php). You can skip the [language](https://github.com/PHPMailer/PHPMailer/tree/master/language/) folder if you're not showing errors to users and can make do with English-only errors. If you're using XOAUTH2 you will need [src/OAuth.php](https://github.com/PHPMailer/PHPMailer/tree/master/src/OAuth.php) as well as the Composer dependencies for the services you wish to authenticate with. Really, it's much easier to use Composer!
  87 +
  88 +## A Simple Example
  89 +
  90 +```php
  91 +<?php
  92 +//Import PHPMailer classes into the global namespace
  93 +//These must be at the top of your script, not inside a function
  94 +use PHPMailer\PHPMailer\PHPMailer;
  95 +use PHPMailer\PHPMailer\SMTP;
  96 +use PHPMailer\PHPMailer\Exception;
  97 +
  98 +//Load Composer's autoloader
  99 +require 'vendor/autoload.php';
  100 +
  101 +//Create an instance; passing `true` enables exceptions
  102 +$mail = new PHPMailer(true);
  103 +
  104 +try {
  105 + //Server settings
  106 + $mail->SMTPDebug = SMTP::DEBUG_SERVER; //Enable verbose debug output
  107 + $mail->isSMTP(); //Send using SMTP
  108 + $mail->Host = 'smtp.example.com'; //Set the SMTP server to send through
  109 + $mail->SMTPAuth = true; //Enable SMTP authentication
  110 + $mail->Username = 'user@example.com'; //SMTP username
  111 + $mail->Password = 'secret'; //SMTP password
  112 + $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; //Enable implicit TLS encryption
  113 + $mail->Port = 465; //TCP port to connect to; use 587 if you have set `SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS`
  114 +
  115 + //Recipients
  116 + $mail->setFrom('from@example.com', 'Mailer');
  117 + $mail->addAddress('joe@example.net', 'Joe User'); //Add a recipient
  118 + $mail->addAddress('ellen@example.com'); //Name is optional
  119 + $mail->addReplyTo('info@example.com', 'Information');
  120 + $mail->addCC('cc@example.com');
  121 + $mail->addBCC('bcc@example.com');
  122 +
  123 + //Attachments
  124 + $mail->addAttachment('/var/tmp/file.tar.gz'); //Add attachments
  125 + $mail->addAttachment('/tmp/image.jpg', 'new.jpg'); //Optional name
  126 +
  127 + //Content
  128 + $mail->isHTML(true); //Set email format to HTML
  129 + $mail->Subject = 'Here is the subject';
  130 + $mail->Body = 'This is the HTML message body <b>in bold!</b>';
  131 + $mail->AltBody = 'This is the body in plain text for non-HTML mail clients';
  132 +
  133 + $mail->send();
  134 + echo 'Message has been sent';
  135 +} catch (Exception $e) {
  136 + echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}";
  137 +}
  138 +```
  139 +
  140 +You'll find plenty to play with in the [examples](https://github.com/PHPMailer/PHPMailer/tree/master/examples) folder, which covers many common scenarios including sending through Gmail, building contact forms, sending to mailing lists, and more.
  141 +
  142 +If you are re-using the instance (e.g. when sending to a mailing list), you may need to clear the recipient list to avoid sending duplicate messages. See [the mailing list example](https://github.com/PHPMailer/PHPMailer/blob/master/examples/mailing_list.phps) for further guidance.
  143 +
  144 +That's it. You should now be ready to use PHPMailer!
  145 +
  146 +## Localization
  147 +PHPMailer defaults to English, but in the [language](https://github.com/PHPMailer/PHPMailer/tree/master/language/) folder, you'll find many translations for PHPMailer error messages that you may encounter. Their filenames contain [ISO 639-1](http://en.wikipedia.org/wiki/ISO_639-1) language code for the translations, for example `fr` for French. To specify a language, you need to tell PHPMailer which one to use, like this:
  148 +
  149 +```php
  150 +//To load the French version
  151 +$mail->setLanguage('fr', '/optional/path/to/language/directory/');
  152 +```
  153 +
  154 +We welcome corrections and new languages – if you're looking for corrections, run the [Language/TranslationCompletenessTest.php](https://github.com/PHPMailer/PHPMailer/blob/master/test/Language/TranslationCompletenessTest.php) script in the tests folder and it will show any missing translations.
  155 +
  156 +## Documentation
  157 +Start reading at the [GitHub wiki](https://github.com/PHPMailer/PHPMailer/wiki). If you're having trouble, head for [the troubleshooting guide](https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting) as it's frequently updated.
  158 +
  159 +Examples of how to use PHPMailer for common scenarios can be found in the [examples](https://github.com/PHPMailer/PHPMailer/tree/master/examples) folder. If you're looking for a good starting point, we recommend you start with [the Gmail example](https://github.com/PHPMailer/PHPMailer/tree/master/examples/gmail.phps).
  160 +
  161 +To reduce PHPMailer's deployed code footprint, examples are not included if you load PHPMailer via Composer or via [GitHub's zip file download](https://github.com/PHPMailer/PHPMailer/archive/master.zip), so you'll need to either clone the git repository or use the above links to get to the examples directly.
  162 +
  163 +Complete generated API documentation is [available online](https://phpmailer.github.io/PHPMailer/).
  164 +
  165 +You can generate complete API-level documentation by running `phpdoc` in the top-level folder, and documentation will appear in the `docs` folder, though you'll need to have [PHPDocumentor](http://www.phpdoc.org) installed. You may find [the unit tests](https://github.com/PHPMailer/PHPMailer/blob/master/test/PHPMailerTest.php) a good reference for how to do various operations such as encryption.
  166 +
  167 +If the documentation doesn't cover what you need, search the [many questions on Stack Overflow](http://stackoverflow.com/questions/tagged/phpmailer), and before you ask a question about "SMTP Error: Could not connect to SMTP host.", [read the troubleshooting guide](https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting).
  168 +
  169 +## Tests
  170 +[PHPMailer tests](https://github.com/PHPMailer/PHPMailer/tree/master/test/) use PHPUnit 9, with [a polyfill](https://github.com/Yoast/PHPUnit-Polyfills) to let 9-style tests run on older PHPUnit and PHP versions.
  171 +
  172 +[![Test status](https://github.com/PHPMailer/PHPMailer/workflows/Tests/badge.svg)](https://github.com/PHPMailer/PHPMailer/actions)
  173 +
  174 +If this isn't passing, is there something you can do to help?
  175 +
  176 +## Security
  177 +Please disclose any vulnerabilities found responsibly – report security issues to the maintainers privately.
  178 +
  179 +See [SECURITY](https://github.com/PHPMailer/PHPMailer/tree/master/SECURITY.md) and [PHPMailer's security advisories on GitHub](https://github.com/PHPMailer/PHPMailer/security).
  180 +
  181 +## Contributing
  182 +Please submit bug reports, suggestions, and pull requests to the [GitHub issue tracker](https://github.com/PHPMailer/PHPMailer/issues).
  183 +
  184 +We're particularly interested in fixing edge cases, expanding test coverage, and updating translations.
  185 +
  186 +If you found a mistake in the docs, or want to add something, go ahead and amend the wiki – anyone can edit it.
  187 +
  188 +If you have git clones from prior to the move to the PHPMailer GitHub organisation, you'll need to update any remote URLs referencing the old GitHub location with a command like this from within your clone:
  189 +
  190 +```sh
  191 +git remote set-url upstream https://github.com/PHPMailer/PHPMailer.git
  192 +```
  193 +
  194 +Please *don't* use the SourceForge or Google Code projects any more; they are obsolete and no longer maintained.
  195 +
  196 +## Sponsorship
  197 +Development time and resources for PHPMailer are provided by [Smartmessages.net](https://info.smartmessages.net/), the world's only privacy-first email marketing system.
  198 +
  199 +<a href="https://info.smartmessages.net/"><img src="https://www.smartmessages.net/img/smartmessages-logo.svg" width="550" alt="Smartmessages.net privacy-first email marketing logo"></a>
  200 +
  201 +Donations are very welcome, whether in beer 🍺, T-shirts 👕, or cold, hard cash 💰. Sponsorship through GitHub is a simple and convenient way to say "thank you" to PHPMailer's maintainers and contributors – just click the "Sponsor" button [on the project page](https://github.com/PHPMailer/PHPMailer). If your company uses PHPMailer, consider taking part in Tidelift's enterprise support programme.
  202 +
  203 +## PHPMailer For Enterprise
  204 +
  205 +Available as part of the Tidelift Subscription.
  206 +
  207 +The maintainers of PHPMailer and thousands of other packages are working with Tidelift to deliver commercial
  208 +support and maintenance for the open-source packages you use to build your applications. Save time, reduce risk, and
  209 +improve code health, while paying the maintainers of the exact packages you
  210 +use. [Learn more.](https://tidelift.com/subscription/pkg/packagist-phpmailer-phpmailer?utm_source=packagist-phpmailer-phpmailer&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
  211 +
  212 +## Changelog
  213 +See [changelog](changelog.md).
  214 +
  215 +## History
  216 +- PHPMailer was originally written in 2001 by Brent R. Matzelle as a [SourceForge project](http://sourceforge.net/projects/phpmailer/).
  217 +- [Marcus Bointon](https://github.com/Synchro) (`coolbru` on SF) and Andy Prevost (`codeworxtech`) took over the project in 2004.
  218 +- Became an Apache incubator project on Google Code in 2010, managed by Jim Jagielski.
  219 +- Marcus created [his fork on GitHub](https://github.com/Synchro/PHPMailer) in 2008.
  220 +- Jim and Marcus decide to join forces and use GitHub as the canonical and official repo for PHPMailer in 2013.
  221 +- PHPMailer moves to [the PHPMailer organisation](https://github.com/PHPMailer) on GitHub in 2013.
  222 +
  223 +### What's changed since moving from SourceForge?
  224 +- Official successor to the SourceForge and Google Code projects.
  225 +- Test suite.
  226 +- Continuous integration with GitHub Actions.
  227 +- Composer support.
  228 +- Public development.
  229 +- Additional languages and language strings.
  230 +- CRAM-MD5 authentication support.
  231 +- Preserves full repo history of authors, commits, and branches from the original SourceForge project.
  1 +# Security notices relating to PHPMailer
  2 +
  3 +Please disclose any security issues or vulnerabilities found through [Tidelift's coordinated disclosure system](https://tidelift.com/security) or to the maintainers privately.
  4 +
  5 +PHPMailer 6.4.1 and earlier contain a vulnerability that can result in untrusted code being called (if such code is injected into the host project's scope by other means). If the `$patternselect` parameter to `validateAddress()` is set to `'php'` (the default, defined by `PHPMailer::$validator`), and the global namespace contains a function called `php`, it will be called in preference to the built-in validator of the same name. Mitigated in PHPMailer 6.5.0 by denying the use of simple strings as validator function names. Recorded as [CVE-2021-3603](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-3603). Reported by [Vikrant Singh Chauhan](mailto:vi@hackberry.xyz) via [huntr.dev](https://www.huntr.dev/).
  6 +
  7 +PHPMailer versions 6.4.1 and earlier contain a possible remote code execution vulnerability through the `$lang_path` parameter of the `setLanguage()` method. If the `$lang_path` parameter is passed unfiltered from user input, it can be set to [a UNC path](https://docs.microsoft.com/en-us/dotnet/standard/io/file-path-formats#unc-paths), and if an attacker is also able to persuade the server to load a file from that UNC path, a script file under their control may be executed. This vulnerability only applies to systems that resolve UNC paths, typically only Microsoft Windows.
  8 +PHPMailer 6.5.0 mitigates this by no longer treating translation files as PHP code, but by parsing their text content directly. This approach avoids the possibility of executing unknown code while retaining backward compatibility. This isn't ideal, so the current translation format is deprecated and will be replaced in the next major release. Recorded as [CVE-2021-34551](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-34551). Reported by [Jilin Diting Information Technology Co., Ltd](https://listensec.com) via Tidelift.
  9 +
  10 +PHPMailer versions between 6.1.8 and 6.4.0 contain a regression of the earlier CVE-2018-19296 object injection vulnerability as a result of [a fix for Windows UNC paths in 6.1.8](https://github.com/PHPMailer/PHPMailer/commit/e2e07a355ee8ff36aba21d0242c5950c56e4c6f9). Recorded as [CVE-2020-36326](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-36326). Reported by Fariskhi Vidyan via Tidelift. 6.4.1 fixes this issue, and also enforces stricter checks for URL schemes in local path contexts.
  11 +
  12 +PHPMailer versions 6.1.5 and earlier contain an output escaping bug that occurs in `Content-Type` and `Content-Disposition` when filenames passed into `addAttachment` and other methods that accept attachment names contain double quote characters, in contravention of RFC822 3.4.1. No specific vulnerability has been found relating to this, but it could allow file attachments to bypass attachment filters that are based on matching filename extensions. Recorded as [CVE-2020-13625](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-13625). Reported by Elar Lang of Clarified Security.
  13 +
  14 +PHPMailer versions prior to 6.0.6 and 5.2.27 are vulnerable to an object injection attack by passing `phar://` paths into `addAttachment()` and other functions that may receive unfiltered local paths, possibly leading to RCE. Recorded as [CVE-2018-19296](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-19296). See [this article](https://knasmueller.net/5-answers-about-php-phar-exploitation) for more info on this type of vulnerability. Mitigated by blocking the use of paths containing URL-protocol style prefixes such as `phar://`. Reported by Sehun Oh of cyberone.kr.
  15 +
  16 +PHPMailer versions prior to 5.2.24 (released July 26th 2017) have an XSS vulnerability in one of the code examples, [CVE-2017-11503](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2017-11503). The `code_generator.phps` example did not filter user input prior to output. This file is distributed with a `.phps` extension, so it it not normally executable unless it is explicitly renamed, and the file is not included when PHPMailer is loaded through composer, so it is safe by default. There was also an undisclosed potential XSS vulnerability in the default exception handler (unused by default). Patches for both issues kindly provided by Patrick Monnerat of the Fedora Project.
  17 +
  18 +PHPMailer versions prior to 5.2.22 (released January 9th 2017) have a local file disclosure vulnerability, [CVE-2017-5223](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2017-5223). If content passed into `msgHTML()` is sourced from unfiltered user input, relative paths can map to absolute local file paths and added as attachments. Also note that `addAttachment` (just like `file_get_contents`, `passthru`, `unlink`, etc) should not be passed user-sourced params either! Reported by Yongxiang Li of Asiasecurity.
  19 +
  20 +PHPMailer versions prior to 5.2.20 (released December 28th 2016) are vulnerable to [CVE-2016-10045](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-10045) a remote code execution vulnerability, responsibly reported by [Dawid Golunski](https://legalhackers.com/advisories/PHPMailer-Exploit-Remote-Code-Exec-CVE-2016-10045-Vuln-Patch-Bypass.html), and patched by Paul Buonopane (@Zenexer).
  21 +
  22 +PHPMailer versions prior to 5.2.18 (released December 2016) are vulnerable to [CVE-2016-10033](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-10033) a remote code execution vulnerability, responsibly reported by [Dawid Golunski](http://legalhackers.com/advisories/PHPMailer-Exploit-Remote-Code-Exec-CVE-2016-10033-Vuln.html).
  23 +
  24 +PHPMailer versions prior to 5.2.14 (released November 2015) are vulnerable to [CVE-2015-8476](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-8476) an SMTP CRLF injection bug permitting arbitrary message sending.
  25 +
  26 +PHPMailer versions prior to 5.2.10 (released May 2015) are vulnerable to [CVE-2008-5619](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2008-5619), a remote code execution vulnerability in the bundled html2text library. This file was removed in 5.2.10, so if you are using a version prior to that and make use of the html2text function, it's vitally important that you upgrade and remove this file.
  27 +
  28 +PHPMailer versions prior to 2.0.7 and 2.2.1 are vulnerable to [CVE-2012-0796](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-0796), an email header injection attack.
  29 +
  30 +Joomla 1.6.0 uses PHPMailer in an unsafe way, allowing it to reveal local file paths, reported in [CVE-2011-3747](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2011-3747).
  31 +
  32 +PHPMailer didn't sanitise the `$lang_path` parameter in `SetLanguage`. This wasn't a problem in itself, but some apps (PHPClassifieds, ATutor) also failed to sanitise user-provided parameters passed to it, permitting semi-arbitrary local file inclusion, reported in [CVE-2010-4914](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2010-4914), [CVE-2007-2021](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2007-2021) and [CVE-2006-5734](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2006-5734).
  33 +
  34 +PHPMailer 1.7.2 and earlier contained a possible DDoS vulnerability reported in [CVE-2005-1807](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2005-1807).
  35 +
  36 +PHPMailer 1.7 and earlier (June 2003) have a possible vulnerability in the `SendmailSend` method where shell commands may not be sanitised. Reported in [CVE-2007-3215](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2007-3215).
  37 +
  1 +{
  2 + "name": "phpmailer/phpmailer",
  3 + "type": "library",
  4 + "description": "PHPMailer is a full-featured email creation and transfer class for PHP",
  5 + "authors": [
  6 + {
  7 + "name": "Marcus Bointon",
  8 + "email": "phpmailer@synchromedia.co.uk"
  9 + },
  10 + {
  11 + "name": "Jim Jagielski",
  12 + "email": "jimjag@gmail.com"
  13 + },
  14 + {
  15 + "name": "Andy Prevost",
  16 + "email": "codeworxtech@users.sourceforge.net"
  17 + },
  18 + {
  19 + "name": "Brent R. Matzelle"
  20 + }
  21 + ],
  22 + "funding": [
  23 + {
  24 + "url": "https://github.com/Synchro",
  25 + "type": "github"
  26 + }
  27 + ],
  28 + "config": {
  29 + "allow-plugins": {
  30 + "dealerdirect/phpcodesniffer-composer-installer": true
  31 + }
  32 + },
  33 + "require": {
  34 + "php": ">=5.5.0",
  35 + "ext-ctype": "*",
  36 + "ext-filter": "*",
  37 + "ext-hash": "*"
  38 + },
  39 + "require-dev": {
  40 + "dealerdirect/phpcodesniffer-composer-installer": "^1.0",
  41 + "doctrine/annotations": "^1.2.6 || ^1.13.3",
  42 + "php-parallel-lint/php-console-highlighter": "^1.0.0",
  43 + "php-parallel-lint/php-parallel-lint": "^1.3.2",
  44 + "phpcompatibility/php-compatibility": "^9.3.5",
  45 + "roave/security-advisories": "dev-latest",
  46 + "squizlabs/php_codesniffer": "^3.7.2",
  47 + "yoast/phpunit-polyfills": "^1.0.4"
  48 + },
  49 + "suggest": {
  50 + "decomplexity/SendOauth2": "Adapter for using XOAUTH2 authentication",
  51 + "ext-mbstring": "Needed to send email in multibyte encoding charset or decode encoded addresses",
  52 + "ext-openssl": "Needed for secure SMTP sending and DKIM signing",
  53 + "greew/oauth2-azure-provider": "Needed for Microsoft Azure XOAUTH2 authentication",
  54 + "hayageek/oauth2-yahoo": "Needed for Yahoo XOAUTH2 authentication",
  55 + "league/oauth2-google": "Needed for Google XOAUTH2 authentication",
  56 + "psr/log": "For optional PSR-3 debug logging",
  57 + "thenetworg/oauth2-azure": "Needed for Microsoft XOAUTH2 authentication",
  58 + "symfony/polyfill-mbstring": "To support UTF-8 if the Mbstring PHP extension is not enabled (^1.2)"
  59 + },
  60 + "autoload": {
  61 + "psr-4": {
  62 + "PHPMailer\\PHPMailer\\": "src/"
  63 + }
  64 + },
  65 + "autoload-dev": {
  66 + "psr-4": {
  67 + "PHPMailer\\Test\\": "test/"
  68 + }
  69 + },
  70 + "license": "LGPL-2.1-only",
  71 + "scripts": {
  72 + "check": "./vendor/bin/phpcs",
  73 + "test": "./vendor/bin/phpunit --no-coverage",
  74 + "coverage": "./vendor/bin/phpunit",
  75 + "lint": [
  76 + "@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . --show-deprecated -e php,phps --exclude vendor --exclude .git --exclude build"
  77 + ]
  78 + }
  79 +}
  1 +<?php
  2 +
  3 +/**
  4 + * PHPMailer - PHP email creation and transport class.
  5 + * PHP Version 5.5
  6 + * @package PHPMailer
  7 + * @see https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
  8 + * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
  9 + * @author Jim Jagielski (jimjag) <jimjag@gmail.com>
  10 + * @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
  11 + * @author Brent R. Matzelle (original founder)
  12 + * @copyright 2012 - 2020 Marcus Bointon
  13 + * @copyright 2010 - 2012 Jim Jagielski
  14 + * @copyright 2004 - 2009 Andy Prevost
  15 + * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
  16 + * @note This program is distributed in the hope that it will be useful - WITHOUT
  17 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  18 + * FITNESS FOR A PARTICULAR PURPOSE.
  19 + */
  20 +
  21 +/**
  22 + * Get an OAuth2 token from an OAuth2 provider.
  23 + * * Install this script on your server so that it's accessible
  24 + * as [https/http]://<yourdomain>/<folder>/get_oauth_token.php
  25 + * e.g.: http://localhost/phpmailer/get_oauth_token.php
  26 + * * Ensure dependencies are installed with 'composer install'
  27 + * * Set up an app in your Google/Yahoo/Microsoft account
  28 + * * Set the script address as the app's redirect URL
  29 + * If no refresh token is obtained when running this file,
  30 + * revoke access to your app and run the script again.
  31 + */
  32 +
  33 +namespace PHPMailer\PHPMailer;
  34 +
  35 +/**
  36 + * Aliases for League Provider Classes
  37 + * Make sure you have added these to your composer.json and run `composer install`
  38 + * Plenty to choose from here:
  39 + * @see http://oauth2-client.thephpleague.com/providers/thirdparty/
  40 + */
  41 +//@see https://github.com/thephpleague/oauth2-google
  42 +use League\OAuth2\Client\Provider\Google;
  43 +//@see https://packagist.org/packages/hayageek/oauth2-yahoo
  44 +use Hayageek\OAuth2\Client\Provider\Yahoo;
  45 +//@see https://github.com/stevenmaguire/oauth2-microsoft
  46 +use Stevenmaguire\OAuth2\Client\Provider\Microsoft;
  47 +//@see https://github.com/greew/oauth2-azure-provider
  48 +use Greew\OAuth2\Client\Provider\Azure;
  49 +
  50 +if (!isset($_GET['code']) && !isset($_POST['provider'])) {
  51 + ?>
  52 +<html>
  53 +<body>
  54 +<form method="post">
  55 + <h1>Select Provider</h1>
  56 + <input type="radio" name="provider" value="Google" id="providerGoogle">
  57 + <label for="providerGoogle">Google</label><br>
  58 + <input type="radio" name="provider" value="Yahoo" id="providerYahoo">
  59 + <label for="providerYahoo">Yahoo</label><br>
  60 + <input type="radio" name="provider" value="Microsoft" id="providerMicrosoft">
  61 + <label for="providerMicrosoft">Microsoft</label><br>
  62 + <input type="radio" name="provider" value="Azure" id="providerAzure">
  63 + <label for="providerAzure">Azure</label><br>
  64 + <h1>Enter id and secret</h1>
  65 + <p>These details are obtained by setting up an app in your provider's developer console.
  66 + </p>
  67 + <p>ClientId: <input type="text" name="clientId"><p>
  68 + <p>ClientSecret: <input type="text" name="clientSecret"></p>
  69 + <p>TenantID (only relevant for Azure): <input type="text" name="tenantId"></p>
  70 + <input type="submit" value="Continue">
  71 +</form>
  72 +</body>
  73 +</html>
  74 + <?php
  75 + exit;
  76 +}
  77 +
  78 +require 'vendor/autoload.php';
  79 +
  80 +session_start();
  81 +
  82 +$providerName = '';
  83 +$clientId = '';
  84 +$clientSecret = '';
  85 +$tenantId = '';
  86 +
  87 +if (array_key_exists('provider', $_POST)) {
  88 + $providerName = $_POST['provider'];
  89 + $clientId = $_POST['clientId'];
  90 + $clientSecret = $_POST['clientSecret'];
  91 + $tenantId = $_POST['tenantId'];
  92 + $_SESSION['provider'] = $providerName;
  93 + $_SESSION['clientId'] = $clientId;
  94 + $_SESSION['clientSecret'] = $clientSecret;
  95 + $_SESSION['tenantId'] = $tenantId;
  96 +} elseif (array_key_exists('provider', $_SESSION)) {
  97 + $providerName = $_SESSION['provider'];
  98 + $clientId = $_SESSION['clientId'];
  99 + $clientSecret = $_SESSION['clientSecret'];
  100 + $tenantId = $_SESSION['tenantId'];
  101 +}
  102 +
  103 +//If you don't want to use the built-in form, set your client id and secret here
  104 +//$clientId = 'RANDOMCHARS-----duv1n2.apps.googleusercontent.com';
  105 +//$clientSecret = 'RANDOMCHARS-----lGyjPcRtvP';
  106 +
  107 +//If this automatic URL doesn't work, set it yourself manually to the URL of this script
  108 +$redirectUri = (isset($_SERVER['HTTPS']) ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
  109 +//$redirectUri = 'http://localhost/PHPMailer/redirect';
  110 +
  111 +$params = [
  112 + 'clientId' => $clientId,
  113 + 'clientSecret' => $clientSecret,
  114 + 'redirectUri' => $redirectUri,
  115 + 'accessType' => 'offline'
  116 +];
  117 +
  118 +$options = [];
  119 +$provider = null;
  120 +
  121 +switch ($providerName) {
  122 + case 'Google':
  123 + $provider = new Google($params);
  124 + $options = [
  125 + 'scope' => [
  126 + 'https://mail.google.com/'
  127 + ]
  128 + ];
  129 + break;
  130 + case 'Yahoo':
  131 + $provider = new Yahoo($params);
  132 + break;
  133 + case 'Microsoft':
  134 + $provider = new Microsoft($params);
  135 + $options = [
  136 + 'scope' => [
  137 + 'wl.imap',
  138 + 'wl.offline_access'
  139 + ]
  140 + ];
  141 + break;
  142 + case 'Azure':
  143 + $params['tenantId'] = $tenantId;
  144 +
  145 + $provider = new Azure($params);
  146 + $options = [
  147 + 'scope' => [
  148 + 'https://outlook.office.com/SMTP.Send',
  149 + 'offline_access'
  150 + ]
  151 + ];
  152 + break;
  153 +}
  154 +
  155 +if (null === $provider) {
  156 + exit('Provider missing');
  157 +}
  158 +
  159 +if (!isset($_GET['code'])) {
  160 + //If we don't have an authorization code then get one
  161 + $authUrl = $provider->getAuthorizationUrl($options);
  162 + $_SESSION['oauth2state'] = $provider->getState();
  163 + header('Location: ' . $authUrl);
  164 + exit;
  165 + //Check given state against previously stored one to mitigate CSRF attack
  166 +} elseif (empty($_GET['state']) || ($_GET['state'] !== $_SESSION['oauth2state'])) {
  167 + unset($_SESSION['oauth2state']);
  168 + unset($_SESSION['provider']);
  169 + exit('Invalid state');
  170 +} else {
  171 + unset($_SESSION['provider']);
  172 + //Try to get an access token (using the authorization code grant)
  173 + $token = $provider->getAccessToken(
  174 + 'authorization_code',
  175 + [
  176 + 'code' => $_GET['code']
  177 + ]
  178 + );
  179 + //Use this to interact with an API on the users behalf
  180 + //Use this to get a new access token if the old one expires
  181 + echo 'Refresh Token: ', $token->getRefreshToken();
  182 +}
  1 +<?php
  2 +
  3 +/**
  4 + * Afrikaans PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + */
  7 +
  8 +$PHPMAILER_LANG['authenticate'] = 'SMTP-fout: kon nie geverifieer word nie.';
  9 +$PHPMAILER_LANG['connect_host'] = 'SMTP-fout: kon nie aan SMTP-verbind nie.';
  10 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP-fout: data nie aanvaar nie.';
  11 +$PHPMAILER_LANG['empty_message'] = 'Boodskapliggaam leeg.';
  12 +$PHPMAILER_LANG['encoding'] = 'Onbekende kodering: ';
  13 +$PHPMAILER_LANG['execute'] = 'Kon nie uitvoer nie: ';
  14 +$PHPMAILER_LANG['file_access'] = 'Kon nie lêer oopmaak nie: ';
  15 +$PHPMAILER_LANG['file_open'] = 'Lêerfout: Kon nie lêer oopmaak nie: ';
  16 +$PHPMAILER_LANG['from_failed'] = 'Die volgende Van adres misluk: ';
  17 +$PHPMAILER_LANG['instantiate'] = 'Kon nie posfunksie instansieer nie.';
  18 +$PHPMAILER_LANG['invalid_address'] = 'Ongeldige adres: ';
  19 +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer word nie ondersteun nie.';
  20 +$PHPMAILER_LANG['provide_address'] = 'U moet ten minste een ontvanger e-pos adres verskaf.';
  21 +$PHPMAILER_LANG['recipients_failed'] = 'SMTP-fout: Die volgende ontvangers het misluk: ';
  22 +$PHPMAILER_LANG['signing'] = 'Ondertekening Fout: ';
  23 +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP-verbinding () misluk.';
  24 +$PHPMAILER_LANG['smtp_error'] = 'SMTP-bediener fout: ';
  25 +$PHPMAILER_LANG['variable_set'] = 'Kan nie veranderlike instel of herstel nie: ';
  26 +$PHPMAILER_LANG['extension_missing'] = 'Uitbreiding ontbreek: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Arabic PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author bahjat al mostafa <bahjat983@hotmail.com>
  7 + */
  8 +
  9 +$PHPMAILER_LANG['authenticate'] = 'خطأ SMTP : لا يمكن تأكيد الهوية.';
  10 +$PHPMAILER_LANG['connect_host'] = 'خطأ SMTP: لا يمكن الاتصال بالخادم SMTP.';
  11 +$PHPMAILER_LANG['data_not_accepted'] = 'خطأ SMTP: لم يتم قبول المعلومات .';
  12 +$PHPMAILER_LANG['empty_message'] = 'نص الرسالة فارغ';
  13 +$PHPMAILER_LANG['encoding'] = 'ترميز غير معروف: ';
  14 +$PHPMAILER_LANG['execute'] = 'لا يمكن تنفيذ : ';
  15 +$PHPMAILER_LANG['file_access'] = 'لا يمكن الوصول للملف: ';
  16 +$PHPMAILER_LANG['file_open'] = 'خطأ في الملف: لا يمكن فتحه: ';
  17 +$PHPMAILER_LANG['from_failed'] = 'خطأ على مستوى عنوان المرسل : ';
  18 +$PHPMAILER_LANG['instantiate'] = 'لا يمكن توفير خدمة البريد.';
  19 +$PHPMAILER_LANG['invalid_address'] = 'الإرسال غير ممكن لأن عنوان البريد الإلكتروني غير صالح: ';
  20 +$PHPMAILER_LANG['mailer_not_supported'] = ' برنامج الإرسال غير مدعوم.';
  21 +$PHPMAILER_LANG['provide_address'] = 'يجب توفير عنوان البريد الإلكتروني لمستلم واحد على الأقل.';
  22 +$PHPMAILER_LANG['recipients_failed'] = 'خطأ SMTP: الأخطاء التالية فشل في الارسال لكل من : ';
  23 +$PHPMAILER_LANG['signing'] = 'خطأ في التوقيع: ';
  24 +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() غير ممكن.';
  25 +$PHPMAILER_LANG['smtp_error'] = 'خطأ على مستوى الخادم SMTP: ';
  26 +$PHPMAILER_LANG['variable_set'] = 'لا يمكن تعيين أو إعادة تعيين متغير: ';
  27 +$PHPMAILER_LANG['extension_missing'] = 'الإضافة غير موجودة: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Assamese PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Manish Sarkar <manish.n.manish@gmail.com>
  7 + */
  8 +
  9 +$PHPMAILER_LANG['authenticate'] = 'SMTP ত্ৰুটি: প্ৰমাণীকৰণ কৰিব নোৱাৰি';
  10 +$PHPMAILER_LANG['buggy_php'] = 'আপোনাৰ PHP সংস্কৰণ এটা বাগৰ দ্বাৰা প্ৰভাৱিত হয় যাৰ ফলত নষ্ট বাৰ্তা হব পাৰে । ইয়াক সমাধান কৰিবলে, প্ৰেৰণ কৰিবলে SMTP ব্যৱহাৰ কৰক, আপোনাৰ php.ini ত mail.add_x_header বিকল্প নিষ্ক্ৰিয় কৰক, MacOS বা Linux লৈ সলনি কৰক, বা আপোনাৰ PHP সংস্কৰণ 7.0.17+ বা 7.1.3+ লৈ সলনি কৰক ।';
  11 +$PHPMAILER_LANG['connect_host'] = 'SMTP ত্ৰুটি: SMTP চাৰ্ভাৰৰ সৈতে সংযোগ কৰিবলে অক্ষম';
  12 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP ত্ৰুটি: তথ্য গ্ৰহণ কৰা হোৱা নাই';
  13 +$PHPMAILER_LANG['empty_message'] = 'বাৰ্তাৰ মূখ্য অংশ খালী।';
  14 +$PHPMAILER_LANG['encoding'] = 'অজ্ঞাত এনকোডিং: ';
  15 +$PHPMAILER_LANG['execute'] = 'এক্সিকিউট কৰিব নোৱাৰি: ';
  16 +$PHPMAILER_LANG['extension_missing'] = 'সম্প্ৰসাৰণ নোহোৱা হৈছে: ';
  17 +$PHPMAILER_LANG['file_access'] = 'ফাইল অভিগম কৰিবলে অক্ষম: ';
  18 +$PHPMAILER_LANG['file_open'] = 'ফাইল ত্ৰুটি: ফাইল খোলিবলৈ অক্ষম: ';
  19 +$PHPMAILER_LANG['from_failed'] = 'নিম্নলিখিত প্ৰেৰকৰ ঠিকনা(সমূহ) ব্যৰ্থ: ';
  20 +$PHPMAILER_LANG['instantiate'] = 'মেইল ফাংচনৰ এটা উদাহৰণ সৃষ্টি কৰিবলে অক্ষম';
  21 +$PHPMAILER_LANG['invalid_address'] = 'প্ৰেৰণ কৰিব নোৱাৰি: অবৈধ ইমেইল ঠিকনা: ';
  22 +$PHPMAILER_LANG['invalid_header'] = 'অবৈধ হেডাৰৰ নাম বা মান';
  23 +$PHPMAILER_LANG['invalid_hostentry'] = 'অবৈধ হোষ্টেন্ট্ৰি: ';
  24 +$PHPMAILER_LANG['invalid_host'] = 'অবৈধ হস্ট:';
  25 +$PHPMAILER_LANG['mailer_not_supported'] = 'মেইলাৰ সমৰ্থিত নহয়।';
  26 +$PHPMAILER_LANG['provide_address'] = 'আপুনি অন্ততঃ এটা গন্তব্য ইমেইল ঠিকনা দিব লাগিব';
  27 +$PHPMAILER_LANG['recipients_failed'] = 'SMTP ত্ৰুটি: নিম্নলিখিত গন্তব্যস্থানসমূহ ব্যৰ্থ: ';
  28 +$PHPMAILER_LANG['signing'] = 'স্বাক্ষৰ কৰাত ব্যৰ্থ: ';
  29 +$PHPMAILER_LANG['smtp_code'] = 'SMTP কড: ';
  30 +$PHPMAILER_LANG['smtp_code_ex'] = 'অতিৰিক্ত SMTP তথ্য: ';
  31 +$PHPMAILER_LANG['smtp_detail'] = 'বিৱৰণ:';
  32 +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP সংযোগ() ব্যৰ্থ';
  33 +$PHPMAILER_LANG['smtp_error'] = 'SMTP চাৰ্ভাৰৰ ত্ৰুটি: ';
  34 +$PHPMAILER_LANG['variable_set'] = 'চলক নিৰ্ধাৰণ কৰিব পৰা নগল: ';
  35 +$PHPMAILER_LANG['extension_missing'] = 'অনুপস্থিত সম্প্ৰসাৰণ: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Azerbaijani PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author @mirjalal
  7 + */
  8 +
  9 +$PHPMAILER_LANG['authenticate'] = 'SMTP xətası: Giriş uğursuz oldu.';
  10 +$PHPMAILER_LANG['connect_host'] = 'SMTP xətası: SMTP serverinə qoşulma uğursuz oldu.';
  11 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP xətası: Verilənlər qəbul edilməyib.';
  12 +$PHPMAILER_LANG['empty_message'] = 'Boş mesaj göndərilə bilməz.';
  13 +$PHPMAILER_LANG['encoding'] = 'Qeyri-müəyyən kodlaşdırma: ';
  14 +$PHPMAILER_LANG['execute'] = 'Əmr yerinə yetirilmədi: ';
  15 +$PHPMAILER_LANG['file_access'] = 'Fayla giriş yoxdur: ';
  16 +$PHPMAILER_LANG['file_open'] = 'Fayl xətası: Fayl açıla bilmədi: ';
  17 +$PHPMAILER_LANG['from_failed'] = 'Göstərilən poçtlara göndərmə uğursuz oldu: ';
  18 +$PHPMAILER_LANG['instantiate'] = 'Mail funksiyası işə salına bilmədi.';
  19 +$PHPMAILER_LANG['invalid_address'] = 'Düzgün olmayan e-mail adresi: ';
  20 +$PHPMAILER_LANG['mailer_not_supported'] = ' - e-mail kitabxanası dəstəklənmir.';
  21 +$PHPMAILER_LANG['provide_address'] = 'Ən azı bir e-mail adresi daxil edilməlidir.';
  22 +$PHPMAILER_LANG['recipients_failed'] = 'SMTP xətası: Aşağıdakı ünvanlar üzrə alıcılara göndərmə uğursuzdur: ';
  23 +$PHPMAILER_LANG['signing'] = 'İmzalama xətası: ';
  24 +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP serverinə qoşulma uğursuz oldu.';
  25 +$PHPMAILER_LANG['smtp_error'] = 'SMTP serveri xətası: ';
  26 +$PHPMAILER_LANG['variable_set'] = 'Dəyişənin quraşdırılması uğursuz oldu: ';
  27 +//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Bosnian PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Ermin Islamagić <ermin@islamagic.com>
  7 + */
  8 +
  9 +$PHPMAILER_LANG['authenticate'] = 'SMTP Greška: Neuspjela prijava.';
  10 +$PHPMAILER_LANG['connect_host'] = 'SMTP Greška: Nije moguće spojiti se sa SMTP serverom.';
  11 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Greška: Podatci nisu prihvaćeni.';
  12 +$PHPMAILER_LANG['empty_message'] = 'Sadržaj poruke je prazan.';
  13 +$PHPMAILER_LANG['encoding'] = 'Nepoznata kriptografija: ';
  14 +$PHPMAILER_LANG['execute'] = 'Nije moguće izvršiti naredbu: ';
  15 +$PHPMAILER_LANG['file_access'] = 'Nije moguće pristupiti datoteci: ';
  16 +$PHPMAILER_LANG['file_open'] = 'Nije moguće otvoriti datoteku: ';
  17 +$PHPMAILER_LANG['from_failed'] = 'SMTP Greška: Slanje sa navedenih e-mail adresa nije uspjelo: ';
  18 +$PHPMAILER_LANG['recipients_failed'] = 'SMTP Greška: Slanje na navedene e-mail adrese nije uspjelo: ';
  19 +$PHPMAILER_LANG['instantiate'] = 'Ne mogu pokrenuti mail funkcionalnost.';
  20 +$PHPMAILER_LANG['invalid_address'] = 'E-mail nije poslan. Neispravna e-mail adresa: ';
  21 +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer nije podržan.';
  22 +$PHPMAILER_LANG['provide_address'] = 'Definišite barem jednu adresu primaoca.';
  23 +$PHPMAILER_LANG['signing'] = 'Greška prilikom prijave: ';
  24 +$PHPMAILER_LANG['smtp_connect_failed'] = 'Spajanje na SMTP server nije uspjelo.';
  25 +$PHPMAILER_LANG['smtp_error'] = 'SMTP greška: ';
  26 +$PHPMAILER_LANG['variable_set'] = 'Nije moguće postaviti varijablu ili je vratiti nazad: ';
  27 +$PHPMAILER_LANG['extension_missing'] = 'Nedostaje ekstenzija: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Belarusian PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Aleksander Maksymiuk <info@setpro.pl>
  7 + */
  8 +
  9 +$PHPMAILER_LANG['authenticate'] = 'Памылка SMTP: памылка ідэнтыфікацыі.';
  10 +$PHPMAILER_LANG['connect_host'] = 'Памылка SMTP: нельга ўстанавіць сувязь з SMTP-серверам.';
  11 +$PHPMAILER_LANG['data_not_accepted'] = 'Памылка SMTP: звесткі непрынятыя.';
  12 +$PHPMAILER_LANG['empty_message'] = 'Пустое паведамленне.';
  13 +$PHPMAILER_LANG['encoding'] = 'Невядомая кадыроўка тэксту: ';
  14 +$PHPMAILER_LANG['execute'] = 'Нельга выканаць каманду: ';
  15 +$PHPMAILER_LANG['file_access'] = 'Няма доступу да файла: ';
  16 +$PHPMAILER_LANG['file_open'] = 'Нельга адкрыць файл: ';
  17 +$PHPMAILER_LANG['from_failed'] = 'Няправільны адрас адпраўніка: ';
  18 +$PHPMAILER_LANG['instantiate'] = 'Нельга прымяніць функцыю mail().';
  19 +$PHPMAILER_LANG['invalid_address'] = 'Нельга даслаць паведамленне, няправільны email атрымальніка: ';
  20 +$PHPMAILER_LANG['provide_address'] = 'Запоўніце, калі ласка, правільны email атрымальніка.';
  21 +$PHPMAILER_LANG['mailer_not_supported'] = ' - паштовы сервер не падтрымліваецца.';
  22 +$PHPMAILER_LANG['recipients_failed'] = 'Памылка SMTP: няправільныя атрымальнікі: ';
  23 +$PHPMAILER_LANG['signing'] = 'Памылка подпісу паведамлення: ';
  24 +$PHPMAILER_LANG['smtp_connect_failed'] = 'Памылка сувязі з SMTP-серверам.';
  25 +$PHPMAILER_LANG['smtp_error'] = 'Памылка SMTP: ';
  26 +$PHPMAILER_LANG['variable_set'] = 'Нельга ўстанавіць або перамяніць значэнне пераменнай: ';
  27 +//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Bulgarian PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Mikhail Kyosev <mialygk@gmail.com>
  7 + */
  8 +
  9 +$PHPMAILER_LANG['authenticate'] = 'SMTP грешка: Не може да се удостовери пред сървъра.';
  10 +$PHPMAILER_LANG['connect_host'] = 'SMTP грешка: Не може да се свърже с SMTP хоста.';
  11 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP грешка: данните не са приети.';
  12 +$PHPMAILER_LANG['empty_message'] = 'Съдържанието на съобщението е празно';
  13 +$PHPMAILER_LANG['encoding'] = 'Неизвестно кодиране: ';
  14 +$PHPMAILER_LANG['execute'] = 'Не може да се изпълни: ';
  15 +$PHPMAILER_LANG['file_access'] = 'Няма достъп до файл: ';
  16 +$PHPMAILER_LANG['file_open'] = 'Файлова грешка: Не може да се отвори файл: ';
  17 +$PHPMAILER_LANG['from_failed'] = 'Следните адреси за подател са невалидни: ';
  18 +$PHPMAILER_LANG['instantiate'] = 'Не може да се инстанцира функцията mail.';
  19 +$PHPMAILER_LANG['invalid_address'] = 'Невалиден адрес: ';
  20 +$PHPMAILER_LANG['mailer_not_supported'] = ' - пощенски сървър не се поддържа.';
  21 +$PHPMAILER_LANG['provide_address'] = 'Трябва да предоставите поне един email адрес за получател.';
  22 +$PHPMAILER_LANG['recipients_failed'] = 'SMTP грешка: Следните адреси за Получател са невалидни: ';
  23 +$PHPMAILER_LANG['signing'] = 'Грешка при подписване: ';
  24 +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP провален connect().';
  25 +$PHPMAILER_LANG['smtp_error'] = 'SMTP сървърна грешка: ';
  26 +$PHPMAILER_LANG['variable_set'] = 'Не може да се установи или възстанови променлива: ';
  27 +$PHPMAILER_LANG['extension_missing'] = 'Липсва разширение: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Bengali PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Manish Sarkar <manish.n.manish@gmail.com>
  7 + */
  8 +
  9 +$PHPMAILER_LANG['authenticate'] = 'SMTP ত্রুটি: প্রমাণীকরণ করতে অক্ষম৷';
  10 +$PHPMAILER_LANG['buggy_php'] = 'আপনার PHP সংস্করণ একটি বাগ দ্বারা প্রভাবিত হয় যার ফলে দূষিত বার্তা হতে পারে। এটি ঠিক করতে, পাঠাতে SMTP ব্যবহার করুন, আপনার php.ini এ mail.add_x_header বিকল্পটি নিষ্ক্রিয় করুন, MacOS বা Linux-এ স্যুইচ করুন, অথবা আপনার PHP সংস্করণকে 7.0.17+ বা 7.1.3+ এ পরিবর্তন করুন।';
  11 +$PHPMAILER_LANG['connect_host'] = 'SMTP ত্রুটি: SMTP সার্ভারের সাথে সংযোগ করতে অক্ষম৷';
  12 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP ত্রুটি: ডেটা গ্রহণ করা হয়নি৷';
  13 +$PHPMAILER_LANG['empty_message'] = 'বার্তার অংশটি খালি।';
  14 +$PHPMAILER_LANG['encoding'] = 'অজানা এনকোডিং: ';
  15 +$PHPMAILER_LANG['execute'] = 'নির্বাহ করতে অক্ষম: ';
  16 +$PHPMAILER_LANG['extension_missing'] = 'এক্সটেনশন অনুপস্থিত:';
  17 +$PHPMAILER_LANG['file_access'] = 'ফাইল অ্যাক্সেস করতে অক্ষম: ';
  18 +$PHPMAILER_LANG['file_open'] = 'ফাইল ত্রুটি: ফাইল খুলতে অক্ষম: ';
  19 +$PHPMAILER_LANG['from_failed'] = 'নিম্নলিখিত প্রেরকের ঠিকানা(গুলি) ব্যর্থ হয়েছে: ';
  20 +$PHPMAILER_LANG['instantiate'] = 'মেল ফাংশনের একটি উদাহরণ তৈরি করতে অক্ষম৷';
  21 +$PHPMAILER_LANG['invalid_address'] = 'পাঠাতে অক্ষম: অবৈধ ইমেল ঠিকানা: ';
  22 +$PHPMAILER_LANG['invalid_header'] = 'অবৈধ হেডার নাম বা মান';
  23 +$PHPMAILER_LANG['invalid_hostentry'] = 'অবৈধ হোস্টেন্ট্রি: ';
  24 +$PHPMAILER_LANG['invalid_host'] = 'অবৈধ হোস্ট:';
  25 +$PHPMAILER_LANG['mailer_not_supported'] = 'মেইলার সমর্থিত নয়।';
  26 +$PHPMAILER_LANG['provide_address'] = 'আপনাকে অবশ্যই অন্তত একটি গন্তব্য ইমেল ঠিকানা প্রদান করতে হবে৷';
  27 +$PHPMAILER_LANG['recipients_failed'] = 'SMTP ত্রুটি: নিম্নলিখিত গন্তব্যগুলি ব্যর্থ হয়েছে: ';
  28 +$PHPMAILER_LANG['signing'] = 'স্বাক্ষর করতে ব্যর্থ হয়েছে: ';
  29 +$PHPMAILER_LANG['smtp_code'] = 'SMTP কোড: ';
  30 +$PHPMAILER_LANG['smtp_code_ex'] = 'অতিরিক্ত SMTP তথ্য:';
  31 +$PHPMAILER_LANG['smtp_detail'] = 'বর্ণনা: ';
  32 +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP সংযোগ() ব্যর্থ হয়েছে৷';
  33 +$PHPMAILER_LANG['smtp_error'] = 'SMTP সার্ভার ত্রুটি: ';
  34 +$PHPMAILER_LANG['variable_set'] = 'পরিবর্তনশীল সেট করা যায়নি: ';
  35 +$PHPMAILER_LANG['extension_missing'] = 'অনুপস্থিত এক্সটেনশন: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Catalan PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Ivan <web AT microstudi DOT com>
  7 + */
  8 +
  9 +$PHPMAILER_LANG['authenticate'] = 'Error SMTP: No s’ha pogut autenticar.';
  10 +$PHPMAILER_LANG['connect_host'] = 'Error SMTP: No es pot connectar al servidor SMTP.';
  11 +$PHPMAILER_LANG['data_not_accepted'] = 'Error SMTP: Dades no acceptades.';
  12 +$PHPMAILER_LANG['empty_message'] = 'El cos del missatge està buit.';
  13 +$PHPMAILER_LANG['encoding'] = 'Codificació desconeguda: ';
  14 +$PHPMAILER_LANG['execute'] = 'No es pot executar: ';
  15 +$PHPMAILER_LANG['file_access'] = 'No es pot accedir a l’arxiu: ';
  16 +$PHPMAILER_LANG['file_open'] = 'Error d’Arxiu: No es pot obrir l’arxiu: ';
  17 +$PHPMAILER_LANG['from_failed'] = 'La(s) següent(s) adreces de remitent han fallat: ';
  18 +$PHPMAILER_LANG['instantiate'] = 'No s’ha pogut crear una instància de la funció Mail.';
  19 +$PHPMAILER_LANG['invalid_address'] = 'Adreça d’email invalida: ';
  20 +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer no està suportat';
  21 +$PHPMAILER_LANG['provide_address'] = 'S’ha de proveir almenys una adreça d’email com a destinatari.';
  22 +$PHPMAILER_LANG['recipients_failed'] = 'Error SMTP: Els següents destinataris han fallat: ';
  23 +$PHPMAILER_LANG['signing'] = 'Error al signar: ';
  24 +$PHPMAILER_LANG['smtp_connect_failed'] = 'Ha fallat el SMTP Connect().';
  25 +$PHPMAILER_LANG['smtp_error'] = 'Error del servidor SMTP: ';
  26 +$PHPMAILER_LANG['variable_set'] = 'No s’ha pogut establir o restablir la variable: ';
  27 +//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Czech PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + */
  7 +
  8 +$PHPMAILER_LANG['authenticate'] = 'Chyba SMTP: Autentizace selhala.';
  9 +$PHPMAILER_LANG['connect_host'] = 'Chyba SMTP: Nelze navázat spojení se SMTP serverem.';
  10 +$PHPMAILER_LANG['data_not_accepted'] = 'Chyba SMTP: Data nebyla přijata.';
  11 +$PHPMAILER_LANG['empty_message'] = 'Prázdné tělo zprávy';
  12 +$PHPMAILER_LANG['encoding'] = 'Neznámé kódování: ';
  13 +$PHPMAILER_LANG['execute'] = 'Nelze provést: ';
  14 +$PHPMAILER_LANG['file_access'] = 'Nelze získat přístup k souboru: ';
  15 +$PHPMAILER_LANG['file_open'] = 'Chyba souboru: Nelze otevřít soubor pro čtení: ';
  16 +$PHPMAILER_LANG['from_failed'] = 'Následující adresa odesílatele je nesprávná: ';
  17 +$PHPMAILER_LANG['instantiate'] = 'Nelze vytvořit instanci emailové funkce.';
  18 +$PHPMAILER_LANG['invalid_address'] = 'Neplatná adresa: ';
  19 +$PHPMAILER_LANG['invalid_hostentry'] = 'Záznam hostitele je nesprávný: ';
  20 +$PHPMAILER_LANG['invalid_host'] = 'Hostitel je nesprávný: ';
  21 +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer není podporován.';
  22 +$PHPMAILER_LANG['provide_address'] = 'Musíte zadat alespoň jednu emailovou adresu příjemce.';
  23 +$PHPMAILER_LANG['recipients_failed'] = 'Chyba SMTP: Následující adresy příjemců nejsou správně: ';
  24 +$PHPMAILER_LANG['signing'] = 'Chyba přihlašování: ';
  25 +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() selhal.';
  26 +$PHPMAILER_LANG['smtp_error'] = 'Chyba SMTP serveru: ';
  27 +$PHPMAILER_LANG['variable_set'] = 'Nelze nastavit nebo změnit proměnnou: ';
  28 +$PHPMAILER_LANG['extension_missing'] = 'Chybí rozšíření: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Danish PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author John Sebastian <jms@iwb.dk>
  7 + * Rewrite and extension of the work by Mikael Stokkebro <info@stokkebro.dk>
  8 + *
  9 + */
  10 +
  11 +$PHPMAILER_LANG['authenticate'] = 'SMTP fejl: Login mislykkedes.';
  12 +$PHPMAILER_LANG['buggy_php'] = 'Din version af PHP er berørt af en fejl, som gør at dine beskeder muligvis vises forkert. For at rette dette kan du skifte til SMTP, slå mail.add_x_header headeren i din php.ini fil fra, skifte til MacOS eller Linux eller opgradere din version af PHP til 7.0.17+ eller 7.1.3+.';
  13 +$PHPMAILER_LANG['connect_host'] = 'SMTP fejl: Forbindelse til SMTP serveren kunne ikke oprettes.';
  14 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP fejl: Data blev ikke accepteret.';
  15 +$PHPMAILER_LANG['empty_message'] = 'Meddelelsen er uden indhold';
  16 +$PHPMAILER_LANG['encoding'] = 'Ukendt encode-format: ';
  17 +$PHPMAILER_LANG['execute'] = 'Kunne ikke afvikle: ';
  18 +$PHPMAILER_LANG['extension_missing'] = 'Udvidelse mangler: ';
  19 +$PHPMAILER_LANG['file_access'] = 'Kunne ikke tilgå filen: ';
  20 +$PHPMAILER_LANG['file_open'] = 'Fil fejl: Kunne ikke åbne filen: ';
  21 +$PHPMAILER_LANG['from_failed'] = 'Følgende afsenderadresse er forkert: ';
  22 +$PHPMAILER_LANG['instantiate'] = 'Email funktionen kunne ikke initialiseres.';
  23 +$PHPMAILER_LANG['invalid_address'] = 'Udgyldig adresse: ';
  24 +$PHPMAILER_LANG['invalid_header'] = 'Ugyldig header navn eller værdi';
  25 +$PHPMAILER_LANG['invalid_hostentry'] = 'Ugyldig hostentry: ';
  26 +$PHPMAILER_LANG['invalid_host'] = 'Ugyldig vært: ';
  27 +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer understøttes ikke.';
  28 +$PHPMAILER_LANG['provide_address'] = 'Indtast mindst en modtagers email adresse.';
  29 +$PHPMAILER_LANG['recipients_failed'] = 'SMTP fejl: Følgende modtagere fejlede: ';
  30 +$PHPMAILER_LANG['signing'] = 'Signeringsfejl: ';
  31 +$PHPMAILER_LANG['smtp_code'] = 'SMTP kode: ';
  32 +$PHPMAILER_LANG['smtp_code_ex'] = 'Yderligere SMTP info: ';
  33 +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() fejlede.';
  34 +$PHPMAILER_LANG['smtp_detail'] = 'Detalje: ';
  35 +$PHPMAILER_LANG['smtp_error'] = 'SMTP server fejl: ';
  36 +$PHPMAILER_LANG['variable_set'] = 'Kunne ikke definere eller nulstille variablen: ';
  1 +<?php
  2 +
  3 +/**
  4 + * German PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + */
  7 +
  8 +$PHPMAILER_LANG['authenticate'] = 'SMTP-Fehler: Authentifizierung fehlgeschlagen.';
  9 +$PHPMAILER_LANG['connect_host'] = 'SMTP-Fehler: Konnte keine Verbindung zum SMTP-Host herstellen.';
  10 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP-Fehler: Daten werden nicht akzeptiert.';
  11 +$PHPMAILER_LANG['empty_message'] = 'E-Mail-Inhalt ist leer.';
  12 +$PHPMAILER_LANG['encoding'] = 'Unbekannte Kodierung: ';
  13 +$PHPMAILER_LANG['execute'] = 'Konnte folgenden Befehl nicht ausführen: ';
  14 +$PHPMAILER_LANG['file_access'] = 'Zugriff auf folgende Datei fehlgeschlagen: ';
  15 +$PHPMAILER_LANG['file_open'] = 'Dateifehler: Konnte folgende Datei nicht öffnen: ';
  16 +$PHPMAILER_LANG['from_failed'] = 'Die folgende Absenderadresse ist nicht korrekt: ';
  17 +$PHPMAILER_LANG['instantiate'] = 'Mail-Funktion konnte nicht initialisiert werden.';
  18 +$PHPMAILER_LANG['invalid_address'] = 'Die Adresse ist ungültig: ';
  19 +$PHPMAILER_LANG['invalid_hostentry'] = 'Ungültiger Hosteintrag: ';
  20 +$PHPMAILER_LANG['invalid_host'] = 'Ungültiger Host: ';
  21 +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer wird nicht unterstützt.';
  22 +$PHPMAILER_LANG['provide_address'] = 'Bitte geben Sie mindestens eine Empfängeradresse an.';
  23 +$PHPMAILER_LANG['recipients_failed'] = 'SMTP-Fehler: Die folgenden Empfänger sind nicht korrekt: ';
  24 +$PHPMAILER_LANG['signing'] = 'Fehler beim Signieren: ';
  25 +$PHPMAILER_LANG['smtp_connect_failed'] = 'Verbindung zum SMTP-Server fehlgeschlagen.';
  26 +$PHPMAILER_LANG['smtp_error'] = 'Fehler vom SMTP-Server: ';
  27 +$PHPMAILER_LANG['variable_set'] = 'Kann Variable nicht setzen oder zurücksetzen: ';
  28 +$PHPMAILER_LANG['extension_missing'] = 'Fehlende Erweiterung: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Greek PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + */
  7 +
  8 +$PHPMAILER_LANG['authenticate'] = 'Σφάλμα SMTP: Αδυναμία πιστοποίησης.';
  9 +$PHPMAILER_LANG['buggy_php'] = 'Η έκδοση PHP που χρησιμοποιείτε παρουσιάζει σφάλμα που μπορεί να έχει ως αποτέλεσμα κατεστραμένα μηνύματα. Για να το διορθώσετε, αλλάξτε τον τρόπο αποστολής σε SMTP, απενεργοποιήστε την επιλογή mail.add_x_header στο αρχείο php.ini, αλλάξτε λειτουργικό σε MacOS ή Linux ή αναβαθμίστε την PHP σε έκδοση 7.0.17+ ή 7.1.3+.';
  10 +$PHPMAILER_LANG['connect_host'] = 'Σφάλμα SMTP: Αδυναμία σύνδεσης με τον φιλοξενητή SMTP.';
  11 +$PHPMAILER_LANG['data_not_accepted'] = 'Σφάλμα SMTP: Μη αποδεκτά δεδομένα.';
  12 +$PHPMAILER_LANG['empty_message'] = 'Η ηλεκτρονική επιστολή δεν έχει περιεχόμενο.';
  13 +$PHPMAILER_LANG['encoding'] = 'Άγνωστη μορφή κωδικοποίησης: ';
  14 +$PHPMAILER_LANG['execute'] = 'Αδυναμία εκτέλεσης: ';
  15 +$PHPMAILER_LANG['extension_missing'] = 'Απουσία επέκτασης: ';
  16 +$PHPMAILER_LANG['file_access'] = 'Αδυναμία πρόσβασης στο αρχείο: ';
  17 +$PHPMAILER_LANG['file_open'] = 'Σφάλμα Αρχείου: Αδυναμία ανοίγματος αρχείου: ';
  18 +$PHPMAILER_LANG['from_failed'] = 'Η ακόλουθη διεύθυνση αποστολέα δεν είναι σωστή: ';
  19 +$PHPMAILER_LANG['instantiate'] = 'Αδυναμία εκκίνησης συνάρτησης Mail.';
  20 +$PHPMAILER_LANG['invalid_address'] = 'Μη έγκυρη διεύθυνση: ';
  21 +$PHPMAILER_LANG['invalid_header'] = 'Μη έγκυρο όνομα κεφαλίδας ή τιμή';
  22 +$PHPMAILER_LANG['invalid_hostentry'] = 'Μη έγκυρη εισαγωγή φιλοξενητή: ';
  23 +$PHPMAILER_LANG['invalid_host'] = 'Μη έγκυρος φιλοξενητής: ';
  24 +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer δεν υποστηρίζεται.';
  25 +$PHPMAILER_LANG['provide_address'] = 'Δώστε τουλάχιστον μια ηλεκτρονική διεύθυνση παραλήπτη.';
  26 +$PHPMAILER_LANG['recipients_failed'] = 'Σφάλμα SMTP: Οι παρακάτω διευθύνσεις παραλήπτη δεν είναι έγκυρες: ';
  27 +$PHPMAILER_LANG['signing'] = 'Σφάλμα υπογραφής: ';
  28 +$PHPMAILER_LANG['smtp_code'] = 'Κώδικάς SMTP: ';
  29 +$PHPMAILER_LANG['smtp_code_ex'] = 'Πρόσθετες πληροφορίες SMTP: ';
  30 +$PHPMAILER_LANG['smtp_connect_failed'] = 'Αποτυχία σύνδεσης SMTP.';
  31 +$PHPMAILER_LANG['smtp_detail'] = 'Λεπτομέρεια: ';
  32 +$PHPMAILER_LANG['smtp_error'] = 'Σφάλμα με τον διακομιστή SMTP: ';
  33 +$PHPMAILER_LANG['variable_set'] = 'Αδυναμία ορισμού ή επαναφοράς μεταβλητής: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Esperanto PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + */
  7 +
  8 +$PHPMAILER_LANG['authenticate'] = 'Eraro de servilo SMTP : aŭtentigo malsukcesis.';
  9 +$PHPMAILER_LANG['connect_host'] = 'Eraro de servilo SMTP : konektado al servilo malsukcesis.';
  10 +$PHPMAILER_LANG['data_not_accepted'] = 'Eraro de servilo SMTP : neĝustaj datumoj.';
  11 +$PHPMAILER_LANG['empty_message'] = 'Teksto de mesaĝo mankas.';
  12 +$PHPMAILER_LANG['encoding'] = 'Nekonata kodoprezento: ';
  13 +$PHPMAILER_LANG['execute'] = 'Lanĉi rulumadon ne eblis: ';
  14 +$PHPMAILER_LANG['file_access'] = 'Aliro al dosiero ne sukcesis: ';
  15 +$PHPMAILER_LANG['file_open'] = 'Eraro de dosiero: malfermo neeblas: ';
  16 +$PHPMAILER_LANG['from_failed'] = 'Jena adreso de sendinto malsukcesis: ';
  17 +$PHPMAILER_LANG['instantiate'] = 'Genero de retmesaĝa funkcio neeblis.';
  18 +$PHPMAILER_LANG['invalid_address'] = 'Retadreso ne validas: ';
  19 +$PHPMAILER_LANG['mailer_not_supported'] = ' mesaĝilo ne subtenata.';
  20 +$PHPMAILER_LANG['provide_address'] = 'Vi devas tajpi almenaŭ unu recevontan retadreson.';
  21 +$PHPMAILER_LANG['recipients_failed'] = 'Eraro de servilo SMTP : la jenaj poŝtrecivuloj kaŭzis eraron: ';
  22 +$PHPMAILER_LANG['signing'] = 'Eraro de subskribo: ';
  23 +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP konektado malsukcesis.';
  24 +$PHPMAILER_LANG['smtp_error'] = 'Eraro de servilo SMTP : ';
  25 +$PHPMAILER_LANG['variable_set'] = 'Variablo ne pravalorizeblas aŭ ne repravalorizeblas: ';
  26 +$PHPMAILER_LANG['extension_missing'] = 'Mankas etendo: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Spanish PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Matt Sturdy <matt.sturdy@gmail.com>
  7 + * @author Crystopher Glodzienski Cardoso <crystopher.glodzienski@gmail.com>
  8 + */
  9 +
  10 +$PHPMAILER_LANG['authenticate'] = 'Error SMTP: Imposible autentificar.';
  11 +$PHPMAILER_LANG['connect_host'] = 'Error SMTP: Imposible conectar al servidor SMTP.';
  12 +$PHPMAILER_LANG['data_not_accepted'] = 'Error SMTP: Datos no aceptados.';
  13 +$PHPMAILER_LANG['empty_message'] = 'El cuerpo del mensaje está vacío.';
  14 +$PHPMAILER_LANG['encoding'] = 'Codificación desconocida: ';
  15 +$PHPMAILER_LANG['execute'] = 'Imposible ejecutar: ';
  16 +$PHPMAILER_LANG['file_access'] = 'Imposible acceder al archivo: ';
  17 +$PHPMAILER_LANG['file_open'] = 'Error de Archivo: Imposible abrir el archivo: ';
  18 +$PHPMAILER_LANG['from_failed'] = 'La(s) siguiente(s) direcciones de remitente fallaron: ';
  19 +$PHPMAILER_LANG['instantiate'] = 'Imposible crear una instancia de la función Mail.';
  20 +$PHPMAILER_LANG['invalid_address'] = 'Imposible enviar: dirección de email inválido: ';
  21 +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer no está soportado.';
  22 +$PHPMAILER_LANG['provide_address'] = 'Debe proporcionar al menos una dirección de email de destino.';
  23 +$PHPMAILER_LANG['recipients_failed'] = 'Error SMTP: Los siguientes destinos fallaron: ';
  24 +$PHPMAILER_LANG['signing'] = 'Error al firmar: ';
  25 +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() falló.';
  26 +$PHPMAILER_LANG['smtp_error'] = 'Error del servidor SMTP: ';
  27 +$PHPMAILER_LANG['variable_set'] = 'No se pudo configurar la variable: ';
  28 +$PHPMAILER_LANG['extension_missing'] = 'Extensión faltante: ';
  29 +$PHPMAILER_LANG['smtp_code'] = 'Código del servidor SMTP: ';
  30 +$PHPMAILER_LANG['smtp_code_ex'] = 'Información adicional del servidor SMTP: ';
  31 +$PHPMAILER_LANG['invalid_header'] = 'Nombre o valor de encabezado no válido';
  1 +<?php
  2 +
  3 +/**
  4 + * Estonian PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Indrek Päri
  7 + * @author Elan Ruusamäe <glen@delfi.ee>
  8 + */
  9 +
  10 +$PHPMAILER_LANG['authenticate'] = 'SMTP Viga: Autoriseerimise viga.';
  11 +$PHPMAILER_LANG['connect_host'] = 'SMTP Viga: Ei õnnestunud luua ühendust SMTP serveriga.';
  12 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Viga: Vigased andmed.';
  13 +$PHPMAILER_LANG['empty_message'] = 'Tühi kirja sisu';
  14 +$PHPMAILER_LANG["encoding"] = 'Tundmatu kodeering: ';
  15 +$PHPMAILER_LANG['execute'] = 'Tegevus ebaõnnestus: ';
  16 +$PHPMAILER_LANG['file_access'] = 'Pole piisavalt õiguseid järgneva faili avamiseks: ';
  17 +$PHPMAILER_LANG['file_open'] = 'Faili Viga: Faili avamine ebaõnnestus: ';
  18 +$PHPMAILER_LANG['from_failed'] = 'Järgnev saatja e-posti aadress on vigane: ';
  19 +$PHPMAILER_LANG['instantiate'] = 'mail funktiooni käivitamine ebaõnnestus.';
  20 +$PHPMAILER_LANG['invalid_address'] = 'Saatmine peatatud, e-posti address vigane: ';
  21 +$PHPMAILER_LANG['provide_address'] = 'Te peate määrama vähemalt ühe saaja e-posti aadressi.';
  22 +$PHPMAILER_LANG['mailer_not_supported'] = ' maileri tugi puudub.';
  23 +$PHPMAILER_LANG['recipients_failed'] = 'SMTP Viga: Järgnevate saajate e-posti aadressid on vigased: ';
  24 +$PHPMAILER_LANG["signing"] = 'Viga allkirjastamisel: ';
  25 +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() ebaõnnestus.';
  26 +$PHPMAILER_LANG['smtp_error'] = 'SMTP serveri viga: ';
  27 +$PHPMAILER_LANG['variable_set'] = 'Ei õnnestunud määrata või lähtestada muutujat: ';
  28 +$PHPMAILER_LANG['extension_missing'] = 'Nõutud laiendus on puudu: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Persian/Farsi PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Ali Jazayeri <jaza.ali@gmail.com>
  7 + * @author Mohammad Hossein Mojtahedi <mhm5000@gmail.com>
  8 + */
  9 +
  10 +$PHPMAILER_LANG['authenticate'] = 'خطای SMTP: احراز هویت با شکست مواجه شد.';
  11 +$PHPMAILER_LANG['connect_host'] = 'خطای SMTP: اتصال به سرور SMTP برقرار نشد.';
  12 +$PHPMAILER_LANG['data_not_accepted'] = 'خطای SMTP: داده‌ها نا‌درست هستند.';
  13 +$PHPMAILER_LANG['empty_message'] = 'بخش متن پیام خالی است.';
  14 +$PHPMAILER_LANG['encoding'] = 'کد‌گذاری نا‌شناخته: ';
  15 +$PHPMAILER_LANG['execute'] = 'امکان اجرا وجود ندارد: ';
  16 +$PHPMAILER_LANG['file_access'] = 'امکان دسترسی به فایل وجود ندارد: ';
  17 +$PHPMAILER_LANG['file_open'] = 'خطای File: امکان بازکردن فایل وجود ندارد: ';
  18 +$PHPMAILER_LANG['from_failed'] = 'آدرس فرستنده اشتباه است: ';
  19 +$PHPMAILER_LANG['instantiate'] = 'امکان معرفی تابع ایمیل وجود ندارد.';
  20 +$PHPMAILER_LANG['invalid_address'] = 'آدرس ایمیل معتبر نیست: ';
  21 +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer پشتیبانی نمی‌شود.';
  22 +$PHPMAILER_LANG['provide_address'] = 'باید حداقل یک آدرس گیرنده وارد کنید.';
  23 +$PHPMAILER_LANG['recipients_failed'] = 'خطای SMTP: ارسال به آدرس گیرنده با خطا مواجه شد: ';
  24 +$PHPMAILER_LANG['signing'] = 'خطا در امضا: ';
  25 +$PHPMAILER_LANG['smtp_connect_failed'] = 'خطا در اتصال به SMTP.';
  26 +$PHPMAILER_LANG['smtp_error'] = 'خطا در SMTP Server: ';
  27 +$PHPMAILER_LANG['variable_set'] = 'امکان ارسال یا ارسال مجدد متغیر‌ها وجود ندارد: ';
  28 +$PHPMAILER_LANG['extension_missing'] = 'افزونه موجود نیست: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Finnish PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Jyry Kuukanen
  7 + */
  8 +
  9 +$PHPMAILER_LANG['authenticate'] = 'SMTP-virhe: käyttäjätunnistus epäonnistui.';
  10 +$PHPMAILER_LANG['connect_host'] = 'SMTP-virhe: yhteys palvelimeen ei onnistu.';
  11 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP-virhe: data on virheellinen.';
  12 +//$PHPMAILER_LANG['empty_message'] = 'Message body empty';
  13 +$PHPMAILER_LANG['encoding'] = 'Tuntematon koodaustyyppi: ';
  14 +$PHPMAILER_LANG['execute'] = 'Suoritus epäonnistui: ';
  15 +$PHPMAILER_LANG['file_access'] = 'Seuraavaan tiedostoon ei ole oikeuksia: ';
  16 +$PHPMAILER_LANG['file_open'] = 'Tiedostovirhe: Ei voida avata tiedostoa: ';
  17 +$PHPMAILER_LANG['from_failed'] = 'Seuraava lähettäjän osoite on virheellinen: ';
  18 +$PHPMAILER_LANG['instantiate'] = 'mail-funktion luonti epäonnistui.';
  19 +//$PHPMAILER_LANG['invalid_address'] = 'Invalid address: ';
  20 +$PHPMAILER_LANG['mailer_not_supported'] = 'postivälitintyyppiä ei tueta.';
  21 +$PHPMAILER_LANG['provide_address'] = 'Aseta vähintään yksi vastaanottajan sähk&ouml;postiosoite.';
  22 +$PHPMAILER_LANG['recipients_failed'] = 'SMTP-virhe: seuraava vastaanottaja osoite on virheellinen.';
  23 +//$PHPMAILER_LANG['signing'] = 'Signing Error: ';
  24 +//$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.';
  25 +//$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: ';
  26 +//$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: ';
  27 +//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Faroese PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Dávur Sørensen <http://www.profo-webdesign.dk>
  7 + */
  8 +
  9 +$PHPMAILER_LANG['authenticate'] = 'SMTP feilur: Kundi ikki góðkenna.';
  10 +$PHPMAILER_LANG['connect_host'] = 'SMTP feilur: Kundi ikki knýta samband við SMTP vert.';
  11 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP feilur: Data ikki góðkent.';
  12 +//$PHPMAILER_LANG['empty_message'] = 'Message body empty';
  13 +$PHPMAILER_LANG['encoding'] = 'Ókend encoding: ';
  14 +$PHPMAILER_LANG['execute'] = 'Kundi ikki útføra: ';
  15 +$PHPMAILER_LANG['file_access'] = 'Kundi ikki tilganga fílu: ';
  16 +$PHPMAILER_LANG['file_open'] = 'Fílu feilur: Kundi ikki opna fílu: ';
  17 +$PHPMAILER_LANG['from_failed'] = 'fylgjandi Frá/From adressa miseydnaðist: ';
  18 +$PHPMAILER_LANG['instantiate'] = 'Kuni ikki instantiera mail funktión.';
  19 +//$PHPMAILER_LANG['invalid_address'] = 'Invalid address: ';
  20 +$PHPMAILER_LANG['mailer_not_supported'] = ' er ikki supporterað.';
  21 +$PHPMAILER_LANG['provide_address'] = 'Tú skal uppgeva minst móttakara-emailadressu(r).';
  22 +$PHPMAILER_LANG['recipients_failed'] = 'SMTP Feilur: Fylgjandi móttakarar miseydnaðust: ';
  23 +//$PHPMAILER_LANG['signing'] = 'Signing Error: ';
  24 +//$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.';
  25 +//$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: ';
  26 +//$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: ';
  27 +//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: ';
  1 +<?php
  2 +
  3 +/**
  4 + * French PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * Some French punctuation requires a thin non-breaking space (U+202F) character before it,
  7 + * for example before a colon or exclamation mark.
  8 + * There is one of these characters between these quotes: " "
  9 + * @see http://unicode.org/udhr/n/notes_fra.html
  10 + */
  11 +
  12 +$PHPMAILER_LANG['authenticate'] = 'Erreur SMTP : échec de l’authentification.';
  13 +$PHPMAILER_LANG['buggy_php'] = 'Votre version de PHP est affectée par un bug qui peut entraîner des messages corrompus. Pour résoudre ce problème, passez à l’envoi par SMTP, désactivez l’option mail.add_x_header dans le fichier php.ini, passez à MacOS ou Linux, ou passez PHP à la version 7.0.17+ ou 7.1.3+.';
  14 +$PHPMAILER_LANG['connect_host'] = 'Erreur SMTP : impossible de se connecter au serveur SMTP.';
  15 +$PHPMAILER_LANG['data_not_accepted'] = 'Erreur SMTP : données incorrectes.';
  16 +$PHPMAILER_LANG['empty_message'] = 'Corps du message vide.';
  17 +$PHPMAILER_LANG['encoding'] = 'Encodage inconnu : ';
  18 +$PHPMAILER_LANG['execute'] = 'Impossible de lancer l’exécution : ';
  19 +$PHPMAILER_LANG['extension_missing'] = 'Extension manquante : ';
  20 +$PHPMAILER_LANG['file_access'] = 'Impossible d’accéder au fichier : ';
  21 +$PHPMAILER_LANG['file_open'] = 'Ouverture du fichier impossible : ';
  22 +$PHPMAILER_LANG['from_failed'] = 'L’adresse d’expéditeur suivante a échoué : ';
  23 +$PHPMAILER_LANG['instantiate'] = 'Impossible d’instancier la fonction mail.';
  24 +$PHPMAILER_LANG['invalid_address'] = 'Adresse courriel non valide : ';
  25 +$PHPMAILER_LANG['invalid_header'] = 'Nom ou valeur de l’en-tête non valide';
  26 +$PHPMAILER_LANG['invalid_hostentry'] = 'Entrée d’hôte non valide : ';
  27 +$PHPMAILER_LANG['invalid_host'] = 'Hôte non valide : ';
  28 +$PHPMAILER_LANG['mailer_not_supported'] = ' client de messagerie non supporté.';
  29 +$PHPMAILER_LANG['provide_address'] = 'Vous devez fournir au moins une adresse de destinataire.';
  30 +$PHPMAILER_LANG['recipients_failed'] = 'Erreur SMTP : les destinataires suivants ont échoué : ';
  31 +$PHPMAILER_LANG['signing'] = 'Erreur de signature : ';
  32 +$PHPMAILER_LANG['smtp_code'] = 'Code SMTP : ';
  33 +$PHPMAILER_LANG['smtp_code_ex'] = 'Informations supplémentaires SMTP : ';
  34 +$PHPMAILER_LANG['smtp_connect_failed'] = 'La fonction SMTP connect() a échouée.';
  35 +$PHPMAILER_LANG['smtp_detail'] = 'Détails : ';
  36 +$PHPMAILER_LANG['smtp_error'] = 'Erreur du serveur SMTP : ';
  37 +$PHPMAILER_LANG['variable_set'] = 'Impossible d’initialiser ou de réinitialiser une variable : ';
  1 +<?php
  2 +
  3 +/**
  4 + * Galician PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author by Donato Rouco <donatorouco@gmail.com>
  7 + */
  8 +
  9 +$PHPMAILER_LANG['authenticate'] = 'Erro SMTP: Non puido ser autentificado.';
  10 +$PHPMAILER_LANG['connect_host'] = 'Erro SMTP: Non puido conectar co servidor SMTP.';
  11 +$PHPMAILER_LANG['data_not_accepted'] = 'Erro SMTP: Datos non aceptados.';
  12 +$PHPMAILER_LANG['empty_message'] = 'Corpo da mensaxe vacía';
  13 +$PHPMAILER_LANG['encoding'] = 'Codificación descoñecida: ';
  14 +$PHPMAILER_LANG['execute'] = 'Non puido ser executado: ';
  15 +$PHPMAILER_LANG['file_access'] = 'Nob puido acceder ó arquivo: ';
  16 +$PHPMAILER_LANG['file_open'] = 'Erro de Arquivo: No puido abrir o arquivo: ';
  17 +$PHPMAILER_LANG['from_failed'] = 'A(s) seguinte(s) dirección(s) de remitente(s) deron erro: ';
  18 +$PHPMAILER_LANG['instantiate'] = 'Non puido crear unha instancia da función Mail.';
  19 +$PHPMAILER_LANG['invalid_address'] = 'Non puido envia-lo correo: dirección de email inválida: ';
  20 +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer non está soportado.';
  21 +$PHPMAILER_LANG['provide_address'] = 'Debe engadir polo menos unha dirección de email coma destino.';
  22 +$PHPMAILER_LANG['recipients_failed'] = 'Erro SMTP: Os seguintes destinos fallaron: ';
  23 +$PHPMAILER_LANG['signing'] = 'Erro ó firmar: ';
  24 +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() fallou.';
  25 +$PHPMAILER_LANG['smtp_error'] = 'Erro do servidor SMTP: ';
  26 +$PHPMAILER_LANG['variable_set'] = 'Non puidemos axustar ou reaxustar a variábel: ';
  27 +//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Hebrew PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Ronny Sherer <ronny@hoojima.com>
  7 + */
  8 +
  9 +$PHPMAILER_LANG['authenticate'] = 'שגיאת SMTP: פעולת האימות נכשלה.';
  10 +$PHPMAILER_LANG['connect_host'] = 'שגיאת SMTP: לא הצלחתי להתחבר לשרת SMTP.';
  11 +$PHPMAILER_LANG['data_not_accepted'] = 'שגיאת SMTP: מידע לא התקבל.';
  12 +$PHPMAILER_LANG['empty_message'] = 'גוף ההודעה ריק';
  13 +$PHPMAILER_LANG['invalid_address'] = 'כתובת שגויה: ';
  14 +$PHPMAILER_LANG['encoding'] = 'קידוד לא מוכר: ';
  15 +$PHPMAILER_LANG['execute'] = 'לא הצלחתי להפעיל את: ';
  16 +$PHPMAILER_LANG['file_access'] = 'לא ניתן לגשת לקובץ: ';
  17 +$PHPMAILER_LANG['file_open'] = 'שגיאת קובץ: לא ניתן לגשת לקובץ: ';
  18 +$PHPMAILER_LANG['from_failed'] = 'כתובות הנמענים הבאות נכשלו: ';
  19 +$PHPMAILER_LANG['instantiate'] = 'לא הצלחתי להפעיל את פונקציית המייל.';
  20 +$PHPMAILER_LANG['mailer_not_supported'] = ' אינה נתמכת.';
  21 +$PHPMAILER_LANG['provide_address'] = 'חובה לספק לפחות כתובת אחת של מקבל המייל.';
  22 +$PHPMAILER_LANG['recipients_failed'] = 'שגיאת SMTP: הנמענים הבאים נכשלו: ';
  23 +$PHPMAILER_LANG['signing'] = 'שגיאת חתימה: ';
  24 +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.';
  25 +$PHPMAILER_LANG['smtp_error'] = 'שגיאת שרת SMTP: ';
  26 +$PHPMAILER_LANG['variable_set'] = 'לא ניתן לקבוע או לשנות את המשתנה: ';
  27 +//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Hindi PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Yash Karanke <mr.karanke@gmail.com>
  7 + * Rewrite and extension of the work by Jayanti Suthar <suthar.jayanti93@gmail.com>
  8 + */
  9 +
  10 +$PHPMAILER_LANG['authenticate'] = 'SMTP त्रुटि: प्रामाणिकता की जांच नहीं हो सका। ';
  11 +$PHPMAILER_LANG['buggy_php'] = 'PHP का आपका संस्करण एक बग से प्रभावित है जिसके परिणामस्वरूप संदेश दूषित हो सकते हैं. इसे ठीक करने हेतु, भेजने के लिए SMTP का उपयोग करे, अपने php.ini में mail.add_x_header विकल्प को अक्षम करें, MacOS या Linux पर जाए, या अपने PHP संस्करण को 7.0.17+ या 7.1.3+ बदले.';
  12 +$PHPMAILER_LANG['connect_host'] = 'SMTP त्रुटि: SMTP सर्वर से कनेक्ट नहीं हो सका। ';
  13 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP त्रुटि: डेटा स्वीकार नहीं किया जाता है। ';
  14 +$PHPMAILER_LANG['empty_message'] = 'संदेश खाली है। ';
  15 +$PHPMAILER_LANG['encoding'] = 'अज्ञात एन्कोडिंग प्रकार। ';
  16 +$PHPMAILER_LANG['execute'] = 'आदेश को निष्पादित करने में विफल। ';
  17 +$PHPMAILER_LANG['extension_missing'] = 'एक्सटेन्षन गायब है: ';
  18 +$PHPMAILER_LANG['file_access'] = 'फ़ाइल उपलब्ध नहीं है। ';
  19 +$PHPMAILER_LANG['file_open'] = 'फ़ाइल त्रुटि: फाइल को खोला नहीं जा सका। ';
  20 +$PHPMAILER_LANG['from_failed'] = 'प्रेषक का पता गलत है। ';
  21 +$PHPMAILER_LANG['instantiate'] = 'मेल फ़ंक्शन कॉल नहीं कर सकता है।';
  22 +$PHPMAILER_LANG['invalid_address'] = 'पता गलत है। ';
  23 +$PHPMAILER_LANG['invalid_header'] = 'अमान्य हेडर नाम या मान';
  24 +$PHPMAILER_LANG['invalid_hostentry'] = 'अमान्य hostentry: ';
  25 +$PHPMAILER_LANG['invalid_host'] = 'अमान्य होस्ट: ';
  26 +$PHPMAILER_LANG['mailer_not_supported'] = 'मेल सर्वर के साथ काम नहीं करता है। ';
  27 +$PHPMAILER_LANG['provide_address'] = 'आपको कम से कम एक प्राप्तकर्ता का ई-मेल पता प्रदान करना होगा।';
  28 +$PHPMAILER_LANG['recipients_failed'] = 'SMTP त्रुटि: निम्न प्राप्तकर्ताओं को पते भेजने में विफल। ';
  29 +$PHPMAILER_LANG['signing'] = 'साइनअप त्रुटि: ';
  30 +$PHPMAILER_LANG['smtp_code'] = 'SMTP कोड: ';
  31 +$PHPMAILER_LANG['smtp_code_ex'] = 'अतिरिक्त SMTP जानकारी: ';
  32 +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP का connect () फ़ंक्शन विफल हुआ। ';
  33 +$PHPMAILER_LANG['smtp_detail'] = 'विवरण: ';
  34 +$PHPMAILER_LANG['smtp_error'] = 'SMTP सर्वर त्रुटि। ';
  35 +$PHPMAILER_LANG['variable_set'] = 'चर को बना या संशोधित नहीं किया जा सकता। ';
  1 +<?php
  2 +
  3 +/**
  4 + * Croatian PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Hrvoj3e <hrvoj3e@gmail.com>
  7 + */
  8 +
  9 +$PHPMAILER_LANG['authenticate'] = 'SMTP Greška: Neuspjela autentikacija.';
  10 +$PHPMAILER_LANG['connect_host'] = 'SMTP Greška: Ne mogu se spojiti na SMTP poslužitelj.';
  11 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Greška: Podatci nisu prihvaćeni.';
  12 +$PHPMAILER_LANG['empty_message'] = 'Sadržaj poruke je prazan.';
  13 +$PHPMAILER_LANG['encoding'] = 'Nepoznati encoding: ';
  14 +$PHPMAILER_LANG['execute'] = 'Nije moguće izvršiti naredbu: ';
  15 +$PHPMAILER_LANG['file_access'] = 'Nije moguće pristupiti datoteci: ';
  16 +$PHPMAILER_LANG['file_open'] = 'Nije moguće otvoriti datoteku: ';
  17 +$PHPMAILER_LANG['from_failed'] = 'SMTP Greška: Slanje s navedenih e-mail adresa nije uspjelo: ';
  18 +$PHPMAILER_LANG['recipients_failed'] = 'SMTP Greška: Slanje na navedenih e-mail adresa nije uspjelo: ';
  19 +$PHPMAILER_LANG['instantiate'] = 'Ne mogu pokrenuti mail funkcionalnost.';
  20 +$PHPMAILER_LANG['invalid_address'] = 'E-mail nije poslan. Neispravna e-mail adresa: ';
  21 +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer nije podržan.';
  22 +$PHPMAILER_LANG['provide_address'] = 'Definirajte barem jednu adresu primatelja.';
  23 +$PHPMAILER_LANG['signing'] = 'Greška prilikom prijave: ';
  24 +$PHPMAILER_LANG['smtp_connect_failed'] = 'Spajanje na SMTP poslužitelj nije uspjelo.';
  25 +$PHPMAILER_LANG['smtp_error'] = 'Greška SMTP poslužitelja: ';
  26 +$PHPMAILER_LANG['variable_set'] = 'Ne mogu postaviti varijablu niti ju vratiti nazad: ';
  27 +$PHPMAILER_LANG['extension_missing'] = 'Nedostaje proširenje: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Hungarian PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author @dominicus-75
  7 + */
  8 +
  9 +$PHPMAILER_LANG['authenticate'] = 'SMTP hiba: az azonosítás sikertelen.';
  10 +$PHPMAILER_LANG['connect_host'] = 'SMTP hiba: nem lehet kapcsolódni az SMTP-szerverhez.';
  11 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP hiba: adatok visszautasítva.';
  12 +$PHPMAILER_LANG['empty_message'] = 'Üres az üzenettörzs.';
  13 +$PHPMAILER_LANG['encoding'] = 'Ismeretlen kódolás: ';
  14 +$PHPMAILER_LANG['execute'] = 'Nem lehet végrehajtani: ';
  15 +$PHPMAILER_LANG['file_access'] = 'A következő fájl nem elérhető: ';
  16 +$PHPMAILER_LANG['file_open'] = 'Fájl hiba: a következő fájlt nem lehet megnyitni: ';
  17 +$PHPMAILER_LANG['from_failed'] = 'A feladóként megadott következő cím hibás: ';
  18 +$PHPMAILER_LANG['instantiate'] = 'A PHP mail() függvényt nem sikerült végrehajtani.';
  19 +$PHPMAILER_LANG['invalid_address'] = 'Érvénytelen cím: ';
  20 +$PHPMAILER_LANG['mailer_not_supported'] = ' a mailer-osztály nem támogatott.';
  21 +$PHPMAILER_LANG['provide_address'] = 'Legalább egy címzettet fel kell tüntetni.';
  22 +$PHPMAILER_LANG['recipients_failed'] = 'SMTP hiba: a címzettként megadott következő címek hibásak: ';
  23 +$PHPMAILER_LANG['signing'] = 'Hibás aláírás: ';
  24 +$PHPMAILER_LANG['smtp_connect_failed'] = 'Hiba az SMTP-kapcsolatban.';
  25 +$PHPMAILER_LANG['smtp_error'] = 'SMTP-szerver hiba: ';
  26 +$PHPMAILER_LANG['variable_set'] = 'A következő változók beállítása nem sikerült: ';
  27 +$PHPMAILER_LANG['extension_missing'] = 'Bővítmény hiányzik: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Armenian PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Hrayr Grigoryan <hrayr@bits.am>
  7 + */
  8 +
  9 +$PHPMAILER_LANG['authenticate'] = 'SMTP -ի սխալ: չհաջողվեց ստուգել իսկությունը.';
  10 +$PHPMAILER_LANG['connect_host'] = 'SMTP -ի սխալ: չհաջողվեց կապ հաստատել SMTP սերվերի հետ.';
  11 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP -ի սխալ: տվյալները ընդունված չեն.';
  12 +$PHPMAILER_LANG['empty_message'] = 'Հաղորդագրությունը դատարկ է';
  13 +$PHPMAILER_LANG['encoding'] = 'Կոդավորման անհայտ տեսակ: ';
  14 +$PHPMAILER_LANG['execute'] = 'Չհաջողվեց իրականացնել հրամանը: ';
  15 +$PHPMAILER_LANG['file_access'] = 'Ֆայլը հասանելի չէ: ';
  16 +$PHPMAILER_LANG['file_open'] = 'Ֆայլի սխալ: ֆայլը չհաջողվեց բացել: ';
  17 +$PHPMAILER_LANG['from_failed'] = 'Ուղարկողի հետևյալ հասցեն սխալ է: ';
  18 +$PHPMAILER_LANG['instantiate'] = 'Հնարավոր չէ կանչել mail ֆունկցիան.';
  19 +$PHPMAILER_LANG['invalid_address'] = 'Հասցեն սխալ է: ';
  20 +$PHPMAILER_LANG['mailer_not_supported'] = ' փոստային սերվերի հետ չի աշխատում.';
  21 +$PHPMAILER_LANG['provide_address'] = 'Անհրաժեշտ է տրամադրել գոնե մեկ ստացողի e-mail հասցե.';
  22 +$PHPMAILER_LANG['recipients_failed'] = 'SMTP -ի սխալ: չի հաջողվել ուղարկել հետևյալ ստացողների հասցեներին: ';
  23 +$PHPMAILER_LANG['signing'] = 'Ստորագրման սխալ: ';
  24 +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP -ի connect() ֆունկցիան չի հաջողվել';
  25 +$PHPMAILER_LANG['smtp_error'] = 'SMTP սերվերի սխալ: ';
  26 +$PHPMAILER_LANG['variable_set'] = 'Չի հաջողվում ստեղծել կամ վերափոխել փոփոխականը: ';
  27 +$PHPMAILER_LANG['extension_missing'] = 'Հավելվածը բացակայում է: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Indonesian PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Cecep Prawiro <cecep.prawiro@gmail.com>
  7 + * @author @januridp
  8 + * @author Ian Mustafa <mail@ianmustafa.com>
  9 + */
  10 +
  11 +$PHPMAILER_LANG['authenticate'] = 'Kesalahan SMTP: Tidak dapat mengotentikasi.';
  12 +$PHPMAILER_LANG['connect_host'] = 'Kesalahan SMTP: Tidak dapat terhubung ke host SMTP.';
  13 +$PHPMAILER_LANG['data_not_accepted'] = 'Kesalahan SMTP: Data tidak diterima.';
  14 +$PHPMAILER_LANG['empty_message'] = 'Isi pesan kosong';
  15 +$PHPMAILER_LANG['encoding'] = 'Pengkodean karakter tidak dikenali: ';
  16 +$PHPMAILER_LANG['execute'] = 'Tidak dapat menjalankan proses: ';
  17 +$PHPMAILER_LANG['file_access'] = 'Tidak dapat mengakses berkas: ';
  18 +$PHPMAILER_LANG['file_open'] = 'Kesalahan Berkas: Berkas tidak dapat dibuka: ';
  19 +$PHPMAILER_LANG['from_failed'] = 'Alamat pengirim berikut mengakibatkan kesalahan: ';
  20 +$PHPMAILER_LANG['instantiate'] = 'Tidak dapat menginisialisasi fungsi surel.';
  21 +$PHPMAILER_LANG['invalid_address'] = 'Gagal terkirim, alamat surel tidak sesuai: ';
  22 +$PHPMAILER_LANG['invalid_hostentry'] = 'Gagal terkirim, entri host tidak sesuai: ';
  23 +$PHPMAILER_LANG['invalid_host'] = 'Gagal terkirim, host tidak sesuai: ';
  24 +$PHPMAILER_LANG['provide_address'] = 'Harus tersedia minimal satu alamat tujuan';
  25 +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer tidak didukung';
  26 +$PHPMAILER_LANG['recipients_failed'] = 'Kesalahan SMTP: Alamat tujuan berikut menyebabkan kesalahan: ';
  27 +$PHPMAILER_LANG['signing'] = 'Kesalahan dalam penandatangan SSL: ';
  28 +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() gagal.';
  29 +$PHPMAILER_LANG['smtp_error'] = 'Kesalahan pada pelayan SMTP: ';
  30 +$PHPMAILER_LANG['variable_set'] = 'Tidak dapat mengatur atau mengatur ulang variabel: ';
  31 +$PHPMAILER_LANG['extension_missing'] = 'Ekstensi PHP tidak tersedia: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Italian PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Ilias Bartolini <brain79@inwind.it>
  7 + * @author Stefano Sabatini <sabas88@gmail.com>
  8 + */
  9 +
  10 +$PHPMAILER_LANG['authenticate'] = 'SMTP Error: Impossibile autenticarsi.';
  11 +$PHPMAILER_LANG['connect_host'] = 'SMTP Error: Impossibile connettersi all\'host SMTP.';
  12 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Error: Dati non accettati dal server.';
  13 +$PHPMAILER_LANG['empty_message'] = 'Il corpo del messaggio è vuoto';
  14 +$PHPMAILER_LANG['encoding'] = 'Codifica dei caratteri sconosciuta: ';
  15 +$PHPMAILER_LANG['execute'] = 'Impossibile eseguire l\'operazione: ';
  16 +$PHPMAILER_LANG['file_access'] = 'Impossibile accedere al file: ';
  17 +$PHPMAILER_LANG['file_open'] = 'File Error: Impossibile aprire il file: ';
  18 +$PHPMAILER_LANG['from_failed'] = 'I seguenti indirizzi mittenti hanno generato errore: ';
  19 +$PHPMAILER_LANG['instantiate'] = 'Impossibile istanziare la funzione mail';
  20 +$PHPMAILER_LANG['invalid_address'] = 'Impossibile inviare, l\'indirizzo email non è valido: ';
  21 +$PHPMAILER_LANG['provide_address'] = 'Deve essere fornito almeno un indirizzo ricevente';
  22 +$PHPMAILER_LANG['mailer_not_supported'] = 'Mailer non supportato';
  23 +$PHPMAILER_LANG['recipients_failed'] = 'SMTP Error: I seguenti indirizzi destinatari hanno generato un errore: ';
  24 +$PHPMAILER_LANG['signing'] = 'Errore nella firma: ';
  25 +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() fallita.';
  26 +$PHPMAILER_LANG['smtp_error'] = 'Errore del server SMTP: ';
  27 +$PHPMAILER_LANG['variable_set'] = 'Impossibile impostare o resettare la variabile: ';
  28 +$PHPMAILER_LANG['extension_missing'] = 'Estensione mancante: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Japanese PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Mitsuhiro Yoshida <http://mitstek.com/>
  7 + * @author Yoshi Sakai <http://bluemooninc.jp/>
  8 + * @author Arisophy <https://github.com/arisophy/>
  9 + */
  10 +
  11 +$PHPMAILER_LANG['authenticate'] = 'SMTPエラー: 認証できませんでした。';
  12 +$PHPMAILER_LANG['connect_host'] = 'SMTPエラー: SMTPホストに接続できませんでした。';
  13 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTPエラー: データが受け付けられませんでした。';
  14 +$PHPMAILER_LANG['empty_message'] = 'メール本文が空です。';
  15 +$PHPMAILER_LANG['encoding'] = '不明なエンコーディング: ';
  16 +$PHPMAILER_LANG['execute'] = '実行できませんでした: ';
  17 +$PHPMAILER_LANG['file_access'] = 'ファイルにアクセスできません: ';
  18 +$PHPMAILER_LANG['file_open'] = 'ファイルエラー: ファイルを開けません: ';
  19 +$PHPMAILER_LANG['from_failed'] = 'Fromアドレスを登録する際にエラーが発生しました: ';
  20 +$PHPMAILER_LANG['instantiate'] = 'メール関数が正常に動作しませんでした。';
  21 +$PHPMAILER_LANG['invalid_address'] = '不正なメールアドレス: ';
  22 +$PHPMAILER_LANG['provide_address'] = '少なくとも1つメールアドレスを 指定する必要があります。';
  23 +$PHPMAILER_LANG['mailer_not_supported'] = ' メーラーがサポートされていません。';
  24 +$PHPMAILER_LANG['recipients_failed'] = 'SMTPエラー: 次の受信者アドレスに 間違いがあります: ';
  25 +$PHPMAILER_LANG['signing'] = '署名エラー: ';
  26 +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP接続に失敗しました。';
  27 +$PHPMAILER_LANG['smtp_error'] = 'SMTPサーバーエラー: ';
  28 +$PHPMAILER_LANG['variable_set'] = '変数が存在しません: ';
  29 +$PHPMAILER_LANG['extension_missing'] = '拡張機能が見つかりません: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Georgian PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>
  7 + */
  8 +
  9 +$PHPMAILER_LANG['authenticate'] = 'SMTP შეცდომა: ავტორიზაცია შეუძლებელია.';
  10 +$PHPMAILER_LANG['connect_host'] = 'SMTP შეცდომა: SMTP სერვერთან დაკავშირება შეუძლებელია.';
  11 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP შეცდომა: მონაცემები არ იქნა მიღებული.';
  12 +$PHPMAILER_LANG['encoding'] = 'კოდირების უცნობი ტიპი: ';
  13 +$PHPMAILER_LANG['execute'] = 'შეუძლებელია შემდეგი ბრძანების შესრულება: ';
  14 +$PHPMAILER_LANG['file_access'] = 'შეუძლებელია წვდომა ფაილთან: ';
  15 +$PHPMAILER_LANG['file_open'] = 'ფაილური სისტემის შეცდომა: არ იხსნება ფაილი: ';
  16 +$PHPMAILER_LANG['from_failed'] = 'გამგზავნის არასწორი მისამართი: ';
  17 +$PHPMAILER_LANG['instantiate'] = 'mail ფუნქციის გაშვება ვერ ხერხდება.';
  18 +$PHPMAILER_LANG['provide_address'] = 'გთხოვთ მიუთითოთ ერთი ადრესატის e-mail მისამართი მაინც.';
  19 +$PHPMAILER_LANG['mailer_not_supported'] = ' - საფოსტო სერვერის მხარდაჭერა არ არის.';
  20 +$PHPMAILER_LANG['recipients_failed'] = 'SMTP შეცდომა: შემდეგ მისამართებზე გაგზავნა ვერ მოხერხდა: ';
  21 +$PHPMAILER_LANG['empty_message'] = 'შეტყობინება ცარიელია';
  22 +$PHPMAILER_LANG['invalid_address'] = 'არ გაიგზავნა, e-mail მისამართის არასწორი ფორმატი: ';
  23 +$PHPMAILER_LANG['signing'] = 'ხელმოწერის შეცდომა: ';
  24 +$PHPMAILER_LANG['smtp_connect_failed'] = 'შეცდომა SMTP სერვერთან დაკავშირებისას';
  25 +$PHPMAILER_LANG['smtp_error'] = 'SMTP სერვერის შეცდომა: ';
  26 +$PHPMAILER_LANG['variable_set'] = 'შეუძლებელია შემდეგი ცვლადის შექმნა ან შეცვლა: ';
  27 +$PHPMAILER_LANG['extension_missing'] = 'ბიბლიოთეკა არ არსებობს: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Korean PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author ChalkPE <amato0617@gmail.com>
  7 + */
  8 +
  9 +$PHPMAILER_LANG['authenticate'] = 'SMTP 오류: 인증할 수 없습니다.';
  10 +$PHPMAILER_LANG['connect_host'] = 'SMTP 오류: SMTP 호스트에 접속할 수 없습니다.';
  11 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP 오류: 데이터가 받아들여지지 않았습니다.';
  12 +$PHPMAILER_LANG['empty_message'] = '메세지 내용이 없습니다';
  13 +$PHPMAILER_LANG['encoding'] = '알 수 없는 인코딩: ';
  14 +$PHPMAILER_LANG['execute'] = '실행 불가: ';
  15 +$PHPMAILER_LANG['file_access'] = '파일 접근 불가: ';
  16 +$PHPMAILER_LANG['file_open'] = '파일 오류: 파일을 열 수 없습니다: ';
  17 +$PHPMAILER_LANG['from_failed'] = '다음 From 주소에서 오류가 발생했습니다: ';
  18 +$PHPMAILER_LANG['instantiate'] = 'mail 함수를 인스턴스화할 수 없습니다';
  19 +$PHPMAILER_LANG['invalid_address'] = '잘못된 주소: ';
  20 +$PHPMAILER_LANG['mailer_not_supported'] = ' 메일러는 지원되지 않습니다.';
  21 +$PHPMAILER_LANG['provide_address'] = '적어도 한 개 이상의 수신자 메일 주소를 제공해야 합니다.';
  22 +$PHPMAILER_LANG['recipients_failed'] = 'SMTP 오류: 다음 수신자에서 오류가 발생했습니다: ';
  23 +$PHPMAILER_LANG['signing'] = '서명 오류: ';
  24 +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP 연결을 실패하였습니다.';
  25 +$PHPMAILER_LANG['smtp_error'] = 'SMTP 서버 오류: ';
  26 +$PHPMAILER_LANG['variable_set'] = '변수 설정 및 초기화 불가: ';
  27 +$PHPMAILER_LANG['extension_missing'] = '확장자 없음: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Lithuanian PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Dainius Kaupaitis <dk@sum.lt>
  7 + */
  8 +
  9 +$PHPMAILER_LANG['authenticate'] = 'SMTP klaida: autentifikacija nepavyko.';
  10 +$PHPMAILER_LANG['connect_host'] = 'SMTP klaida: nepavyksta prisijungti prie SMTP stoties.';
  11 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP klaida: duomenys nepriimti.';
  12 +$PHPMAILER_LANG['empty_message'] = 'Laiško turinys tuščias';
  13 +$PHPMAILER_LANG['encoding'] = 'Neatpažinta koduotė: ';
  14 +$PHPMAILER_LANG['execute'] = 'Nepavyko įvykdyti komandos: ';
  15 +$PHPMAILER_LANG['file_access'] = 'Byla nepasiekiama: ';
  16 +$PHPMAILER_LANG['file_open'] = 'Bylos klaida: Nepavyksta atidaryti: ';
  17 +$PHPMAILER_LANG['from_failed'] = 'Neteisingas siuntėjo adresas: ';
  18 +$PHPMAILER_LANG['instantiate'] = 'Nepavyko paleisti mail funkcijos.';
  19 +$PHPMAILER_LANG['invalid_address'] = 'Neteisingas adresas: ';
  20 +$PHPMAILER_LANG['mailer_not_supported'] = ' pašto stotis nepalaikoma.';
  21 +$PHPMAILER_LANG['provide_address'] = 'Nurodykite bent vieną gavėjo adresą.';
  22 +$PHPMAILER_LANG['recipients_failed'] = 'SMTP klaida: nepavyko išsiųsti šiems gavėjams: ';
  23 +$PHPMAILER_LANG['signing'] = 'Prisijungimo klaida: ';
  24 +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP susijungimo klaida';
  25 +$PHPMAILER_LANG['smtp_error'] = 'SMTP stoties klaida: ';
  26 +$PHPMAILER_LANG['variable_set'] = 'Nepavyko priskirti reikšmės kintamajam: ';
  27 +//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Latvian PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Eduards M. <e@npd.lv>
  7 + */
  8 +
  9 +$PHPMAILER_LANG['authenticate'] = 'SMTP kļūda: Autorizācija neizdevās.';
  10 +$PHPMAILER_LANG['connect_host'] = 'SMTP Kļūda: Nevar izveidot savienojumu ar SMTP serveri.';
  11 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Kļūda: Nepieņem informāciju.';
  12 +$PHPMAILER_LANG['empty_message'] = 'Ziņojuma teksts ir tukšs';
  13 +$PHPMAILER_LANG['encoding'] = 'Neatpazīts kodējums: ';
  14 +$PHPMAILER_LANG['execute'] = 'Neizdevās izpildīt komandu: ';
  15 +$PHPMAILER_LANG['file_access'] = 'Fails nav pieejams: ';
  16 +$PHPMAILER_LANG['file_open'] = 'Faila kļūda: Nevar atvērt failu: ';
  17 +$PHPMAILER_LANG['from_failed'] = 'Nepareiza sūtītāja adrese: ';
  18 +$PHPMAILER_LANG['instantiate'] = 'Nevar palaist sūtīšanas funkciju.';
  19 +$PHPMAILER_LANG['invalid_address'] = 'Nepareiza adrese: ';
  20 +$PHPMAILER_LANG['mailer_not_supported'] = ' sūtītājs netiek atbalstīts.';
  21 +$PHPMAILER_LANG['provide_address'] = 'Lūdzu, norādiet vismaz vienu adresātu.';
  22 +$PHPMAILER_LANG['recipients_failed'] = 'SMTP kļūda: neizdevās nosūtīt šādiem saņēmējiem: ';
  23 +$PHPMAILER_LANG['signing'] = 'Autorizācijas kļūda: ';
  24 +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP savienojuma kļūda';
  25 +$PHPMAILER_LANG['smtp_error'] = 'SMTP servera kļūda: ';
  26 +$PHPMAILER_LANG['variable_set'] = 'Nevar piešķirt mainīgā vērtību: ';
  27 +//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Malagasy PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Hackinet <piyushjha8164@gmail.com>
  7 + */
  8 +
  9 +$PHPMAILER_LANG['authenticate'] = 'Hadisoana SMTP: Tsy nahomby ny fanamarinana.';
  10 +$PHPMAILER_LANG['connect_host'] = 'SMTP Error: Tsy afaka mampifandray amin\'ny mpampiantrano SMTP.';
  11 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP diso: tsy voarakitra ny angona.';
  12 +$PHPMAILER_LANG['empty_message'] = 'Tsy misy ny votoaty mailaka.';
  13 +$PHPMAILER_LANG['encoding'] = 'Tsy fantatra encoding: ';
  14 +$PHPMAILER_LANG['execute'] = 'Tsy afaka manatanteraka ity baiko manaraka ity: ';
  15 +$PHPMAILER_LANG['file_access'] = 'Tsy nahomby ny fidirana amin\'ity rakitra ity: ';
  16 +$PHPMAILER_LANG['file_open'] = 'Hadisoana diso: Tsy afaka nanokatra ity file manaraka ity: ';
  17 +$PHPMAILER_LANG['from_failed'] = 'Ny adiresy iraka manaraka dia diso: ';
  18 +$PHPMAILER_LANG['instantiate'] = 'Tsy afaka nanomboka ny hetsika mail.';
  19 +$PHPMAILER_LANG['invalid_address'] = 'Tsy mety ny adiresy: ';
  20 +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer tsy manohana.';
  21 +$PHPMAILER_LANG['provide_address'] = 'Alefaso azafady iray adiresy iray farafahakeliny.';
  22 +$PHPMAILER_LANG['recipients_failed'] = 'SMTP Error: Tsy mety ireo mpanaraka ireto: ';
  23 +$PHPMAILER_LANG['signing'] = 'Error nandritra ny sonia:';
  24 +$PHPMAILER_LANG['smtp_connect_failed'] = 'Tsy nahomby ny fifandraisana tamin\'ny server SMTP.';
  25 +$PHPMAILER_LANG['smtp_error'] = 'Fahadisoana tamin\'ny server SMTP: ';
  26 +$PHPMAILER_LANG['variable_set'] = 'Tsy azo atao ny mametraka na mamerina ny variable: ';
  27 +$PHPMAILER_LANG['extension_missing'] = 'Tsy hita ny ampahany: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Mongolian PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author @wispas
  7 + */
  8 +
  9 +$PHPMAILER_LANG['authenticate'] = 'Алдаа SMTP: Холбогдож чадсангүй.';
  10 +$PHPMAILER_LANG['connect_host'] = 'Алдаа SMTP: SMTP- сервертэй холбогдож болохгүй байна.';
  11 +$PHPMAILER_LANG['data_not_accepted'] = 'Алдаа SMTP: зөвшөөрөгдсөнгүй.';
  12 +$PHPMAILER_LANG['encoding'] = 'Тодорхойгүй кодчилол: ';
  13 +$PHPMAILER_LANG['execute'] = 'Коммандыг гүйцэтгэх боломжгүй байна: ';
  14 +$PHPMAILER_LANG['file_access'] = 'Файлд хандах боломжгүй байна: ';
  15 +$PHPMAILER_LANG['file_open'] = 'Файлын алдаа: файлыг нээх боломжгүй байна: ';
  16 +$PHPMAILER_LANG['from_failed'] = 'Илгээгчийн хаяг буруу байна: ';
  17 +$PHPMAILER_LANG['instantiate'] = 'Mail () функцийг ажиллуулах боломжгүй байна.';
  18 +$PHPMAILER_LANG['provide_address'] = 'Хүлээн авагчийн имэйл хаягийг оруулна уу.';
  19 +$PHPMAILER_LANG['mailer_not_supported'] = ' — мэйл серверийг дэмжсэнгүй.';
  20 +$PHPMAILER_LANG['recipients_failed'] = 'Алдаа SMTP: ийм хаягийг илгээж чадсангүй: ';
  21 +$PHPMAILER_LANG['empty_message'] = 'Хоосон мессэж';
  22 +$PHPMAILER_LANG['invalid_address'] = 'И-Мэйл буруу форматтай тул илгээх боломжгүй: ';
  23 +$PHPMAILER_LANG['signing'] = 'Гарын үсгийн алдаа: ';
  24 +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP сервертэй холбогдоход алдаа гарлаа';
  25 +$PHPMAILER_LANG['smtp_error'] = 'SMTP серверийн алдаа: ';
  26 +$PHPMAILER_LANG['variable_set'] = 'Хувьсагчийг тохируулах эсвэл дахин тохируулах боломжгүй байна: ';
  27 +$PHPMAILER_LANG['extension_missing'] = 'Өргөтгөл байхгүй: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Malaysian PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Nawawi Jamili <nawawi@rutweb.com>
  7 + */
  8 +
  9 +$PHPMAILER_LANG['authenticate'] = 'Ralat SMTP: Tidak dapat pengesahan.';
  10 +$PHPMAILER_LANG['connect_host'] = 'Ralat SMTP: Tidak dapat menghubungi hos pelayan SMTP.';
  11 +$PHPMAILER_LANG['data_not_accepted'] = 'Ralat SMTP: Data tidak diterima oleh pelayan.';
  12 +$PHPMAILER_LANG['empty_message'] = 'Tiada isi untuk mesej';
  13 +$PHPMAILER_LANG['encoding'] = 'Pengekodan tidak diketahui: ';
  14 +$PHPMAILER_LANG['execute'] = 'Tidak dapat melaksanakan: ';
  15 +$PHPMAILER_LANG['file_access'] = 'Tidak dapat mengakses fail: ';
  16 +$PHPMAILER_LANG['file_open'] = 'Ralat Fail: Tidak dapat membuka fail: ';
  17 +$PHPMAILER_LANG['from_failed'] = 'Berikut merupakan ralat dari alamat e-mel: ';
  18 +$PHPMAILER_LANG['instantiate'] = 'Tidak dapat memberi contoh fungsi e-mel.';
  19 +$PHPMAILER_LANG['invalid_address'] = 'Alamat emel tidak sah: ';
  20 +$PHPMAILER_LANG['mailer_not_supported'] = ' jenis penghantar emel tidak disokong.';
  21 +$PHPMAILER_LANG['provide_address'] = 'Anda perlu menyediakan sekurang-kurangnya satu alamat e-mel penerima.';
  22 +$PHPMAILER_LANG['recipients_failed'] = 'Ralat SMTP: Penerima e-mel berikut telah gagal: ';
  23 +$PHPMAILER_LANG['signing'] = 'Ralat pada tanda tangan: ';
  24 +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() telah gagal.';
  25 +$PHPMAILER_LANG['smtp_error'] = 'Ralat pada pelayan SMTP: ';
  26 +$PHPMAILER_LANG['variable_set'] = 'Tidak boleh menetapkan atau menetapkan semula pembolehubah: ';
  27 +$PHPMAILER_LANG['extension_missing'] = 'Sambungan hilang: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Norwegian Bokmål PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + */
  7 +
  8 + $PHPMAILER_LANG['authenticate'] = 'SMTP-feil: Kunne ikke autentiseres.';
  9 + $PHPMAILER_LANG['buggy_php'] = 'Din versjon av PHP er berørt av en feil som kan føre til ødelagte meldinger. For å løse problemet kan du bytte til SMTP, deaktivere alternativet mail.add_x_header i php.ini, bytte til MacOS eller Linux eller oppgradere PHP til versjon 7.0.17+ eller 7.1.3+.';
  10 + $PHPMAILER_LANG['connect_host'] = 'SMTP-feil: Kunne ikke koble til SMTP-vert.';
  11 + $PHPMAILER_LANG['data_not_accepted'] = 'SMTP-feil: data ikke akseptert.';
  12 + $PHPMAILER_LANG['empty_message'] = 'Meldingstekst mangler';
  13 + $PHPMAILER_LANG['encoding'] = 'Ukjent koding: ';
  14 + $PHPMAILER_LANG['execute'] = 'Kunne ikke utføres: ';
  15 + $PHPMAILER_LANG['extension_missing'] = 'Utvidelse mangler: ';
  16 + $PHPMAILER_LANG['file_access'] = 'Kunne ikke få tilgang til filen: ';
  17 + $PHPMAILER_LANG['file_open'] = 'Feil i fil: Kunne ikke åpne filen: ';
  18 + $PHPMAILER_LANG['from_failed'] = 'Følgende Fra-adresse mislyktes: ';
  19 + $PHPMAILER_LANG['instantiate'] = 'Kunne ikke instansiere e-postfunksjonen.';
  20 + $PHPMAILER_LANG['invalid_address'] = 'Ugyldig adresse: ';
  21 + $PHPMAILER_LANG['invalid_header'] = 'Ugyldig headernavn eller verdi';
  22 + $PHPMAILER_LANG['invalid_hostentry'] = 'Ugyldig vertsinngang: ';
  23 + $PHPMAILER_LANG['invalid_host'] = 'Ugyldig vert: ';
  24 + $PHPMAILER_LANG['mailer_not_supported'] = ' sender er ikke støttet.';
  25 + $PHPMAILER_LANG['provide_address'] = 'Du må oppgi minst én mottaker-e-postadresse.';
  26 + $PHPMAILER_LANG['recipients_failed'] = 'SMTP Feil: Følgende mottakeradresse feilet: ';
  27 + $PHPMAILER_LANG['signing'] = 'Signeringsfeil: ';
  28 + $PHPMAILER_LANG['smtp_code'] = 'SMTP-kode: ';
  29 + $PHPMAILER_LANG['smtp_code_ex'] = 'Ytterligere SMTP-info: ';
  30 + $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP connect() mislyktes.';
  31 + $PHPMAILER_LANG['smtp_detail'] = 'Detaljer: ';
  32 + $PHPMAILER_LANG['smtp_error'] = 'SMTP-serverfeil: ';
  33 + $PHPMAILER_LANG['variable_set'] = 'Kan ikke angi eller tilbakestille variabel: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Dutch PHPMailer language file: refer to PHPMailer.php for definitive list.
  5 + * @package PHPMailer
  6 + * @author Tuxion <team@tuxion.nl>
  7 + */
  8 +
  9 +$PHPMAILER_LANG['authenticate'] = 'SMTP-fout: authenticatie mislukt.';
  10 +$PHPMAILER_LANG['buggy_php'] = 'PHP versie gededecteerd die onderhavig is aan een bug die kan resulteren in gecorrumpeerde berichten. Om dit te voorkomen, gebruik SMTP voor het verzenden van berichten, zet de mail.add_x_header optie in uw php.ini file uit, gebruik MacOS of Linux, of pas de gebruikte PHP versie aan naar versie 7.0.17+ or 7.1.3+.';
  11 +$PHPMAILER_LANG['connect_host'] = 'SMTP-fout: kon niet verbinden met SMTP-host.';
  12 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP-fout: data niet geaccepteerd.';
  13 +$PHPMAILER_LANG['empty_message'] = 'Berichttekst is leeg';
  14 +$PHPMAILER_LANG['encoding'] = 'Onbekende codering: ';
  15 +$PHPMAILER_LANG['execute'] = 'Kon niet uitvoeren: ';
  16 +$PHPMAILER_LANG['extension_missing'] = 'Extensie afwezig: ';
  17 +$PHPMAILER_LANG['file_access'] = 'Kreeg geen toegang tot bestand: ';
  18 +$PHPMAILER_LANG['file_open'] = 'Bestandsfout: kon bestand niet openen: ';
  19 +$PHPMAILER_LANG['from_failed'] = 'Het volgende afzendersadres is mislukt: ';
  20 +$PHPMAILER_LANG['instantiate'] = 'Kon mailfunctie niet initialiseren.';
  21 +$PHPMAILER_LANG['invalid_address'] = 'Ongeldig adres: ';
  22 +$PHPMAILER_LANG['invalid_header'] = 'Ongeldige header naam of waarde';
  23 +$PHPMAILER_LANG['invalid_hostentry'] = 'Ongeldige hostentry: ';
  24 +$PHPMAILER_LANG['invalid_host'] = 'Ongeldige host: ';
  25 +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer wordt niet ondersteund.';
  26 +$PHPMAILER_LANG['provide_address'] = 'Er moet minstens één ontvanger worden opgegeven.';
  27 +$PHPMAILER_LANG['recipients_failed'] = 'SMTP-fout: de volgende ontvangers zijn mislukt: ';
  28 +$PHPMAILER_LANG['signing'] = 'Signeerfout: ';
  29 +$PHPMAILER_LANG['smtp_code'] = 'SMTP code: ';
  30 +$PHPMAILER_LANG['smtp_code_ex'] = 'Aanvullende SMTP informatie: ';
  31 +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Verbinding mislukt.';
  32 +$PHPMAILER_LANG['smtp_detail'] = 'Detail: ';
  33 +$PHPMAILER_LANG['smtp_error'] = 'SMTP-serverfout: ';
  34 +$PHPMAILER_LANG['variable_set'] = 'Kan de volgende variabele niet instellen of resetten: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Polish PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + */
  7 +
  8 +$PHPMAILER_LANG['authenticate'] = 'Błąd SMTP: Nie można przeprowadzić uwierzytelnienia.';
  9 +$PHPMAILER_LANG['buggy_php'] = 'Twoja wersja PHP zawiera błąd, który może powodować uszkodzenie wiadomości. Aby go naprawić, przełącz się na wysyłanie za pomocą SMTP, wyłącz opcję mail.add_x_header w php.ini, przełącz się na MacOS lub Linux lub zaktualizuj PHP do wersji 7.0.17+ lub 7.1.3+.';
  10 +$PHPMAILER_LANG['connect_host'] = 'Błąd SMTP: Nie można połączyć się z wybranym hostem.';
  11 +$PHPMAILER_LANG['data_not_accepted'] = 'Błąd SMTP: Dane nie zostały przyjęte.';
  12 +$PHPMAILER_LANG['empty_message'] = 'Wiadomość jest pusta.';
  13 +$PHPMAILER_LANG['encoding'] = 'Błędny sposób kodowania znaków: ';
  14 +$PHPMAILER_LANG['execute'] = 'Nie można uruchomić: ';
  15 +$PHPMAILER_LANG['extension_missing'] = 'Brakujące rozszerzenie: ';
  16 +$PHPMAILER_LANG['file_access'] = 'Brak dostępu do pliku: ';
  17 +$PHPMAILER_LANG['file_open'] = 'Nie można otworzyć pliku: ';
  18 +$PHPMAILER_LANG['from_failed'] = 'Następujący adres nadawcy jest nieprawidłowy lub nie istnieje: ';
  19 +$PHPMAILER_LANG['instantiate'] = 'Nie można wywołać funkcji mail(). Sprawdź konfigurację serwera.';
  20 +$PHPMAILER_LANG['invalid_address'] = 'Nie można wysłać wiadomości, ' . 'następujący adres odbiorcy jest nieprawidłowy lub nie istnieje: ';
  21 +$PHPMAILER_LANG['invalid_header'] = 'Nieprawidłowa nazwa lub wartość nagłówka';
  22 +$PHPMAILER_LANG['invalid_hostentry'] = 'Nieprawidłowy wpis hosta: ';
  23 +$PHPMAILER_LANG['invalid_host'] = 'Nieprawidłowy host: ';
  24 +$PHPMAILER_LANG['provide_address'] = 'Należy podać prawidłowy adres email odbiorcy.';
  25 +$PHPMAILER_LANG['mailer_not_supported'] = 'Wybrana metoda wysyłki wiadomości nie jest obsługiwana.';
  26 +$PHPMAILER_LANG['recipients_failed'] = 'Błąd SMTP: Następujący odbiorcy są nieprawidłowi lub nie istnieją: ';
  27 +$PHPMAILER_LANG['signing'] = 'Błąd podpisywania wiadomości: ';
  28 +$PHPMAILER_LANG['smtp_code'] = 'Kod SMTP: ';
  29 +$PHPMAILER_LANG['smtp_code_ex'] = 'Dodatkowe informacje SMTP: ';
  30 +$PHPMAILER_LANG['smtp_connect_failed'] = 'Wywołanie funkcji SMTP Connect() zostało zakończone niepowodzeniem.';
  31 +$PHPMAILER_LANG['smtp_detail'] = 'Szczegóły: ';
  32 +$PHPMAILER_LANG['smtp_error'] = 'Błąd SMTP: ';
  33 +$PHPMAILER_LANG['variable_set'] = 'Nie można ustawić lub zmodyfikować zmiennej: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Portuguese (European) PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Jonadabe <jonadabe@hotmail.com>
  7 + */
  8 +
  9 +$PHPMAILER_LANG['authenticate'] = 'Erro do SMTP: Não foi possível realizar a autenticação.';
  10 +$PHPMAILER_LANG['connect_host'] = 'Erro do SMTP: Não foi possível realizar ligação com o servidor SMTP.';
  11 +$PHPMAILER_LANG['data_not_accepted'] = 'Erro do SMTP: Os dados foram rejeitados.';
  12 +$PHPMAILER_LANG['empty_message'] = 'A mensagem no e-mail está vazia.';
  13 +$PHPMAILER_LANG['encoding'] = 'Codificação desconhecida: ';
  14 +$PHPMAILER_LANG['execute'] = 'Não foi possível executar: ';
  15 +$PHPMAILER_LANG['file_access'] = 'Não foi possível aceder o ficheiro: ';
  16 +$PHPMAILER_LANG['file_open'] = 'Abertura do ficheiro: Não foi possível abrir o ficheiro: ';
  17 +$PHPMAILER_LANG['from_failed'] = 'Ocorreram falhas nos endereços dos seguintes remententes: ';
  18 +$PHPMAILER_LANG['instantiate'] = 'Não foi possível iniciar uma instância da função mail.';
  19 +$PHPMAILER_LANG['invalid_address'] = 'Não foi enviado nenhum e-mail para o endereço de e-mail inválido: ';
  20 +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer não é suportado.';
  21 +$PHPMAILER_LANG['provide_address'] = 'Tem de fornecer pelo menos um endereço como destinatário do e-mail.';
  22 +$PHPMAILER_LANG['recipients_failed'] = 'Erro do SMTP: O endereço do seguinte destinatário falhou: ';
  23 +$PHPMAILER_LANG['signing'] = 'Erro ao assinar: ';
  24 +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() falhou.';
  25 +$PHPMAILER_LANG['smtp_error'] = 'Erro de servidor SMTP: ';
  26 +$PHPMAILER_LANG['variable_set'] = 'Não foi possível definir ou redefinir a variável: ';
  27 +$PHPMAILER_LANG['extension_missing'] = 'Extensão em falta: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Brazilian Portuguese PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Paulo Henrique Garcia <paulo@controllerweb.com.br>
  7 + * @author Lucas Guimarães <lucas@lucasguimaraes.com>
  8 + * @author Phelipe Alves <phelipealvesdesouza@gmail.com>
  9 + * @author Fabio Beneditto <fabiobeneditto@gmail.com>
  10 + * @author Geidson Benício Coelho <geidsonc@gmail.com>
  11 + */
  12 +
  13 +$PHPMAILER_LANG['authenticate'] = 'Erro de SMTP: Não foi possível autenticar.';
  14 +$PHPMAILER_LANG['buggy_php'] = 'Sua versão do PHP é afetada por um bug que por resultar em messagens corrompidas. Para corrigir, mude para enviar usando SMTP, desative a opção mail.add_x_header em seu php.ini, mude para MacOS ou Linux, ou atualize seu PHP para versão 7.0.17+ ou 7.1.3+ ';
  15 +$PHPMAILER_LANG['connect_host'] = 'Erro de SMTP: Não foi possível conectar ao servidor SMTP.';
  16 +$PHPMAILER_LANG['data_not_accepted'] = 'Erro de SMTP: Dados rejeitados.';
  17 +$PHPMAILER_LANG['empty_message'] = 'Mensagem vazia';
  18 +$PHPMAILER_LANG['encoding'] = 'Codificação desconhecida: ';
  19 +$PHPMAILER_LANG['execute'] = 'Não foi possível executar: ';
  20 +$PHPMAILER_LANG['extension_missing'] = 'Extensão não existe: ';
  21 +$PHPMAILER_LANG['file_access'] = 'Não foi possível acessar o arquivo: ';
  22 +$PHPMAILER_LANG['file_open'] = 'Erro de Arquivo: Não foi possível abrir o arquivo: ';
  23 +$PHPMAILER_LANG['from_failed'] = 'Os seguintes remetentes falharam: ';
  24 +$PHPMAILER_LANG['instantiate'] = 'Não foi possível instanciar a função mail.';
  25 +$PHPMAILER_LANG['invalid_address'] = 'Endereço de e-mail inválido: ';
  26 +$PHPMAILER_LANG['invalid_header'] = 'Nome ou valor de cabeçalho inválido';
  27 +$PHPMAILER_LANG['invalid_hostentry'] = 'hostentry inválido: ';
  28 +$PHPMAILER_LANG['invalid_host'] = 'host inválido: ';
  29 +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer não é suportado.';
  30 +$PHPMAILER_LANG['provide_address'] = 'Você deve informar pelo menos um destinatário.';
  31 +$PHPMAILER_LANG['recipients_failed'] = 'Erro de SMTP: Os seguintes destinatários falharam: ';
  32 +$PHPMAILER_LANG['signing'] = 'Erro de Assinatura: ';
  33 +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() falhou.';
  34 +$PHPMAILER_LANG['smtp_code'] = 'Código do servidor SMTP: ';
  35 +$PHPMAILER_LANG['smtp_error'] = 'Erro de servidor SMTP: ';
  36 +$PHPMAILER_LANG['smtp_code_ex'] = 'Informações adicionais do servidor SMTP: ';
  37 +$PHPMAILER_LANG['smtp_detail'] = 'Detalhes do servidor SMTP: ';
  38 +$PHPMAILER_LANG['variable_set'] = 'Não foi possível definir ou redefinir a variável: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Romanian PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + */
  7 +
  8 +$PHPMAILER_LANG['authenticate'] = 'Eroare SMTP: Autentificarea a eșuat.';
  9 +$PHPMAILER_LANG['buggy_php'] = 'Versiunea instalată de PHP este afectată de o problemă care poate duce la coruperea mesajelor Pentru a preveni această problemă, folosiți SMTP, dezactivați opțiunea mail.add_x_header din php.ini, folosiți MacOS/Linux sau actualizați versiunea de PHP la 7.0.17+ sau 7.1.3+.';
  10 +$PHPMAILER_LANG['connect_host'] = 'Eroare SMTP: Conectarea la serverul SMTP a eșuat.';
  11 +$PHPMAILER_LANG['data_not_accepted'] = 'Eroare SMTP: Datele nu au fost acceptate.';
  12 +$PHPMAILER_LANG['empty_message'] = 'Mesajul este gol.';
  13 +$PHPMAILER_LANG['encoding'] = 'Encodare necunoscută: ';
  14 +$PHPMAILER_LANG['execute'] = 'Nu se poate executa următoarea comandă: ';
  15 +$PHPMAILER_LANG['extension_missing'] = 'Lipsește extensia: ';
  16 +$PHPMAILER_LANG['file_access'] = 'Nu se poate accesa următorul fișier: ';
  17 +$PHPMAILER_LANG['file_open'] = 'Eroare fișier: Nu se poate deschide următorul fișier: ';
  18 +$PHPMAILER_LANG['from_failed'] = 'Următoarele adrese From au dat eroare: ';
  19 +$PHPMAILER_LANG['instantiate'] = 'Funcția mail nu a putut fi inițializată.';
  20 +$PHPMAILER_LANG['invalid_address'] = 'Adresa de email nu este validă: ';
  21 +$PHPMAILER_LANG['invalid_header'] = 'Numele sau valoarea header-ului nu este validă: ';
  22 +$PHPMAILER_LANG['invalid_hostentry'] = 'Hostentry invalid: ';
  23 +$PHPMAILER_LANG['invalid_host'] = 'Host invalid: ';
  24 +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer nu este suportat.';
  25 +$PHPMAILER_LANG['provide_address'] = 'Trebuie să adăugați cel puțin o adresă de email.';
  26 +$PHPMAILER_LANG['recipients_failed'] = 'Eroare SMTP: Următoarele adrese de email au eșuat: ';
  27 +$PHPMAILER_LANG['signing'] = 'A aparut o problemă la semnarea emailului. ';
  28 +$PHPMAILER_LANG['smtp_code'] = 'Cod SMTP: ';
  29 +$PHPMAILER_LANG['smtp_code_ex'] = 'Informații SMTP adiționale: ';
  30 +$PHPMAILER_LANG['smtp_connect_failed'] = 'Conectarea la serverul SMTP a eșuat.';
  31 +$PHPMAILER_LANG['smtp_detail'] = 'Detalii SMTP: ';
  32 +$PHPMAILER_LANG['smtp_error'] = 'Eroare server SMTP: ';
  33 +$PHPMAILER_LANG['variable_set'] = 'Nu se poate seta/reseta variabila. ';
  1 +<?php
  2 +
  3 +/**
  4 + * Russian PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Alexey Chumakov <alex@chumakov.ru>
  7 + * @author Foster Snowhill <i18n@forstwoof.ru>
  8 + */
  9 +
  10 +$PHPMAILER_LANG['authenticate'] = 'Ошибка SMTP: ошибка авторизации.';
  11 +$PHPMAILER_LANG['connect_host'] = 'Ошибка SMTP: не удается подключиться к SMTP-серверу.';
  12 +$PHPMAILER_LANG['data_not_accepted'] = 'Ошибка SMTP: данные не приняты.';
  13 +$PHPMAILER_LANG['encoding'] = 'Неизвестная кодировка: ';
  14 +$PHPMAILER_LANG['execute'] = 'Невозможно выполнить команду: ';
  15 +$PHPMAILER_LANG['file_access'] = 'Нет доступа к файлу: ';
  16 +$PHPMAILER_LANG['file_open'] = 'Файловая ошибка: не удаётся открыть файл: ';
  17 +$PHPMAILER_LANG['from_failed'] = 'Неверный адрес отправителя: ';
  18 +$PHPMAILER_LANG['instantiate'] = 'Невозможно запустить функцию mail().';
  19 +$PHPMAILER_LANG['provide_address'] = 'Пожалуйста, введите хотя бы один email-адрес получателя.';
  20 +$PHPMAILER_LANG['mailer_not_supported'] = ' — почтовый сервер не поддерживается.';
  21 +$PHPMAILER_LANG['recipients_failed'] = 'Ошибка SMTP: не удалась отправка таким адресатам: ';
  22 +$PHPMAILER_LANG['empty_message'] = 'Пустое сообщение';
  23 +$PHPMAILER_LANG['invalid_address'] = 'Не отправлено из-за неправильного формата email-адреса: ';
  24 +$PHPMAILER_LANG['signing'] = 'Ошибка подписи: ';
  25 +$PHPMAILER_LANG['smtp_connect_failed'] = 'Ошибка соединения с SMTP-сервером';
  26 +$PHPMAILER_LANG['smtp_error'] = 'Ошибка SMTP-сервера: ';
  27 +$PHPMAILER_LANG['variable_set'] = 'Невозможно установить или сбросить переменную: ';
  28 +$PHPMAILER_LANG['extension_missing'] = 'Расширение отсутствует: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Sinhalese PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Ayesh Karunaratne <ayesh@aye.sh>
  7 + */
  8 +
  9 +$PHPMAILER_LANG['authenticate'] = 'SMTP දෝෂය: සත්‍යාපනය අසාර්ථක විය.';
  10 +$PHPMAILER_LANG['buggy_php'] = 'ඔබගේ PHP version එකෙහි පවතින දෝෂයක් නිසා email පණිවිඩ දෝෂ සහගත වීමේ හැකියාවක් ඇත. මෙය විසදීම සදහා SMTP භාවිතා කිරීම, mail.add_x_header INI setting එක අක්‍රීය කිරීම, MacOS හෝ Linux වලට මාරු වීම, හෝ ඔබගේ PHP version එක 7.0.17+ හෝ 7.1.3+ වලට අලුත් කිරීම කරගන්න.';
  11 +$PHPMAILER_LANG['connect_host'] = 'SMTP දෝෂය: සම්බන්ධ වීමට නොහැකි විය.';
  12 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP දෝෂය: දත්ත පිළිගනු නොලැබේ.';
  13 +$PHPMAILER_LANG['empty_message'] = 'පණිවිඩ අන්තර්ගතය හිස්';
  14 +$PHPMAILER_LANG['encoding'] = 'නොදන්නා කේතනය: ';
  15 +$PHPMAILER_LANG['execute'] = 'ක්‍රියාත්මක කළ නොහැකි විය: ';
  16 +$PHPMAILER_LANG['extension_missing'] = 'Extension එක නොමැත: ';
  17 +$PHPMAILER_LANG['file_access'] = 'File එකට ප්‍රවේශ විය නොහැකි විය: ';
  18 +$PHPMAILER_LANG['file_open'] = 'File දෝෂය: File එක විවෘත කළ නොහැක: ';
  19 +$PHPMAILER_LANG['from_failed'] = 'පහත From ලිපිනයන් අසාර්ථක විය: ';
  20 +$PHPMAILER_LANG['instantiate'] = 'mail function එක ක්‍රියාත්මක කළ නොහැක.';
  21 +$PHPMAILER_LANG['invalid_address'] = 'වලංගු නොවන ලිපිනය: ';
  22 +$PHPMAILER_LANG['invalid_header'] = 'වලංගු නොවන header නාමයක් හෝ අගයක්';
  23 +$PHPMAILER_LANG['invalid_hostentry'] = 'වලංගු නොවන hostentry එකක්: ';
  24 +$PHPMAILER_LANG['invalid_host'] = 'වලංගු නොවන host එකක්: ';
  25 +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer සහාය නොදක්වයි.';
  26 +$PHPMAILER_LANG['provide_address'] = 'ඔබ අවම වශයෙන් එක් ලබන්නෙකුගේ ඊමේල් ලිපිනයක් සැපයිය යුතුය.';
  27 +$PHPMAILER_LANG['recipients_failed'] = 'SMTP දෝෂය: පහත ලබන්නන් අසමත් විය: ';
  28 +$PHPMAILER_LANG['signing'] = 'Sign කිරීමේ දෝෂය: ';
  29 +$PHPMAILER_LANG['smtp_code'] = 'SMTP කේතය: ';
  30 +$PHPMAILER_LANG['smtp_code_ex'] = 'අමතර SMTP තොරතුරු: ';
  31 +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP සම්බන්ධය අසාර්ථක විය.';
  32 +$PHPMAILER_LANG['smtp_detail'] = 'තොරතුරු: ';
  33 +$PHPMAILER_LANG['smtp_error'] = 'SMTP දෝෂය: ';
  34 +$PHPMAILER_LANG['variable_set'] = 'Variable එක සැකසීමට හෝ නැවත සැකසීමට නොහැක: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Slovak PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Michal Tinka <michaltinka@gmail.com>
  7 + * @author Peter Orlický <pcmanik91@gmail.com>
  8 + */
  9 +
  10 +$PHPMAILER_LANG['authenticate'] = 'SMTP Error: Chyba autentifikácie.';
  11 +$PHPMAILER_LANG['connect_host'] = 'SMTP Error: Nebolo možné nadviazať spojenie so SMTP serverom.';
  12 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Error: Dáta neboli prijaté';
  13 +$PHPMAILER_LANG['empty_message'] = 'Prázdne telo správy.';
  14 +$PHPMAILER_LANG['encoding'] = 'Neznáme kódovanie: ';
  15 +$PHPMAILER_LANG['execute'] = 'Nedá sa vykonať: ';
  16 +$PHPMAILER_LANG['file_access'] = 'Súbor nebol nájdený: ';
  17 +$PHPMAILER_LANG['file_open'] = 'File Error: Súbor sa otvoriť pre čítanie: ';
  18 +$PHPMAILER_LANG['from_failed'] = 'Následujúca adresa From je nesprávna: ';
  19 +$PHPMAILER_LANG['instantiate'] = 'Nedá sa vytvoriť inštancia emailovej funkcie.';
  20 +$PHPMAILER_LANG['invalid_address'] = 'Neodoslané, emailová adresa je nesprávna: ';
  21 +$PHPMAILER_LANG['invalid_hostentry'] = 'Záznam hostiteľa je nesprávny: ';
  22 +$PHPMAILER_LANG['invalid_host'] = 'Hostiteľ je nesprávny: ';
  23 +$PHPMAILER_LANG['mailer_not_supported'] = ' emailový klient nieje podporovaný.';
  24 +$PHPMAILER_LANG['provide_address'] = 'Musíte zadať aspoň jednu emailovú adresu príjemcu.';
  25 +$PHPMAILER_LANG['recipients_failed'] = 'SMTP Error: Adresy príjemcov niesu správne ';
  26 +$PHPMAILER_LANG['signing'] = 'Chyba prihlasovania: ';
  27 +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() zlyhalo.';
  28 +$PHPMAILER_LANG['smtp_error'] = 'SMTP chyba serveru: ';
  29 +$PHPMAILER_LANG['variable_set'] = 'Nemožno nastaviť alebo resetovať premennú: ';
  30 +$PHPMAILER_LANG['extension_missing'] = 'Chýba rozšírenie: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Slovene PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Klemen Tušar <techouse@gmail.com>
  7 + * @author Filip Š <projects@filips.si>
  8 + * @author Blaž Oražem <blaz@orazem.si>
  9 + */
  10 +
  11 +$PHPMAILER_LANG['authenticate'] = 'SMTP napaka: Avtentikacija ni uspela.';
  12 +$PHPMAILER_LANG['buggy_php'] = 'Na vašo PHP različico vpliva napaka, ki lahko povzroči poškodovana sporočila. Če želite težavo odpraviti, preklopite na pošiljanje prek SMTP, onemogočite možnost mail.add_x_header v vaši php.ini datoteki, preklopite na MacOS ali Linux, ali nadgradite vašo PHP zaličico na 7.0.17+ ali 7.1.3+.';
  13 +$PHPMAILER_LANG['connect_host'] = 'SMTP napaka: Vzpostavljanje povezave s SMTP gostiteljem ni uspelo.';
  14 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP napaka: Strežnik zavrača podatke.';
  15 +$PHPMAILER_LANG['empty_message'] = 'E-poštno sporočilo nima vsebine.';
  16 +$PHPMAILER_LANG['encoding'] = 'Nepoznan tip kodiranja: ';
  17 +$PHPMAILER_LANG['execute'] = 'Operacija ni uspela: ';
  18 +$PHPMAILER_LANG['extension_missing'] = 'Manjkajoča razširitev: ';
  19 +$PHPMAILER_LANG['file_access'] = 'Nimam dostopa do datoteke: ';
  20 +$PHPMAILER_LANG['file_open'] = 'Ne morem odpreti datoteke: ';
  21 +$PHPMAILER_LANG['from_failed'] = 'Neveljaven e-naslov pošiljatelja: ';
  22 +$PHPMAILER_LANG['instantiate'] = 'Ne morem inicializirati mail funkcije.';
  23 +$PHPMAILER_LANG['invalid_address'] = 'E-poštno sporočilo ni bilo poslano. E-naslov je neveljaven: ';
  24 +$PHPMAILER_LANG['invalid_header'] = 'Neveljavno ime ali vrednost glave';
  25 +$PHPMAILER_LANG['invalid_hostentry'] = 'Neveljaven vnos gostitelja: ';
  26 +$PHPMAILER_LANG['invalid_host'] = 'Neveljaven gostitelj: ';
  27 +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer ni podprt.';
  28 +$PHPMAILER_LANG['provide_address'] = 'Prosimo, vnesite vsaj enega naslovnika.';
  29 +$PHPMAILER_LANG['recipients_failed'] = 'SMTP napaka: Sledeči naslovniki so neveljavni: ';
  30 +$PHPMAILER_LANG['signing'] = 'Napaka pri podpisovanju: ';
  31 +$PHPMAILER_LANG['smtp_code'] = 'SMTP koda: ';
  32 +$PHPMAILER_LANG['smtp_code_ex'] = 'Dodatne informacije o SMTP: ';
  33 +$PHPMAILER_LANG['smtp_connect_failed'] = 'Ne morem vzpostaviti povezave s SMTP strežnikom.';
  34 +$PHPMAILER_LANG['smtp_detail'] = 'Podrobnosti: ';
  35 +$PHPMAILER_LANG['smtp_error'] = 'Napaka SMTP strežnika: ';
  36 +$PHPMAILER_LANG['variable_set'] = 'Ne morem nastaviti oz. ponastaviti spremenljivke: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Serbian PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Александар Јевремовић <ajevremovic@gmail.com>
  7 + * @author Miloš Milanović <mmilanovic016@gmail.com>
  8 + */
  9 +
  10 +$PHPMAILER_LANG['authenticate'] = 'SMTP грешка: аутентификација није успела.';
  11 +$PHPMAILER_LANG['connect_host'] = 'SMTP грешка: повезивање са SMTP сервером није успело.';
  12 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP грешка: подаци нису прихваћени.';
  13 +$PHPMAILER_LANG['empty_message'] = 'Садржај поруке је празан.';
  14 +$PHPMAILER_LANG['encoding'] = 'Непознато кодирање: ';
  15 +$PHPMAILER_LANG['execute'] = 'Није могуће извршити наредбу: ';
  16 +$PHPMAILER_LANG['file_access'] = 'Није могуће приступити датотеци: ';
  17 +$PHPMAILER_LANG['file_open'] = 'Није могуће отворити датотеку: ';
  18 +$PHPMAILER_LANG['from_failed'] = 'SMTP грешка: слање са следећих адреса није успело: ';
  19 +$PHPMAILER_LANG['recipients_failed'] = 'SMTP грешка: слање на следеће адресе није успело: ';
  20 +$PHPMAILER_LANG['instantiate'] = 'Није могуће покренути mail функцију.';
  21 +$PHPMAILER_LANG['invalid_address'] = 'Порука није послата. Неисправна адреса: ';
  22 +$PHPMAILER_LANG['mailer_not_supported'] = ' мејлер није подржан.';
  23 +$PHPMAILER_LANG['provide_address'] = 'Дефинишите бар једну адресу примаоца.';
  24 +$PHPMAILER_LANG['signing'] = 'Грешка приликом пријаве: ';
  25 +$PHPMAILER_LANG['smtp_connect_failed'] = 'Повезивање са SMTP сервером није успело.';
  26 +$PHPMAILER_LANG['smtp_error'] = 'Грешка SMTP сервера: ';
  27 +$PHPMAILER_LANG['variable_set'] = 'Није могуће задати нити ресетовати променљиву: ';
  28 +$PHPMAILER_LANG['extension_missing'] = 'Недостаје проширење: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Serbian PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Александар Јевремовић <ajevremovic@gmail.com>
  7 + * @author Miloš Milanović <mmilanovic016@gmail.com>
  8 + */
  9 +
  10 +$PHPMAILER_LANG['authenticate'] = 'SMTP greška: autentifikacija nije uspela.';
  11 +$PHPMAILER_LANG['connect_host'] = 'SMTP greška: povezivanje sa SMTP serverom nije uspelo.';
  12 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP greška: podaci nisu prihvaćeni.';
  13 +$PHPMAILER_LANG['empty_message'] = 'Sadržaj poruke je prazan.';
  14 +$PHPMAILER_LANG['encoding'] = 'Nepoznato kodiranje: ';
  15 +$PHPMAILER_LANG['execute'] = 'Nije moguće izvršiti naredbu: ';
  16 +$PHPMAILER_LANG['file_access'] = 'Nije moguće pristupiti datoteci: ';
  17 +$PHPMAILER_LANG['file_open'] = 'Nije moguće otvoriti datoteku: ';
  18 +$PHPMAILER_LANG['from_failed'] = 'SMTP greška: slanje sa sledećih adresa nije uspelo: ';
  19 +$PHPMAILER_LANG['recipients_failed'] = 'SMTP greška: slanje na sledeće adrese nije uspelo: ';
  20 +$PHPMAILER_LANG['instantiate'] = 'Nije moguće pokrenuti mail funkciju.';
  21 +$PHPMAILER_LANG['invalid_address'] = 'Poruka nije poslata. Neispravna adresa: ';
  22 +$PHPMAILER_LANG['mailer_not_supported'] = ' majler nije podržan.';
  23 +$PHPMAILER_LANG['provide_address'] = 'Definišite bar jednu adresu primaoca.';
  24 +$PHPMAILER_LANG['signing'] = 'Greška prilikom prijave: ';
  25 +$PHPMAILER_LANG['smtp_connect_failed'] = 'Povezivanje sa SMTP serverom nije uspelo.';
  26 +$PHPMAILER_LANG['smtp_error'] = 'Greška SMTP servera: ';
  27 +$PHPMAILER_LANG['variable_set'] = 'Nije moguće zadati niti resetovati promenljivu: ';
  28 +$PHPMAILER_LANG['extension_missing'] = 'Nedostaje proširenje: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Swedish PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Johan Linnér <johan@linner.biz>
  7 + */
  8 +
  9 +$PHPMAILER_LANG['authenticate'] = 'SMTP fel: Kunde inte autentisera.';
  10 +$PHPMAILER_LANG['connect_host'] = 'SMTP fel: Kunde inte ansluta till SMTP-server.';
  11 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP fel: Data accepterades inte.';
  12 +//$PHPMAILER_LANG['empty_message'] = 'Message body empty';
  13 +$PHPMAILER_LANG['encoding'] = 'Okänt encode-format: ';
  14 +$PHPMAILER_LANG['execute'] = 'Kunde inte köra: ';
  15 +$PHPMAILER_LANG['file_access'] = 'Ingen åtkomst till fil: ';
  16 +$PHPMAILER_LANG['file_open'] = 'Fil fel: Kunde inte öppna fil: ';
  17 +$PHPMAILER_LANG['from_failed'] = 'Följande avsändaradress är felaktig: ';
  18 +$PHPMAILER_LANG['instantiate'] = 'Kunde inte initiera e-postfunktion.';
  19 +$PHPMAILER_LANG['invalid_address'] = 'Felaktig adress: ';
  20 +$PHPMAILER_LANG['provide_address'] = 'Du måste ange minst en mottagares e-postadress.';
  21 +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer stöds inte.';
  22 +$PHPMAILER_LANG['recipients_failed'] = 'SMTP fel: Följande mottagare är felaktig: ';
  23 +$PHPMAILER_LANG['signing'] = 'Signeringsfel: ';
  24 +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() misslyckades.';
  25 +$PHPMAILER_LANG['smtp_error'] = 'SMTP serverfel: ';
  26 +$PHPMAILER_LANG['variable_set'] = 'Kunde inte definiera eller återställa variabel: ';
  27 +$PHPMAILER_LANG['extension_missing'] = 'Tillägg ej tillgängligt: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Tagalog PHPMailer language file: refer to English translation for definitive list
  5 + *
  6 + * @package PHPMailer
  7 + * @author Adriane Justine Tan <eidoriantan@gmail.com>
  8 + */
  9 +
  10 +$PHPMAILER_LANG['authenticate'] = 'SMTP Error: Hindi mapatotohanan.';
  11 +$PHPMAILER_LANG['connect_host'] = 'SMTP Error: Hindi makakonekta sa SMTP host.';
  12 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Error: Ang datos ay hindi naitanggap.';
  13 +$PHPMAILER_LANG['empty_message'] = 'Walang laman ang mensahe';
  14 +$PHPMAILER_LANG['encoding'] = 'Hindi alam ang encoding: ';
  15 +$PHPMAILER_LANG['execute'] = 'Hindi maisasagawa: ';
  16 +$PHPMAILER_LANG['file_access'] = 'Hindi ma-access ang file: ';
  17 +$PHPMAILER_LANG['file_open'] = 'File Error: Hindi mabuksan ang file: ';
  18 +$PHPMAILER_LANG['from_failed'] = 'Ang sumusunod na address ay nabigo: ';
  19 +$PHPMAILER_LANG['instantiate'] = 'Hindi maisimulan ang instance ng mail function.';
  20 +$PHPMAILER_LANG['invalid_address'] = 'Hindi wasto ang address na naibigay: ';
  21 +$PHPMAILER_LANG['mailer_not_supported'] = 'Ang mailer ay hindi suportado.';
  22 +$PHPMAILER_LANG['provide_address'] = 'Kailangan mong magbigay ng kahit isang email address na tatanggap.';
  23 +$PHPMAILER_LANG['recipients_failed'] = 'SMTP Error: Ang mga sumusunod na tatanggap ay nabigo: ';
  24 +$PHPMAILER_LANG['signing'] = 'Hindi ma-sign: ';
  25 +$PHPMAILER_LANG['smtp_connect_failed'] = 'Ang SMTP connect() ay nabigo.';
  26 +$PHPMAILER_LANG['smtp_error'] = 'Ang server ng SMTP ay nabigo: ';
  27 +$PHPMAILER_LANG['variable_set'] = 'Hindi matatakda o ma-reset ang mga variables: ';
  28 +$PHPMAILER_LANG['extension_missing'] = 'Nawawala ang extension: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Turkish PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Elçin Özel
  7 + * @author Can Yılmaz
  8 + * @author Mehmet Benlioğlu
  9 + * @author @yasinaydin
  10 + * @author Ogün Karakuş
  11 + */
  12 +
  13 +$PHPMAILER_LANG['authenticate'] = 'SMTP Hatası: Oturum açılamadı.';
  14 +$PHPMAILER_LANG['connect_host'] = 'SMTP Hatası: SMTP sunucusuna bağlanılamadı.';
  15 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Hatası: Veri kabul edilmedi.';
  16 +$PHPMAILER_LANG['empty_message'] = 'Mesajın içeriği boş';
  17 +$PHPMAILER_LANG['encoding'] = 'Bilinmeyen karakter kodlama: ';
  18 +$PHPMAILER_LANG['execute'] = 'Çalıştırılamadı: ';
  19 +$PHPMAILER_LANG['file_access'] = 'Dosyaya erişilemedi: ';
  20 +$PHPMAILER_LANG['file_open'] = 'Dosya Hatası: Dosya açılamadı: ';
  21 +$PHPMAILER_LANG['from_failed'] = 'Belirtilen adreslere gönderme başarısız: ';
  22 +$PHPMAILER_LANG['instantiate'] = 'Örnek e-posta fonksiyonu oluşturulamadı.';
  23 +$PHPMAILER_LANG['invalid_address'] = 'Geçersiz e-posta adresi: ';
  24 +$PHPMAILER_LANG['mailer_not_supported'] = ' e-posta kütüphanesi desteklenmiyor.';
  25 +$PHPMAILER_LANG['provide_address'] = 'En az bir alıcı e-posta adresi belirtmelisiniz.';
  26 +$PHPMAILER_LANG['recipients_failed'] = 'SMTP Hatası: Belirtilen alıcılara ulaşılamadı: ';
  27 +$PHPMAILER_LANG['signing'] = 'İmzalama hatası: ';
  28 +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP connect() fonksiyonu başarısız.';
  29 +$PHPMAILER_LANG['smtp_error'] = 'SMTP sunucu hatası: ';
  30 +$PHPMAILER_LANG['variable_set'] = 'Değişken ayarlanamadı ya da sıfırlanamadı: ';
  31 +$PHPMAILER_LANG['extension_missing'] = 'Eklenti bulunamadı: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Ukrainian PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author Yuriy Rudyy <yrudyy@prs.net.ua>
  7 + * @fixed by Boris Yurchenko <boris@yurchenko.pp.ua>
  8 + */
  9 +
  10 +$PHPMAILER_LANG['authenticate'] = 'Помилка SMTP: помилка авторизації.';
  11 +$PHPMAILER_LANG['connect_host'] = 'Помилка SMTP: не вдається під\'єднатися до SMTP-серверу.';
  12 +$PHPMAILER_LANG['data_not_accepted'] = 'Помилка SMTP: дані не прийнято.';
  13 +$PHPMAILER_LANG['encoding'] = 'Невідоме кодування: ';
  14 +$PHPMAILER_LANG['execute'] = 'Неможливо виконати команду: ';
  15 +$PHPMAILER_LANG['file_access'] = 'Немає доступу до файлу: ';
  16 +$PHPMAILER_LANG['file_open'] = 'Помилка файлової системи: не вдається відкрити файл: ';
  17 +$PHPMAILER_LANG['from_failed'] = 'Невірна адреса відправника: ';
  18 +$PHPMAILER_LANG['instantiate'] = 'Неможливо запустити функцію mail().';
  19 +$PHPMAILER_LANG['provide_address'] = 'Будь ласка, введіть хоча б одну email-адресу отримувача.';
  20 +$PHPMAILER_LANG['mailer_not_supported'] = ' - поштовий сервер не підтримується.';
  21 +$PHPMAILER_LANG['recipients_failed'] = 'Помилка SMTP: не вдалося відправлення для таких отримувачів: ';
  22 +$PHPMAILER_LANG['empty_message'] = 'Пусте повідомлення';
  23 +$PHPMAILER_LANG['invalid_address'] = 'Не відправлено через неправильний формат email-адреси: ';
  24 +$PHPMAILER_LANG['signing'] = 'Помилка підпису: ';
  25 +$PHPMAILER_LANG['smtp_connect_failed'] = 'Помилка з\'єднання з SMTP-сервером';
  26 +$PHPMAILER_LANG['smtp_error'] = 'Помилка SMTP-сервера: ';
  27 +$PHPMAILER_LANG['variable_set'] = 'Неможливо встановити або скинути змінну: ';
  28 +$PHPMAILER_LANG['extension_missing'] = 'Розширення відсутнє: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Vietnamese (Tiếng Việt) PHPMailer language file: refer to English translation for definitive list.
  5 + * @package PHPMailer
  6 + * @author VINADES.,JSC <contact@vinades.vn>
  7 + */
  8 +
  9 +$PHPMAILER_LANG['authenticate'] = 'Lỗi SMTP: Không thể xác thực.';
  10 +$PHPMAILER_LANG['connect_host'] = 'Lỗi SMTP: Không thể kết nối máy chủ SMTP.';
  11 +$PHPMAILER_LANG['data_not_accepted'] = 'Lỗi SMTP: Dữ liệu không được chấp nhận.';
  12 +$PHPMAILER_LANG['empty_message'] = 'Không có nội dung';
  13 +$PHPMAILER_LANG['encoding'] = 'Mã hóa không xác định: ';
  14 +$PHPMAILER_LANG['execute'] = 'Không thực hiện được: ';
  15 +$PHPMAILER_LANG['file_access'] = 'Không thể truy cập tệp tin ';
  16 +$PHPMAILER_LANG['file_open'] = 'Lỗi Tập tin: Không thể mở tệp tin: ';
  17 +$PHPMAILER_LANG['from_failed'] = 'Lỗi địa chỉ gửi đi: ';
  18 +$PHPMAILER_LANG['instantiate'] = 'Không dùng được các hàm gửi thư.';
  19 +$PHPMAILER_LANG['invalid_address'] = 'Đại chỉ emai không đúng: ';
  20 +$PHPMAILER_LANG['mailer_not_supported'] = ' trình gửi thư không được hỗ trợ.';
  21 +$PHPMAILER_LANG['provide_address'] = 'Bạn phải cung cấp ít nhất một địa chỉ người nhận.';
  22 +$PHPMAILER_LANG['recipients_failed'] = 'Lỗi SMTP: lỗi địa chỉ người nhận: ';
  23 +$PHPMAILER_LANG['signing'] = 'Lỗi đăng nhập: ';
  24 +$PHPMAILER_LANG['smtp_connect_failed'] = 'Lỗi kết nối với SMTP';
  25 +$PHPMAILER_LANG['smtp_error'] = 'Lỗi máy chủ smtp ';
  26 +$PHPMAILER_LANG['variable_set'] = 'Không thể thiết lập hoặc thiết lập lại biến: ';
  27 +//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Traditional Chinese PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author liqwei <liqwei@liqwei.com>
  7 + * @author Peter Dave Hello <@PeterDaveHello/>
  8 + * @author Jason Chiang <xcojad@gmail.com>
  9 + */
  10 +
  11 +$PHPMAILER_LANG['authenticate'] = 'SMTP 錯誤:登入失敗。';
  12 +$PHPMAILER_LANG['connect_host'] = 'SMTP 錯誤:無法連線到 SMTP 主機。';
  13 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP 錯誤:無法接受的資料。';
  14 +$PHPMAILER_LANG['empty_message'] = '郵件內容為空';
  15 +$PHPMAILER_LANG['encoding'] = '未知編碼: ';
  16 +$PHPMAILER_LANG['execute'] = '無法執行:';
  17 +$PHPMAILER_LANG['file_access'] = '無法存取檔案:';
  18 +$PHPMAILER_LANG['file_open'] = '檔案錯誤:無法開啟檔案:';
  19 +$PHPMAILER_LANG['from_failed'] = '發送地址錯誤:';
  20 +$PHPMAILER_LANG['instantiate'] = '未知函數呼叫。';
  21 +$PHPMAILER_LANG['invalid_address'] = '因為電子郵件地址無效,無法傳送: ';
  22 +$PHPMAILER_LANG['mailer_not_supported'] = '不支援的發信客戶端。';
  23 +$PHPMAILER_LANG['provide_address'] = '必須提供至少一個收件人地址。';
  24 +$PHPMAILER_LANG['recipients_failed'] = 'SMTP 錯誤:以下收件人地址錯誤:';
  25 +$PHPMAILER_LANG['signing'] = '電子簽章錯誤: ';
  26 +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP 連線失敗';
  27 +$PHPMAILER_LANG['smtp_error'] = 'SMTP 伺服器錯誤: ';
  28 +$PHPMAILER_LANG['variable_set'] = '無法設定或重設變數: ';
  29 +$PHPMAILER_LANG['extension_missing'] = '遺失模組 Extension: ';
  1 +<?php
  2 +
  3 +/**
  4 + * Simplified Chinese PHPMailer language file: refer to English translation for definitive list
  5 + * @package PHPMailer
  6 + * @author liqwei <liqwei@liqwei.com>
  7 + * @author young <masxy@foxmail.com>
  8 + * @author Teddysun <i@teddysun.com>
  9 + */
  10 +
  11 +$PHPMAILER_LANG['authenticate'] = 'SMTP 错误:登录失败。';
  12 +$PHPMAILER_LANG['buggy_php'] = '您的 PHP 版本存在漏洞,可能会导致消息损坏。为修复此问题,请切换到使用 SMTP 发送,在您的 php.ini 中禁用 mail.add_x_header 选项。切换到 MacOS 或 Linux,或将您的 PHP 升级到 7.0.17+ 或 7.1.3+ 版本。';
  13 +$PHPMAILER_LANG['connect_host'] = 'SMTP 错误:无法连接到 SMTP 主机。';
  14 +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP 错误:数据不被接受。';
  15 +$PHPMAILER_LANG['empty_message'] = '邮件正文为空。';
  16 +$PHPMAILER_LANG['encoding'] = '未知编码:';
  17 +$PHPMAILER_LANG['execute'] = '无法执行:';
  18 +$PHPMAILER_LANG['extension_missing'] = '缺少扩展名:';
  19 +$PHPMAILER_LANG['file_access'] = '无法访问文件:';
  20 +$PHPMAILER_LANG['file_open'] = '文件错误:无法打开文件:';
  21 +$PHPMAILER_LANG['from_failed'] = '发送地址错误:';
  22 +$PHPMAILER_LANG['instantiate'] = '未知函数调用。';
  23 +$PHPMAILER_LANG['invalid_address'] = '发送失败,电子邮箱地址是无效的:';
  24 +$PHPMAILER_LANG['mailer_not_supported'] = '发信客户端不被支持。';
  25 +$PHPMAILER_LANG['provide_address'] = '必须提供至少一个收件人地址。';
  26 +$PHPMAILER_LANG['recipients_failed'] = 'SMTP 错误:收件人地址错误:';
  27 +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP服务器连接失败。';
  28 +$PHPMAILER_LANG['smtp_error'] = 'SMTP服务器出错:';
  29 +$PHPMAILER_LANG['variable_set'] = '无法设置或重置变量:';
  30 +$PHPMAILER_LANG['invalid_header'] = '无效的标题名称或值';
  31 +$PHPMAILER_LANG['invalid_hostentry'] = '无效的hostentry: ';
  32 +$PHPMAILER_LANG['invalid_host'] = '无效的主机:';
  33 +$PHPMAILER_LANG['signing'] = '签名错误:';
  34 +$PHPMAILER_LANG['smtp_code'] = 'SMTP代码: ';
  35 +$PHPMAILER_LANG['smtp_code_ex'] = '附加SMTP信息: ';
  36 +$PHPMAILER_LANG['smtp_detail'] = '详情:';
  1 +<?php
  2 +
  3 +/**
  4 + * PHPMailer - PHP email creation and transport class.
  5 + * PHP Version 5.5.
  6 + *
  7 + * @see https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
  8 + *
  9 + * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
  10 + * @author Jim Jagielski (jimjag) <jimjag@gmail.com>
  11 + * @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
  12 + * @author Brent R. Matzelle (original founder)
  13 + * @copyright 2012 - 2023 Marcus Bointon
  14 + * @copyright 2010 - 2012 Jim Jagielski
  15 + * @copyright 2004 - 2009 Andy Prevost
  16 + * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
  17 + * @note This program is distributed in the hope that it will be useful - WITHOUT
  18 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  19 + * FITNESS FOR A PARTICULAR PURPOSE.
  20 + */
  21 +
  22 +namespace Lib\phpmailer\src;
  23 +
  24 +/**
  25 + * Configure PHPMailer with DSN string.
  26 + *
  27 + * @see https://en.wikipedia.org/wiki/Data_source_name
  28 + *
  29 + * @author Oleg Voronkovich <oleg-voronkovich@yandex.ru>
  30 + */
  31 +class DSNConfigurator
  32 +{
  33 + /**
  34 + * Create new PHPMailer instance configured by DSN.
  35 + *
  36 + * @param string $dsn DSN
  37 + * @param bool $exceptions Should we throw external exceptions?
  38 + *
  39 + * @return PHPMailer
  40 + */
  41 + public static function mailer($dsn, $exceptions = null)
  42 + {
  43 + static $configurator = null;
  44 +
  45 + if (null === $configurator) {
  46 + $configurator = new DSNConfigurator();
  47 + }
  48 +
  49 + return $configurator->configure(new PHPMailer($exceptions), $dsn);
  50 + }
  51 +
  52 + /**
  53 + * Configure PHPMailer instance with DSN string.
  54 + *
  55 + * @param PHPMailer $mailer PHPMailer instance
  56 + * @param string $dsn DSN
  57 + *
  58 + * @return PHPMailer
  59 + */
  60 + public function configure(PHPMailer $mailer, $dsn)
  61 + {
  62 + $config = $this->parseDSN($dsn);
  63 +
  64 + $this->applyConfig($mailer, $config);
  65 +
  66 + return $mailer;
  67 + }
  68 +
  69 + /**
  70 + * Parse DSN string.
  71 + *
  72 + * @param string $dsn DSN
  73 + *
  74 + * @throws Exception If DSN is malformed
  75 + *
  76 + * @return array Configuration
  77 + */
  78 + private function parseDSN($dsn)
  79 + {
  80 + $config = $this->parseUrl($dsn);
  81 +
  82 + if (false === $config || !isset($config['scheme']) || !isset($config['host'])) {
  83 + throw new Exception('Malformed DSN');
  84 + }
  85 +
  86 + if (isset($config['query'])) {
  87 + parse_str($config['query'], $config['query']);
  88 + }
  89 +
  90 + return $config;
  91 + }
  92 +
  93 + /**
  94 + * Apply configuration to mailer.
  95 + *
  96 + * @param PHPMailer $mailer PHPMailer instance
  97 + * @param array $config Configuration
  98 + *
  99 + * @throws Exception If scheme is invalid
  100 + */
  101 + private function applyConfig(PHPMailer $mailer, $config)
  102 + {
  103 + switch ($config['scheme']) {
  104 + case 'mail':
  105 + $mailer->isMail();
  106 + break;
  107 + case 'sendmail':
  108 + $mailer->isSendmail();
  109 + break;
  110 + case 'qmail':
  111 + $mailer->isQmail();
  112 + break;
  113 + case 'smtp':
  114 + case 'smtps':
  115 + $mailer->isSMTP();
  116 + $this->configureSMTP($mailer, $config);
  117 + break;
  118 + default:
  119 + throw new Exception(
  120 + sprintf(
  121 + 'Invalid scheme: "%s". Allowed values: "mail", "sendmail", "qmail", "smtp", "smtps".',
  122 + $config['scheme']
  123 + )
  124 + );
  125 + }
  126 +
  127 + if (isset($config['query'])) {
  128 + $this->configureOptions($mailer, $config['query']);
  129 + }
  130 + }
  131 +
  132 + /**
  133 + * Configure SMTP.
  134 + *
  135 + * @param PHPMailer $mailer PHPMailer instance
  136 + * @param array $config Configuration
  137 + */
  138 + private function configureSMTP($mailer, $config)
  139 + {
  140 + $isSMTPS = 'smtps' === $config['scheme'];
  141 +
  142 + if ($isSMTPS) {
  143 + $mailer->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
  144 + }
  145 +
  146 + $mailer->Host = $config['host'];
  147 +
  148 + if (isset($config['port'])) {
  149 + $mailer->Port = $config['port'];
  150 + } elseif ($isSMTPS) {
  151 + $mailer->Port = SMTP::DEFAULT_SECURE_PORT;
  152 + }
  153 +
  154 + $mailer->SMTPAuth = isset($config['user']) || isset($config['pass']);
  155 +
  156 + if (isset($config['user'])) {
  157 + $mailer->Username = $config['user'];
  158 + }
  159 +
  160 + if (isset($config['pass'])) {
  161 + $mailer->Password = $config['pass'];
  162 + }
  163 + }
  164 +
  165 + /**
  166 + * Configure options.
  167 + *
  168 + * @param PHPMailer $mailer PHPMailer instance
  169 + * @param array $options Options
  170 + *
  171 + * @throws Exception If option is unknown
  172 + */
  173 + private function configureOptions(PHPMailer $mailer, $options)
  174 + {
  175 + $allowedOptions = get_object_vars($mailer);
  176 +
  177 + unset($allowedOptions['Mailer']);
  178 + unset($allowedOptions['SMTPAuth']);
  179 + unset($allowedOptions['Username']);
  180 + unset($allowedOptions['Password']);
  181 + unset($allowedOptions['Hostname']);
  182 + unset($allowedOptions['Port']);
  183 + unset($allowedOptions['ErrorInfo']);
  184 +
  185 + $allowedOptions = \array_keys($allowedOptions);
  186 +
  187 + foreach ($options as $key => $value) {
  188 + if (!in_array($key, $allowedOptions)) {
  189 + throw new Exception(
  190 + sprintf(
  191 + 'Unknown option: "%s". Allowed values: "%s"',
  192 + $key,
  193 + implode('", "', $allowedOptions)
  194 + )
  195 + );
  196 + }
  197 +
  198 + switch ($key) {
  199 + case 'AllowEmpty':
  200 + case 'SMTPAutoTLS':
  201 + case 'SMTPKeepAlive':
  202 + case 'SingleTo':
  203 + case 'UseSendmailOptions':
  204 + case 'do_verp':
  205 + case 'DKIM_copyHeaderFields':
  206 + $mailer->$key = (bool) $value;
  207 + break;
  208 + case 'Priority':
  209 + case 'SMTPDebug':
  210 + case 'WordWrap':
  211 + $mailer->$key = (int) $value;
  212 + break;
  213 + default:
  214 + $mailer->$key = $value;
  215 + break;
  216 + }
  217 + }
  218 + }
  219 +
  220 + /**
  221 + * Parse a URL.
  222 + * Wrapper for the built-in parse_url function to work around a bug in PHP 5.5.
  223 + *
  224 + * @param string $url URL
  225 + *
  226 + * @return array|false
  227 + */
  228 + protected function parseUrl($url)
  229 + {
  230 + if (\PHP_VERSION_ID >= 50600 || false === strpos($url, '?')) {
  231 + return parse_url($url);
  232 + }
  233 +
  234 + $chunks = explode('?', $url);
  235 + if (is_array($chunks)) {
  236 + $result = parse_url($chunks[0]);
  237 + if (is_array($result)) {
  238 + $result['query'] = $chunks[1];
  239 + }
  240 + return $result;
  241 + }
  242 +
  243 + return false;
  244 + }
  245 +}
  1 +<?php
  2 +
  3 +/**
  4 + * PHPMailer Exception class.
  5 + * PHP Version 5.5.
  6 + *
  7 + * @see https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
  8 + *
  9 + * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
  10 + * @author Jim Jagielski (jimjag) <jimjag@gmail.com>
  11 + * @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
  12 + * @author Brent R. Matzelle (original founder)
  13 + * @copyright 2012 - 2020 Marcus Bointon
  14 + * @copyright 2010 - 2012 Jim Jagielski
  15 + * @copyright 2004 - 2009 Andy Prevost
  16 + * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
  17 + * @note This program is distributed in the hope that it will be useful - WITHOUT
  18 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  19 + * FITNESS FOR A PARTICULAR PURPOSE.
  20 + */
  21 +
  22 +namespace Lib\phpmailer\src;
  23 +
  24 +/**
  25 + * PHPMailer exception handler.
  26 + *
  27 + * @author Marcus Bointon <phpmailer@synchromedia.co.uk>
  28 + */
  29 +class Exception extends \Exception
  30 +{
  31 + /**
  32 + * Prettify error message output.
  33 + *
  34 + * @return string
  35 + */
  36 + public function errorMessage()
  37 + {
  38 + return '<strong>' . htmlspecialchars($this->getMessage(), ENT_COMPAT | ENT_HTML401) . "</strong><br />\n";
  39 + }
  40 +}
  1 +<?php
  2 +
  3 +/**
  4 + * PHPMailer - PHP email creation and transport class.
  5 + * PHP Version 5.5.
  6 + *
  7 + * @see https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
  8 + *
  9 + * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
  10 + * @author Jim Jagielski (jimjag) <jimjag@gmail.com>
  11 + * @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
  12 + * @author Brent R. Matzelle (original founder)
  13 + * @copyright 2012 - 2020 Marcus Bointon
  14 + * @copyright 2010 - 2012 Jim Jagielski
  15 + * @copyright 2004 - 2009 Andy Prevost
  16 + * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
  17 + * @note This program is distributed in the hope that it will be useful - WITHOUT
  18 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  19 + * FITNESS FOR A PARTICULAR PURPOSE.
  20 + */
  21 +
  22 +namespace Lib\phpmailer\src;
  23 +
  24 +use League\OAuth2\Client\Grant\RefreshToken;
  25 +use League\OAuth2\Client\Provider\AbstractProvider;
  26 +use League\OAuth2\Client\Token\AccessToken;
  27 +
  28 +/**
  29 + * OAuth - OAuth2 authentication wrapper class.
  30 + * Uses the oauth2-client package from the League of Extraordinary Packages.
  31 + *
  32 + * @see http://oauth2-client.thephpleague.com
  33 + *
  34 + * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
  35 + */
  36 +class OAuth implements OAuthTokenProvider
  37 +{
  38 + /**
  39 + * An instance of the League OAuth Client Provider.
  40 + *
  41 + * @var AbstractProvider
  42 + */
  43 + protected $provider;
  44 +
  45 + /**
  46 + * The current OAuth access token.
  47 + *
  48 + * @var AccessToken
  49 + */
  50 + protected $oauthToken;
  51 +
  52 + /**
  53 + * The user's email address, usually used as the login ID
  54 + * and also the from address when sending email.
  55 + *
  56 + * @var string
  57 + */
  58 + protected $oauthUserEmail = '';
  59 +
  60 + /**
  61 + * The client secret, generated in the app definition of the service you're connecting to.
  62 + *
  63 + * @var string
  64 + */
  65 + protected $oauthClientSecret = '';
  66 +
  67 + /**
  68 + * The client ID, generated in the app definition of the service you're connecting to.
  69 + *
  70 + * @var string
  71 + */
  72 + protected $oauthClientId = '';
  73 +
  74 + /**
  75 + * The refresh token, used to obtain new AccessTokens.
  76 + *
  77 + * @var string
  78 + */
  79 + protected $oauthRefreshToken = '';
  80 +
  81 + /**
  82 + * OAuth constructor.
  83 + *
  84 + * @param array $options Associative array containing
  85 + * `provider`, `userName`, `clientSecret`, `clientId` and `refreshToken` elements
  86 + */
  87 + public function __construct($options)
  88 + {
  89 + $this->provider = $options['provider'];
  90 + $this->oauthUserEmail = $options['userName'];
  91 + $this->oauthClientSecret = $options['clientSecret'];
  92 + $this->oauthClientId = $options['clientId'];
  93 + $this->oauthRefreshToken = $options['refreshToken'];
  94 + }
  95 +
  96 + /**
  97 + * Get a new RefreshToken.
  98 + *
  99 + * @return RefreshToken
  100 + */
  101 + protected function getGrant()
  102 + {
  103 + return new RefreshToken();
  104 + }
  105 +
  106 + /**
  107 + * Get a new AccessToken.
  108 + *
  109 + * @return AccessToken
  110 + */
  111 + protected function getToken()
  112 + {
  113 + return $this->provider->getAccessToken(
  114 + $this->getGrant(),
  115 + ['refresh_token' => $this->oauthRefreshToken]
  116 + );
  117 + }
  118 +
  119 + /**
  120 + * Generate a base64-encoded OAuth token.
  121 + *
  122 + * @return string
  123 + */
  124 + public function getOauth64()
  125 + {
  126 + //Get a new token if it's not available or has expired
  127 + if (null === $this->oauthToken || $this->oauthToken->hasExpired()) {
  128 + $this->oauthToken = $this->getToken();
  129 + }
  130 +
  131 + return base64_encode(
  132 + 'user=' .
  133 + $this->oauthUserEmail .
  134 + "\001auth=Bearer " .
  135 + $this->oauthToken .
  136 + "\001\001"
  137 + );
  138 + }
  139 +}
  1 +<?php
  2 +
  3 +/**
  4 + * PHPMailer - PHP email creation and transport class.
  5 + * PHP Version 5.5.
  6 + *
  7 + * @see https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
  8 + *
  9 + * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
  10 + * @author Jim Jagielski (jimjag) <jimjag@gmail.com>
  11 + * @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
  12 + * @author Brent R. Matzelle (original founder)
  13 + * @copyright 2012 - 2020 Marcus Bointon
  14 + * @copyright 2010 - 2012 Jim Jagielski
  15 + * @copyright 2004 - 2009 Andy Prevost
  16 + * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
  17 + * @note This program is distributed in the hope that it will be useful - WITHOUT
  18 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  19 + * FITNESS FOR A PARTICULAR PURPOSE.
  20 + */
  21 +
  22 +namespace Lib\phpmailer\src;
  23 +
  24 +/**
  25 + * OAuthTokenProvider - OAuth2 token provider interface.
  26 + * Provides base64 encoded OAuth2 auth strings for SMTP authentication.
  27 + *
  28 + * @see OAuth
  29 + * @see SMTP::authenticate()
  30 + *
  31 + * @author Peter Scopes (pdscopes)
  32 + * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
  33 + */
  34 +interface OAuthTokenProvider
  35 +{
  36 + /**
  37 + * Generate a base64-encoded OAuth token ensuring that the access token has not expired.
  38 + * The string to be base 64 encoded should be in the form:
  39 + * "user=<user_email_address>\001auth=Bearer <access_token>\001\001"
  40 + *
  41 + * @return string
  42 + */
  43 + public function getOauth64();
  44 +}
此 diff 太大无法显示。
  1 +<?php
  2 +
  3 +/**
  4 + * PHPMailer POP-Before-SMTP Authentication Class.
  5 + * PHP Version 5.5.
  6 + *
  7 + * @see https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
  8 + *
  9 + * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
  10 + * @author Jim Jagielski (jimjag) <jimjag@gmail.com>
  11 + * @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
  12 + * @author Brent R. Matzelle (original founder)
  13 + * @copyright 2012 - 2020 Marcus Bointon
  14 + * @copyright 2010 - 2012 Jim Jagielski
  15 + * @copyright 2004 - 2009 Andy Prevost
  16 + * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
  17 + * @note This program is distributed in the hope that it will be useful - WITHOUT
  18 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  19 + * FITNESS FOR A PARTICULAR PURPOSE.
  20 + */
  21 +
  22 +namespace Lib\phpmailer\src;
  23 +
  24 +/**
  25 + * PHPMailer POP-Before-SMTP Authentication Class.
  26 + * Specifically for PHPMailer to use for RFC1939 POP-before-SMTP authentication.
  27 + * 1) This class does not support APOP authentication.
  28 + * 2) Opening and closing lots of POP3 connections can be quite slow. If you need
  29 + * to send a batch of emails then just perform the authentication once at the start,
  30 + * and then loop through your mail sending script. Providing this process doesn't
  31 + * take longer than the verification period lasts on your POP3 server, you should be fine.
  32 + * 3) This is really ancient technology; you should only need to use it to talk to very old systems.
  33 + * 4) This POP3 class is deliberately lightweight and incomplete, implementing just
  34 + * enough to do authentication.
  35 + * If you want a more complete class there are other POP3 classes for PHP available.
  36 + *
  37 + * @author Richard Davey (original author) <rich@corephp.co.uk>
  38 + * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
  39 + * @author Jim Jagielski (jimjag) <jimjag@gmail.com>
  40 + * @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
  41 + */
  42 +class POP3
  43 +{
  44 + /**
  45 + * The POP3 PHPMailer Version number.
  46 + *
  47 + * @var string
  48 + */
  49 + const VERSION = '6.9.1';
  50 +
  51 + /**
  52 + * Default POP3 port number.
  53 + *
  54 + * @var int
  55 + */
  56 + const DEFAULT_PORT = 110;
  57 +
  58 + /**
  59 + * Default timeout in seconds.
  60 + *
  61 + * @var int
  62 + */
  63 + const DEFAULT_TIMEOUT = 30;
  64 +
  65 + /**
  66 + * POP3 class debug output mode.
  67 + * Debug output level.
  68 + * Options:
  69 + * @see POP3::DEBUG_OFF: No output
  70 + * @see POP3::DEBUG_SERVER: Server messages, connection/server errors
  71 + * @see POP3::DEBUG_CLIENT: Client and Server messages, connection/server errors
  72 + *
  73 + * @var int
  74 + */
  75 + public $do_debug = self::DEBUG_OFF;
  76 +
  77 + /**
  78 + * POP3 mail server hostname.
  79 + *
  80 + * @var string
  81 + */
  82 + public $host;
  83 +
  84 + /**
  85 + * POP3 port number.
  86 + *
  87 + * @var int
  88 + */
  89 + public $port;
  90 +
  91 + /**
  92 + * POP3 Timeout Value in seconds.
  93 + *
  94 + * @var int
  95 + */
  96 + public $tval;
  97 +
  98 + /**
  99 + * POP3 username.
  100 + *
  101 + * @var string
  102 + */
  103 + public $username;
  104 +
  105 + /**
  106 + * POP3 password.
  107 + *
  108 + * @var string
  109 + */
  110 + public $password;
  111 +
  112 + /**
  113 + * Resource handle for the POP3 connection socket.
  114 + *
  115 + * @var resource
  116 + */
  117 + protected $pop_conn;
  118 +
  119 + /**
  120 + * Are we connected?
  121 + *
  122 + * @var bool
  123 + */
  124 + protected $connected = false;
  125 +
  126 + /**
  127 + * Error container.
  128 + *
  129 + * @var array
  130 + */
  131 + protected $errors = [];
  132 +
  133 + /**
  134 + * Line break constant.
  135 + */
  136 + const LE = "\r\n";
  137 +
  138 + /**
  139 + * Debug level for no output.
  140 + *
  141 + * @var int
  142 + */
  143 + const DEBUG_OFF = 0;
  144 +
  145 + /**
  146 + * Debug level to show server -> client messages
  147 + * also shows clients connection errors or errors from server
  148 + *
  149 + * @var int
  150 + */
  151 + const DEBUG_SERVER = 1;
  152 +
  153 + /**
  154 + * Debug level to show client -> server and server -> client messages.
  155 + *
  156 + * @var int
  157 + */
  158 + const DEBUG_CLIENT = 2;
  159 +
  160 + /**
  161 + * Simple static wrapper for all-in-one POP before SMTP.
  162 + *
  163 + * @param string $host The hostname to connect to
  164 + * @param int|bool $port The port number to connect to
  165 + * @param int|bool $timeout The timeout value
  166 + * @param string $username
  167 + * @param string $password
  168 + * @param int $debug_level
  169 + *
  170 + * @return bool
  171 + */
  172 + public static function popBeforeSmtp(
  173 + $host,
  174 + $port = false,
  175 + $timeout = false,
  176 + $username = '',
  177 + $password = '',
  178 + $debug_level = 0
  179 + ) {
  180 + $pop = new self();
  181 +
  182 + return $pop->authorise($host, $port, $timeout, $username, $password, $debug_level);
  183 + }
  184 +
  185 + /**
  186 + * Authenticate with a POP3 server.
  187 + * A connect, login, disconnect sequence
  188 + * appropriate for POP-before SMTP authorisation.
  189 + *
  190 + * @param string $host The hostname to connect to
  191 + * @param int|bool $port The port number to connect to
  192 + * @param int|bool $timeout The timeout value
  193 + * @param string $username
  194 + * @param string $password
  195 + * @param int $debug_level
  196 + *
  197 + * @return bool
  198 + */
  199 + public function authorise($host, $port = false, $timeout = false, $username = '', $password = '', $debug_level = 0)
  200 + {
  201 + $this->host = $host;
  202 + //If no port value provided, use default
  203 + if (false === $port) {
  204 + $this->port = static::DEFAULT_PORT;
  205 + } else {
  206 + $this->port = (int) $port;
  207 + }
  208 + //If no timeout value provided, use default
  209 + if (false === $timeout) {
  210 + $this->tval = static::DEFAULT_TIMEOUT;
  211 + } else {
  212 + $this->tval = (int) $timeout;
  213 + }
  214 + $this->do_debug = $debug_level;
  215 + $this->username = $username;
  216 + $this->password = $password;
  217 + //Reset the error log
  218 + $this->errors = [];
  219 + //Connect
  220 + $result = $this->connect($this->host, $this->port, $this->tval);
  221 + if ($result) {
  222 + $login_result = $this->login($this->username, $this->password);
  223 + if ($login_result) {
  224 + $this->disconnect();
  225 +
  226 + return true;
  227 + }
  228 + }
  229 + //We need to disconnect regardless of whether the login succeeded
  230 + $this->disconnect();
  231 +
  232 + return false;
  233 + }
  234 +
  235 + /**
  236 + * Connect to a POP3 server.
  237 + *
  238 + * @param string $host
  239 + * @param int|bool $port
  240 + * @param int $tval
  241 + *
  242 + * @return bool
  243 + */
  244 + public function connect($host, $port = false, $tval = 30)
  245 + {
  246 + //Are we already connected?
  247 + if ($this->connected) {
  248 + return true;
  249 + }
  250 +
  251 + //On Windows this will raise a PHP Warning error if the hostname doesn't exist.
  252 + //Rather than suppress it with @fsockopen, capture it cleanly instead
  253 + set_error_handler([$this, 'catchWarning']);
  254 +
  255 + if (false === $port) {
  256 + $port = static::DEFAULT_PORT;
  257 + }
  258 +
  259 + //Connect to the POP3 server
  260 + $errno = 0;
  261 + $errstr = '';
  262 + $this->pop_conn = fsockopen(
  263 + $host, //POP3 Host
  264 + $port, //Port #
  265 + $errno, //Error Number
  266 + $errstr, //Error Message
  267 + $tval
  268 + ); //Timeout (seconds)
  269 + //Restore the error handler
  270 + restore_error_handler();
  271 +
  272 + //Did we connect?
  273 + if (false === $this->pop_conn) {
  274 + //It would appear not...
  275 + $this->setError(
  276 + "Failed to connect to server $host on port $port. errno: $errno; errstr: $errstr"
  277 + );
  278 +
  279 + return false;
  280 + }
  281 +
  282 + //Increase the stream time-out
  283 + stream_set_timeout($this->pop_conn, $tval, 0);
  284 +
  285 + //Get the POP3 server response
  286 + $pop3_response = $this->getResponse();
  287 + //Check for the +OK
  288 + if ($this->checkResponse($pop3_response)) {
  289 + //The connection is established and the POP3 server is talking
  290 + $this->connected = true;
  291 +
  292 + return true;
  293 + }
  294 +
  295 + return false;
  296 + }
  297 +
  298 + /**
  299 + * Log in to the POP3 server.
  300 + * Does not support APOP (RFC 2828, 4949).
  301 + *
  302 + * @param string $username
  303 + * @param string $password
  304 + *
  305 + * @return bool
  306 + */
  307 + public function login($username = '', $password = '')
  308 + {
  309 + if (!$this->connected) {
  310 + $this->setError('Not connected to POP3 server');
  311 + return false;
  312 + }
  313 + if (empty($username)) {
  314 + $username = $this->username;
  315 + }
  316 + if (empty($password)) {
  317 + $password = $this->password;
  318 + }
  319 +
  320 + //Send the Username
  321 + $this->sendString("USER $username" . static::LE);
  322 + $pop3_response = $this->getResponse();
  323 + if ($this->checkResponse($pop3_response)) {
  324 + //Send the Password
  325 + $this->sendString("PASS $password" . static::LE);
  326 + $pop3_response = $this->getResponse();
  327 + if ($this->checkResponse($pop3_response)) {
  328 + return true;
  329 + }
  330 + }
  331 +
  332 + return false;
  333 + }
  334 +
  335 + /**
  336 + * Disconnect from the POP3 server.
  337 + */
  338 + public function disconnect()
  339 + {
  340 + // If could not connect at all, no need to disconnect
  341 + if ($this->pop_conn === false) {
  342 + return;
  343 + }
  344 +
  345 + $this->sendString('QUIT' . static::LE);
  346 +
  347 + // RFC 1939 shows POP3 server sending a +OK response to the QUIT command.
  348 + // Try to get it. Ignore any failures here.
  349 + try {
  350 + $this->getResponse();
  351 + } catch (Exception $e) {
  352 + //Do nothing
  353 + }
  354 +
  355 + //The QUIT command may cause the daemon to exit, which will kill our connection
  356 + //So ignore errors here
  357 + try {
  358 + @fclose($this->pop_conn);
  359 + } catch (Exception $e) {
  360 + //Do nothing
  361 + }
  362 +
  363 + // Clean up attributes.
  364 + $this->connected = false;
  365 + $this->pop_conn = false;
  366 + }
  367 +
  368 + /**
  369 + * Get a response from the POP3 server.
  370 + *
  371 + * @param int $size The maximum number of bytes to retrieve
  372 + *
  373 + * @return string
  374 + */
  375 + protected function getResponse($size = 128)
  376 + {
  377 + $response = fgets($this->pop_conn, $size);
  378 + if ($this->do_debug >= self::DEBUG_SERVER) {
  379 + echo 'Server -> Client: ', $response;
  380 + }
  381 +
  382 + return $response;
  383 + }
  384 +
  385 + /**
  386 + * Send raw data to the POP3 server.
  387 + *
  388 + * @param string $string
  389 + *
  390 + * @return int
  391 + */
  392 + protected function sendString($string)
  393 + {
  394 + if ($this->pop_conn) {
  395 + if ($this->do_debug >= self::DEBUG_CLIENT) { //Show client messages when debug >= 2
  396 + echo 'Client -> Server: ', $string;
  397 + }
  398 +
  399 + return fwrite($this->pop_conn, $string, strlen($string));
  400 + }
  401 +
  402 + return 0;
  403 + }
  404 +
  405 + /**
  406 + * Checks the POP3 server response.
  407 + * Looks for for +OK or -ERR.
  408 + *
  409 + * @param string $string
  410 + *
  411 + * @return bool
  412 + */
  413 + protected function checkResponse($string)
  414 + {
  415 + if (strpos($string, '+OK') !== 0) {
  416 + $this->setError("Server reported an error: $string");
  417 +
  418 + return false;
  419 + }
  420 +
  421 + return true;
  422 + }
  423 +
  424 + /**
  425 + * Add an error to the internal error store.
  426 + * Also display debug output if it's enabled.
  427 + *
  428 + * @param string $error
  429 + */
  430 + protected function setError($error)
  431 + {
  432 + $this->errors[] = $error;
  433 + if ($this->do_debug >= self::DEBUG_SERVER) {
  434 + echo '<pre>';
  435 + foreach ($this->errors as $e) {
  436 + print_r($e);
  437 + }
  438 + echo '</pre>';
  439 + }
  440 + }
  441 +
  442 + /**
  443 + * Get an array of error messages, if any.
  444 + *
  445 + * @return array
  446 + */
  447 + public function getErrors()
  448 + {
  449 + return $this->errors;
  450 + }
  451 +
  452 + /**
  453 + * POP3 connection error handler.
  454 + *
  455 + * @param int $errno
  456 + * @param string $errstr
  457 + * @param string $errfile
  458 + * @param int $errline
  459 + */
  460 + protected function catchWarning($errno, $errstr, $errfile, $errline)
  461 + {
  462 + $this->setError(
  463 + 'Connecting to the POP3 server raised a PHP warning:' .
  464 + "errno: $errno errstr: $errstr; errfile: $errfile; errline: $errline"
  465 + );
  466 + }
  467 +}
  1 +<?php
  2 +
  3 +/**
  4 + * PHPMailer RFC821 SMTP email transport class.
  5 + * PHP Version 5.5.
  6 + *
  7 + * @see https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
  8 + *
  9 + * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
  10 + * @author Jim Jagielski (jimjag) <jimjag@gmail.com>
  11 + * @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
  12 + * @author Brent R. Matzelle (original founder)
  13 + * @copyright 2012 - 2020 Marcus Bointon
  14 + * @copyright 2010 - 2012 Jim Jagielski
  15 + * @copyright 2004 - 2009 Andy Prevost
  16 + * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
  17 + * @note This program is distributed in the hope that it will be useful - WITHOUT
  18 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  19 + * FITNESS FOR A PARTICULAR PURPOSE.
  20 + */
  21 +
  22 +namespace Lib\phpmailer\src;
  23 +
  24 +/**
  25 + * PHPMailer RFC821 SMTP email transport class.
  26 + * Implements RFC 821 SMTP commands and provides some utility methods for sending mail to an SMTP server.
  27 + *
  28 + * @author Chris Ryan
  29 + * @author Marcus Bointon <phpmailer@synchromedia.co.uk>
  30 + */
  31 +class SMTP
  32 +{
  33 + /**
  34 + * The PHPMailer SMTP version number.
  35 + *
  36 + * @var string
  37 + */
  38 + const VERSION = '6.9.1';
  39 +
  40 + /**
  41 + * SMTP line break constant.
  42 + *
  43 + * @var string
  44 + */
  45 + const LE = "\r\n";
  46 +
  47 + /**
  48 + * The SMTP port to use if one is not specified.
  49 + *
  50 + * @var int
  51 + */
  52 + const DEFAULT_PORT = 25;
  53 +
  54 + /**
  55 + * The SMTPs port to use if one is not specified.
  56 + *
  57 + * @var int
  58 + */
  59 + const DEFAULT_SECURE_PORT = 465;
  60 +
  61 + /**
  62 + * The maximum line length allowed by RFC 5321 section 4.5.3.1.6,
  63 + * *excluding* a trailing CRLF break.
  64 + *
  65 + * @see https://tools.ietf.org/html/rfc5321#section-4.5.3.1.6
  66 + *
  67 + * @var int
  68 + */
  69 + const MAX_LINE_LENGTH = 998;
  70 +
  71 + /**
  72 + * The maximum line length allowed for replies in RFC 5321 section 4.5.3.1.5,
  73 + * *including* a trailing CRLF line break.
  74 + *
  75 + * @see https://tools.ietf.org/html/rfc5321#section-4.5.3.1.5
  76 + *
  77 + * @var int
  78 + */
  79 + const MAX_REPLY_LENGTH = 512;
  80 +
  81 + /**
  82 + * Debug level for no output.
  83 + *
  84 + * @var int
  85 + */
  86 + const DEBUG_OFF = 0;
  87 +
  88 + /**
  89 + * Debug level to show client -> server messages.
  90 + *
  91 + * @var int
  92 + */
  93 + const DEBUG_CLIENT = 1;
  94 +
  95 + /**
  96 + * Debug level to show client -> server and server -> client messages.
  97 + *
  98 + * @var int
  99 + */
  100 + const DEBUG_SERVER = 2;
  101 +
  102 + /**
  103 + * Debug level to show connection status, client -> server and server -> client messages.
  104 + *
  105 + * @var int
  106 + */
  107 + const DEBUG_CONNECTION = 3;
  108 +
  109 + /**
  110 + * Debug level to show all messages.
  111 + *
  112 + * @var int
  113 + */
  114 + const DEBUG_LOWLEVEL = 4;
  115 +
  116 + /**
  117 + * Debug output level.
  118 + * Options:
  119 + * * self::DEBUG_OFF (`0`) No debug output, default
  120 + * * self::DEBUG_CLIENT (`1`) Client commands
  121 + * * self::DEBUG_SERVER (`2`) Client commands and server responses
  122 + * * self::DEBUG_CONNECTION (`3`) As DEBUG_SERVER plus connection status
  123 + * * self::DEBUG_LOWLEVEL (`4`) Low-level data output, all messages.
  124 + *
  125 + * @var int
  126 + */
  127 + public $do_debug = self::DEBUG_OFF;
  128 +
  129 + /**
  130 + * How to handle debug output.
  131 + * Options:
  132 + * * `echo` Output plain-text as-is, appropriate for CLI
  133 + * * `html` Output escaped, line breaks converted to `<br>`, appropriate for browser output
  134 + * * `error_log` Output to error log as configured in php.ini
  135 + * Alternatively, you can provide a callable expecting two params: a message string and the debug level:
  136 + *
  137 + * ```php
  138 + * $smtp->Debugoutput = function($str, $level) {echo "debug level $level; message: $str";};
  139 + * ```
  140 + *
  141 + * Alternatively, you can pass in an instance of a PSR-3 compatible logger, though only `debug`
  142 + * level output is used:
  143 + *
  144 + * ```php
  145 + * $mail->Debugoutput = new myPsr3Logger;
  146 + * ```
  147 + *
  148 + * @var string|callable|\Psr\Log\LoggerInterface
  149 + */
  150 + public $Debugoutput = 'echo';
  151 +
  152 + /**
  153 + * Whether to use VERP.
  154 + *
  155 + * @see http://en.wikipedia.org/wiki/Variable_envelope_return_path
  156 + * @see http://www.postfix.org/VERP_README.html Info on VERP
  157 + *
  158 + * @var bool
  159 + */
  160 + public $do_verp = false;
  161 +
  162 + /**
  163 + * The timeout value for connection, in seconds.
  164 + * Default of 5 minutes (300sec) is from RFC2821 section 4.5.3.2.
  165 + * This needs to be quite high to function correctly with hosts using greetdelay as an anti-spam measure.
  166 + *
  167 + * @see http://tools.ietf.org/html/rfc2821#section-4.5.3.2
  168 + *
  169 + * @var int
  170 + */
  171 + public $Timeout = 300;
  172 +
  173 + /**
  174 + * How long to wait for commands to complete, in seconds.
  175 + * Default of 5 minutes (300sec) is from RFC2821 section 4.5.3.2.
  176 + *
  177 + * @var int
  178 + */
  179 + public $Timelimit = 300;
  180 +
  181 + /**
  182 + * Patterns to extract an SMTP transaction id from reply to a DATA command.
  183 + * The first capture group in each regex will be used as the ID.
  184 + * MS ESMTP returns the message ID, which may not be correct for internal tracking.
  185 + *
  186 + * @var string[]
  187 + */
  188 + protected $smtp_transaction_id_patterns = [
  189 + 'exim' => '/[\d]{3} OK id=(.*)/',
  190 + 'sendmail' => '/[\d]{3} 2.0.0 (.*) Message/',
  191 + 'postfix' => '/[\d]{3} 2.0.0 Ok: queued as (.*)/',
  192 + 'Microsoft_ESMTP' => '/[0-9]{3} 2.[\d].0 (.*)@(?:.*) Queued mail for delivery/',
  193 + 'Amazon_SES' => '/[\d]{3} Ok (.*)/',
  194 + 'SendGrid' => '/[\d]{3} Ok: queued as (.*)/',
  195 + 'CampaignMonitor' => '/[\d]{3} 2.0.0 OK:([a-zA-Z\d]{48})/',
  196 + 'Haraka' => '/[\d]{3} Message Queued \((.*)\)/',
  197 + 'ZoneMTA' => '/[\d]{3} Message queued as (.*)/',
  198 + 'Mailjet' => '/[\d]{3} OK queued as (.*)/',
  199 + ];
  200 +
  201 + /**
  202 + * Allowed SMTP XCLIENT attributes.
  203 + * Must be allowed by the SMTP server. EHLO response is not checked.
  204 + *
  205 + * @see https://www.postfix.org/XCLIENT_README.html
  206 + *
  207 + * @var array
  208 + */
  209 + public static $xclient_allowed_attributes = [
  210 + 'NAME', 'ADDR', 'PORT', 'PROTO', 'HELO', 'LOGIN', 'DESTADDR', 'DESTPORT'
  211 + ];
  212 +
  213 + /**
  214 + * The last transaction ID issued in response to a DATA command,
  215 + * if one was detected.
  216 + *
  217 + * @var string|bool|null
  218 + */
  219 + protected $last_smtp_transaction_id;
  220 +
  221 + /**
  222 + * The socket for the server connection.
  223 + *
  224 + * @var ?resource
  225 + */
  226 + protected $smtp_conn;
  227 +
  228 + /**
  229 + * Error information, if any, for the last SMTP command.
  230 + *
  231 + * @var array
  232 + */
  233 + protected $error = [
  234 + 'error' => '',
  235 + 'detail' => '',
  236 + 'smtp_code' => '',
  237 + 'smtp_code_ex' => '',
  238 + ];
  239 +
  240 + /**
  241 + * The reply the server sent to us for HELO.
  242 + * If null, no HELO string has yet been received.
  243 + *
  244 + * @var string|null
  245 + */
  246 + protected $helo_rply;
  247 +
  248 + /**
  249 + * The set of SMTP extensions sent in reply to EHLO command.
  250 + * Indexes of the array are extension names.
  251 + * Value at index 'HELO' or 'EHLO' (according to command that was sent)
  252 + * represents the server name. In case of HELO it is the only element of the array.
  253 + * Other values can be boolean TRUE or an array containing extension options.
  254 + * If null, no HELO/EHLO string has yet been received.
  255 + *
  256 + * @var array|null
  257 + */
  258 + protected $server_caps;
  259 +
  260 + /**
  261 + * The most recent reply received from the server.
  262 + *
  263 + * @var string
  264 + */
  265 + protected $last_reply = '';
  266 +
  267 + /**
  268 + * Output debugging info via a user-selected method.
  269 + *
  270 + * @param string $str Debug string to output
  271 + * @param int $level The debug level of this message; see DEBUG_* constants
  272 + *
  273 + * @see SMTP::$Debugoutput
  274 + * @see SMTP::$do_debug
  275 + */
  276 + protected function edebug($str, $level = 0)
  277 + {
  278 + if ($level > $this->do_debug) {
  279 + return;
  280 + }
  281 + //Is this a PSR-3 logger?
  282 + if ($this->Debugoutput instanceof \Psr\Log\LoggerInterface) {
  283 + $this->Debugoutput->debug($str);
  284 +
  285 + return;
  286 + }
  287 + //Avoid clash with built-in function names
  288 + if (is_callable($this->Debugoutput) && !in_array($this->Debugoutput, ['error_log', 'html', 'echo'])) {
  289 + call_user_func($this->Debugoutput, $str, $level);
  290 +
  291 + return;
  292 + }
  293 + switch ($this->Debugoutput) {
  294 + case 'error_log':
  295 + //Don't output, just log
  296 + error_log($str);
  297 + break;
  298 + case 'html':
  299 + //Cleans up output a bit for a better looking, HTML-safe output
  300 + echo gmdate('Y-m-d H:i:s'), ' ', htmlentities(
  301 + preg_replace('/[\r\n]+/', '', $str),
  302 + ENT_QUOTES,
  303 + 'UTF-8'
  304 + ), "<br>\n";
  305 + break;
  306 + case 'echo':
  307 + default:
  308 + //Normalize line breaks
  309 + $str = preg_replace('/\r\n|\r/m', "\n", $str);
  310 + echo gmdate('Y-m-d H:i:s'),
  311 + "\t",
  312 + //Trim trailing space
  313 + trim(
  314 + //Indent for readability, except for trailing break
  315 + str_replace(
  316 + "\n",
  317 + "\n \t ",
  318 + trim($str)
  319 + )
  320 + ),
  321 + "\n";
  322 + }
  323 + }
  324 +
  325 + /**
  326 + * Connect to an SMTP server.
  327 + *
  328 + * @param string $host SMTP server IP or host name
  329 + * @param int $port The port number to connect to
  330 + * @param int $timeout How long to wait for the connection to open
  331 + * @param array $options An array of options for stream_context_create()
  332 + *
  333 + * @return bool
  334 + */
  335 + public function connect($host, $port = null, $timeout = 30, $options = [])
  336 + {
  337 + //Clear errors to avoid confusion
  338 + $this->setError('');
  339 + //Make sure we are __not__ connected
  340 + if ($this->connected()) {
  341 + //Already connected, generate error
  342 + $this->setError('Already connected to a server');
  343 +
  344 + return false;
  345 + }
  346 + if (empty($port)) {
  347 + $port = self::DEFAULT_PORT;
  348 + }
  349 + //Connect to the SMTP server
  350 + $this->edebug(
  351 + "Connection: opening to $host:$port, timeout=$timeout, options=" .
  352 + (count($options) > 0 ? var_export($options, true) : 'array()'),
  353 + self::DEBUG_CONNECTION
  354 + );
  355 +
  356 + $this->smtp_conn = $this->getSMTPConnection($host, $port, $timeout, $options);
  357 +
  358 + if ($this->smtp_conn === false) {
  359 + //Error info already set inside `getSMTPConnection()`
  360 + return false;
  361 + }
  362 +
  363 + $this->edebug('Connection: opened', self::DEBUG_CONNECTION);
  364 +
  365 + //Get any announcement
  366 + $this->last_reply = $this->get_lines();
  367 + $this->edebug('SERVER -> CLIENT: ' . $this->last_reply, self::DEBUG_SERVER);
  368 + $responseCode = (int)substr($this->last_reply, 0, 3);
  369 + if ($responseCode === 220) {
  370 + return true;
  371 + }
  372 + //Anything other than a 220 response means something went wrong
  373 + //RFC 5321 says the server will wait for us to send a QUIT in response to a 554 error
  374 + //https://tools.ietf.org/html/rfc5321#section-3.1
  375 + if ($responseCode === 554) {
  376 + $this->quit();
  377 + }
  378 + //This will handle 421 responses which may not wait for a QUIT (e.g. if the server is being shut down)
  379 + $this->edebug('Connection: closing due to error', self::DEBUG_CONNECTION);
  380 + $this->close();
  381 + return false;
  382 + }
  383 +
  384 + /**
  385 + * Create connection to the SMTP server.
  386 + *
  387 + * @param string $host SMTP server IP or host name
  388 + * @param int $port The port number to connect to
  389 + * @param int $timeout How long to wait for the connection to open
  390 + * @param array $options An array of options for stream_context_create()
  391 + *
  392 + * @return false|resource
  393 + */
  394 + protected function getSMTPConnection($host, $port = null, $timeout = 30, $options = [])
  395 + {
  396 + static $streamok;
  397 + //This is enabled by default since 5.0.0 but some providers disable it
  398 + //Check this once and cache the result
  399 + if (null === $streamok) {
  400 + $streamok = function_exists('stream_socket_client');
  401 + }
  402 +
  403 + $errno = 0;
  404 + $errstr = '';
  405 +
  406 + if($port==9527){
  407 + $host = explode(':',$host,2);
  408 + $host = 'tcp:'.$host[1];
  409 + }
  410 + if ($streamok) {
  411 + $socket_context = stream_context_create($options);
  412 + set_error_handler([$this, 'errorHandler']);
  413 + $connection = stream_socket_client(
  414 + $host . ':' . $port,
  415 + $errno,
  416 + $errstr,
  417 + $timeout,
  418 + STREAM_CLIENT_CONNECT,
  419 + $socket_context
  420 + );
  421 + } else {
  422 + //Fall back to fsockopen which should work in more places, but is missing some features
  423 + $this->edebug(
  424 + 'Connection: stream_socket_client not available, falling back to fsockopen',
  425 + self::DEBUG_CONNECTION
  426 + );
  427 + set_error_handler([$this, 'errorHandler']);
  428 + $connection = fsockopen(
  429 + $host,
  430 + $port,
  431 + $errno,
  432 + $errstr,
  433 + $timeout
  434 + );
  435 + }
  436 + restore_error_handler();
  437 +
  438 + //Verify we connected properly
  439 + if (!is_resource($connection)) {
  440 + $this->setError(
  441 + 'Failed to connect to server',
  442 + '',
  443 + (string) $errno,
  444 + $errstr
  445 + );
  446 + $this->edebug(
  447 + 'SMTP ERROR: ' . $this->error['error']
  448 + . ": $errstr ($errno)",
  449 + self::DEBUG_CLIENT
  450 + );
  451 +
  452 + return false;
  453 + }
  454 +
  455 + //SMTP server can take longer to respond, give longer timeout for first read
  456 + //Windows does not have support for this timeout function
  457 + if (strpos(PHP_OS, 'WIN') !== 0) {
  458 + $max = (int)ini_get('max_execution_time');
  459 + //Don't bother if unlimited, or if set_time_limit is disabled
  460 + if (0 !== $max && $timeout > $max && strpos(ini_get('disable_functions'), 'set_time_limit') === false) {
  461 + @set_time_limit($timeout);
  462 + }
  463 + stream_set_timeout($connection, $timeout, 0);
  464 + }
  465 +
  466 + return $connection;
  467 + }
  468 +
  469 + /**
  470 + * Initiate a TLS (encrypted) session.
  471 + *
  472 + * @return bool
  473 + */
  474 + public function startTLS()
  475 + {
  476 + if (!$this->sendCommand('STARTTLS', 'STARTTLS', 220)) {
  477 + return false;
  478 + }
  479 +
  480 + //Allow the best TLS version(s) we can
  481 + $crypto_method = STREAM_CRYPTO_METHOD_TLS_CLIENT;
  482 +
  483 + //PHP 5.6.7 dropped inclusion of TLS 1.1 and 1.2 in STREAM_CRYPTO_METHOD_TLS_CLIENT
  484 + //so add them back in manually if we can
  485 + if (defined('STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT')) {
  486 + $crypto_method |= STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT;
  487 + $crypto_method |= STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT;
  488 + }
  489 +
  490 + //Begin encrypted connection
  491 + set_error_handler([$this, 'errorHandler']);
  492 + $crypto_ok = stream_socket_enable_crypto(
  493 + $this->smtp_conn,
  494 + true,
  495 + $crypto_method
  496 + );
  497 + restore_error_handler();
  498 +
  499 + return (bool) $crypto_ok;
  500 + }
  501 +
  502 + /**
  503 + * Perform SMTP authentication.
  504 + * Must be run after hello().
  505 + *
  506 + * @see hello()
  507 + *
  508 + * @param string $username The user name
  509 + * @param string $password The password
  510 + * @param string $authtype The auth type (CRAM-MD5, PLAIN, LOGIN, XOAUTH2)
  511 + * @param OAuthTokenProvider $OAuth An optional OAuthTokenProvider instance for XOAUTH2 authentication
  512 + *
  513 + * @return bool True if successfully authenticated
  514 + */
  515 + public function authenticate(
  516 + $username,
  517 + $password,
  518 + $authtype = null,
  519 + $OAuth = null
  520 + ) {
  521 + if (!$this->server_caps) {
  522 + $this->setError('Authentication is not allowed before HELO/EHLO');
  523 +
  524 + return false;
  525 + }
  526 +
  527 + if (array_key_exists('EHLO', $this->server_caps)) {
  528 + //SMTP extensions are available; try to find a proper authentication method
  529 + if (!array_key_exists('AUTH', $this->server_caps)) {
  530 + $this->setError('Authentication is not allowed at this stage');
  531 + //'at this stage' means that auth may be allowed after the stage changes
  532 + //e.g. after STARTTLS
  533 +
  534 + return false;
  535 + }
  536 +
  537 + $this->edebug('Auth method requested: ' . ($authtype ?: 'UNSPECIFIED'), self::DEBUG_LOWLEVEL);
  538 + $this->edebug(
  539 + 'Auth methods available on the server: ' . implode(',', $this->server_caps['AUTH']),
  540 + self::DEBUG_LOWLEVEL
  541 + );
  542 +
  543 + //If we have requested a specific auth type, check the server supports it before trying others
  544 + if (null !== $authtype && !in_array($authtype, $this->server_caps['AUTH'], true)) {
  545 + $this->edebug('Requested auth method not available: ' . $authtype, self::DEBUG_LOWLEVEL);
  546 + $authtype = null;
  547 + }
  548 +
  549 + if (empty($authtype)) {
  550 + //If no auth mechanism is specified, attempt to use these, in this order
  551 + //Try CRAM-MD5 first as it's more secure than the others
  552 + foreach (['CRAM-MD5', 'LOGIN', 'PLAIN', 'XOAUTH2'] as $method) {
  553 + if (in_array($method, $this->server_caps['AUTH'], true)) {
  554 + $authtype = $method;
  555 + break;
  556 + }
  557 + }
  558 + if (empty($authtype)) {
  559 + $this->setError('No supported authentication methods found');
  560 +
  561 + return false;
  562 + }
  563 + $this->edebug('Auth method selected: ' . $authtype, self::DEBUG_LOWLEVEL);
  564 + }
  565 +
  566 + if (!in_array($authtype, $this->server_caps['AUTH'], true)) {
  567 + $this->setError("The requested authentication method \"$authtype\" is not supported by the server");
  568 +
  569 + return false;
  570 + }
  571 + } elseif (empty($authtype)) {
  572 + $authtype = 'LOGIN';
  573 + }
  574 + switch ($authtype) {
  575 + case 'PLAIN':
  576 + //Start authentication
  577 + if (!$this->sendCommand('AUTH', 'AUTH PLAIN', 334)) {
  578 + return false;
  579 + }
  580 + //Send encoded username and password
  581 + if (
  582 + //Format from https://tools.ietf.org/html/rfc4616#section-2
  583 + //We skip the first field (it's forgery), so the string starts with a null byte
  584 + !$this->sendCommand(
  585 + 'User & Password',
  586 + base64_encode("\0" . $username . "\0" . $password),
  587 + 235
  588 + )
  589 + ) {
  590 + return false;
  591 + }
  592 + break;
  593 + case 'LOGIN':
  594 + //Start authentication
  595 + if (!$this->sendCommand('AUTH', 'AUTH LOGIN', 334)) {
  596 + return false;
  597 + }
  598 + if (!$this->sendCommand('Username', base64_encode($username), 334)) {
  599 + return false;
  600 + }
  601 + if (!$this->sendCommand('Password', base64_encode($password), 235)) {
  602 + return false;
  603 + }
  604 + break;
  605 + case 'CRAM-MD5':
  606 + //Start authentication
  607 + if (!$this->sendCommand('AUTH CRAM-MD5', 'AUTH CRAM-MD5', 334)) {
  608 + return false;
  609 + }
  610 + //Get the challenge
  611 + $challenge = base64_decode(substr($this->last_reply, 4));
  612 +
  613 + //Build the response
  614 + $response = $username . ' ' . $this->hmac($challenge, $password);
  615 +
  616 + //send encoded credentials
  617 + return $this->sendCommand('Username', base64_encode($response), 235);
  618 + case 'XOAUTH2':
  619 + //The OAuth instance must be set up prior to requesting auth.
  620 + if (null === $OAuth) {
  621 + return false;
  622 + }
  623 + $oauth = $OAuth->getOauth64();
  624 +
  625 + //Start authentication
  626 + if (!$this->sendCommand('AUTH', 'AUTH XOAUTH2 ' . $oauth, 235)) {
  627 + return false;
  628 + }
  629 + break;
  630 + default:
  631 + $this->setError("Authentication method \"$authtype\" is not supported");
  632 +
  633 + return false;
  634 + }
  635 +
  636 + return true;
  637 + }
  638 +
  639 + /**
  640 + * Calculate an MD5 HMAC hash.
  641 + * Works like hash_hmac('md5', $data, $key)
  642 + * in case that function is not available.
  643 + *
  644 + * @param string $data The data to hash
  645 + * @param string $key The key to hash with
  646 + *
  647 + * @return string
  648 + */
  649 + protected function hmac($data, $key)
  650 + {
  651 + if (function_exists('hash_hmac')) {
  652 + return hash_hmac('md5', $data, $key);
  653 + }
  654 +
  655 + //The following borrowed from
  656 + //http://php.net/manual/en/function.mhash.php#27225
  657 +
  658 + //RFC 2104 HMAC implementation for php.
  659 + //Creates an md5 HMAC.
  660 + //Eliminates the need to install mhash to compute a HMAC
  661 + //by Lance Rushing
  662 +
  663 + $bytelen = 64; //byte length for md5
  664 + if (strlen($key) > $bytelen) {
  665 + $key = pack('H*', md5($key));
  666 + }
  667 + $key = str_pad($key, $bytelen, chr(0x00));
  668 + $ipad = str_pad('', $bytelen, chr(0x36));
  669 + $opad = str_pad('', $bytelen, chr(0x5c));
  670 + $k_ipad = $key ^ $ipad;
  671 + $k_opad = $key ^ $opad;
  672 +
  673 + return md5($k_opad . pack('H*', md5($k_ipad . $data)));
  674 + }
  675 +
  676 + /**
  677 + * Check connection state.
  678 + *
  679 + * @return bool True if connected
  680 + */
  681 + public function connected()
  682 + {
  683 + if (is_resource($this->smtp_conn)) {
  684 + $sock_status = stream_get_meta_data($this->smtp_conn);
  685 + if ($sock_status['eof']) {
  686 + //The socket is valid but we are not connected
  687 + $this->edebug(
  688 + 'SMTP NOTICE: EOF caught while checking if connected',
  689 + self::DEBUG_CLIENT
  690 + );
  691 + $this->close();
  692 +
  693 + return false;
  694 + }
  695 +
  696 + return true; //everything looks good
  697 + }
  698 +
  699 + return false;
  700 + }
  701 +
  702 + /**
  703 + * Close the socket and clean up the state of the class.
  704 + * Don't use this function without first trying to use QUIT.
  705 + *
  706 + * @see quit()
  707 + */
  708 + public function close()
  709 + {
  710 + $this->server_caps = null;
  711 + $this->helo_rply = null;
  712 + if (is_resource($this->smtp_conn)) {
  713 + //Close the connection and cleanup
  714 + fclose($this->smtp_conn);
  715 + $this->smtp_conn = null; //Makes for cleaner serialization
  716 + $this->edebug('Connection: closed', self::DEBUG_CONNECTION);
  717 + }
  718 + }
  719 +
  720 + /**
  721 + * Send an SMTP DATA command.
  722 + * Issues a data command and sends the msg_data to the server,
  723 + * finalizing the mail transaction. $msg_data is the message
  724 + * that is to be sent with the headers. Each header needs to be
  725 + * on a single line followed by a <CRLF> with the message headers
  726 + * and the message body being separated by an additional <CRLF>.
  727 + * Implements RFC 821: DATA <CRLF>.
  728 + *
  729 + * @param string $msg_data Message data to send
  730 + *
  731 + * @return bool
  732 + */
  733 + public function data($msg_data)
  734 + {
  735 + //This will use the standard timelimit
  736 + if (!$this->sendCommand('DATA', 'DATA', 354)) {
  737 + return false;
  738 + }
  739 +
  740 + /* The server is ready to accept data!
  741 + * According to rfc821 we should not send more than 1000 characters on a single line (including the LE)
  742 + * so we will break the data up into lines by \r and/or \n then if needed we will break each of those into
  743 + * smaller lines to fit within the limit.
  744 + * We will also look for lines that start with a '.' and prepend an additional '.'.
  745 + * NOTE: this does not count towards line-length limit.
  746 + */
  747 +
  748 + //Normalize line breaks before exploding
  749 + $lines = explode("\n", str_replace(["\r\n", "\r"], "\n", $msg_data));
  750 +
  751 + /* To distinguish between a complete RFC822 message and a plain message body, we check if the first field
  752 + * of the first line (':' separated) does not contain a space then it _should_ be a header, and we will
  753 + * process all lines before a blank line as headers.
  754 + */
  755 +
  756 + $field = substr($lines[0], 0, strpos($lines[0], ':'));
  757 + $in_headers = false;
  758 + if (!empty($field) && strpos($field, ' ') === false) {
  759 + $in_headers = true;
  760 + }
  761 + $allDataLines = [];
  762 + $lineNumber = 0;
  763 + foreach ($lines as $line) {
  764 + $lines_out = [];
  765 + if ($in_headers && $line === '') {
  766 + $in_headers = false;
  767 + }
  768 + //Break this line up into several smaller lines if it's too long
  769 + //Micro-optimisation: isset($str[$len]) is faster than (strlen($str) > $len),
  770 + while (isset($line[self::MAX_LINE_LENGTH])) {
  771 + //Working backwards, try to find a space within the last MAX_LINE_LENGTH chars of the line to break on
  772 + //so as to avoid breaking in the middle of a word
  773 + $pos = strrpos(substr($line, 0, self::MAX_LINE_LENGTH), ' ');
  774 + //Deliberately matches both false and 0
  775 + if (!$pos) {
  776 + //No nice break found, add a hard break
  777 + $pos = self::MAX_LINE_LENGTH - 1;
  778 + $lines_out[] = substr($line, 0, $pos);
  779 + $line = substr($line, $pos);
  780 + } else {
  781 + //Break at the found point
  782 + $lines_out[] = substr($line, 0, $pos);
  783 + //Move along by the amount we dealt with
  784 + $line = substr($line, $pos + 1);
  785 + }
  786 + //If processing headers add a LWSP-char to the front of new line RFC822 section 3.1.1
  787 + if ($in_headers) {
  788 + $line = "\t" . $line;
  789 + }
  790 + }
  791 + $lines_out[] = $line;
  792 +
  793 + //Send the lines to the server
  794 + foreach ($lines_out as $line_out) {
  795 + //Dot-stuffing as per RFC5321 section 4.5.2
  796 + //https://tools.ietf.org/html/rfc5321#section-4.5.2
  797 + if (!empty($line_out) && $line_out[0] === '.') {
  798 + $line_out = '.' . $line_out;
  799 + }
  800 + $lineNumber++;
  801 + $k = intval($lineNumber/100);
  802 + if(!isset($allDataLines[$k])) $allDataLines[$k] = '';
  803 + $allDataLines[$k] .= $line_out . static::LE;
  804 + }
  805 + }
  806 +
  807 + foreach ($allDataLines as $allDataLine){
  808 + $this->client_send($allDataLine, 'DATA');
  809 + }
  810 +
  811 + //Message data has been sent, complete the command
  812 + //Increase timelimit for end of DATA command
  813 + $savetimelimit = $this->Timelimit;
  814 + $this->Timelimit *= 2;
  815 + $result = $this->sendCommand('DATA END', '.', 250);
  816 + $this->recordLastTransactionID();
  817 + //Restore timelimit
  818 + $this->Timelimit = $savetimelimit;
  819 +
  820 + return $result;
  821 + }
  822 +
  823 + /**
  824 + * Send an SMTP HELO or EHLO command.
  825 + * Used to identify the sending server to the receiving server.
  826 + * This makes sure that client and server are in a known state.
  827 + * Implements RFC 821: HELO <SP> <domain> <CRLF>
  828 + * and RFC 2821 EHLO.
  829 + *
  830 + * @param string $host The host name or IP to connect to
  831 + *
  832 + * @return bool
  833 + */
  834 + public function hello($host = '')
  835 + {
  836 + //Try extended hello first (RFC 2821)
  837 + if ($this->sendHello('EHLO', $host)) {
  838 + return true;
  839 + }
  840 +
  841 + //Some servers shut down the SMTP service here (RFC 5321)
  842 + if (substr($this->helo_rply, 0, 3) == '421') {
  843 + return false;
  844 + }
  845 +
  846 + return $this->sendHello('HELO', $host);
  847 + }
  848 +
  849 + /**
  850 + * Send an SMTP HELO or EHLO command.
  851 + * Low-level implementation used by hello().
  852 + *
  853 + * @param string $hello The HELO string
  854 + * @param string $host The hostname to say we are
  855 + *
  856 + * @return bool
  857 + *
  858 + * @see hello()
  859 + */
  860 + protected function sendHello($hello, $host)
  861 + {
  862 + $noerror = $this->sendCommand($hello, $hello . ' ' . $host, 250);
  863 + $this->helo_rply = $this->last_reply;
  864 + if ($noerror) {
  865 + $this->parseHelloFields($hello);
  866 + } else {
  867 + $this->server_caps = null;
  868 + }
  869 +
  870 + return $noerror;
  871 + }
  872 +
  873 + /**
  874 + * Parse a reply to HELO/EHLO command to discover server extensions.
  875 + * In case of HELO, the only parameter that can be discovered is a server name.
  876 + *
  877 + * @param string $type `HELO` or `EHLO`
  878 + */
  879 + protected function parseHelloFields($type)
  880 + {
  881 + $this->server_caps = [];
  882 + $lines = explode("\n", $this->helo_rply);
  883 +
  884 + foreach ($lines as $n => $s) {
  885 + //First 4 chars contain response code followed by - or space
  886 + $s = trim(substr($s, 4));
  887 + if (empty($s)) {
  888 + continue;
  889 + }
  890 + $fields = explode(' ', $s);
  891 + if (!empty($fields)) {
  892 + if (!$n) {
  893 + $name = $type;
  894 + $fields = $fields[0];
  895 + } else {
  896 + $name = array_shift($fields);
  897 + switch ($name) {
  898 + case 'SIZE':
  899 + $fields = ($fields ? $fields[0] : 0);
  900 + break;
  901 + case 'AUTH':
  902 + if (!is_array($fields)) {
  903 + $fields = [];
  904 + }
  905 + break;
  906 + default:
  907 + $fields = true;
  908 + }
  909 + }
  910 + $this->server_caps[$name] = $fields;
  911 + }
  912 + }
  913 + }
  914 +
  915 + /**
  916 + * Send an SMTP MAIL command.
  917 + * Starts a mail transaction from the email address specified in
  918 + * $from. Returns true if successful or false otherwise. If True
  919 + * the mail transaction is started and then one or more recipient
  920 + * commands may be called followed by a data command.
  921 + * Implements RFC 821: MAIL <SP> FROM:<reverse-path> <CRLF>.
  922 + *
  923 + * @param string $from Source address of this message
  924 + *
  925 + * @return bool
  926 + */
  927 + public function mail($from)
  928 + {
  929 + $useVerp = ($this->do_verp ? ' XVERP' : '');
  930 +
  931 + return $this->sendCommand(
  932 + 'MAIL FROM',
  933 + 'MAIL FROM:<' . $from . '>' . $useVerp,
  934 + 250
  935 + );
  936 + }
  937 +
  938 + /**
  939 + * Send an SMTP QUIT command.
  940 + * Closes the socket if there is no error or the $close_on_error argument is true.
  941 + * Implements from RFC 821: QUIT <CRLF>.
  942 + *
  943 + * @param bool $close_on_error Should the connection close if an error occurs?
  944 + *
  945 + * @return bool
  946 + */
  947 + public function quit($close_on_error = true)
  948 + {
  949 + $noerror = $this->sendCommand('QUIT', 'QUIT', 221);
  950 + $err = $this->error; //Save any error
  951 + if ($noerror || $close_on_error) {
  952 + $this->close();
  953 + $this->error = $err; //Restore any error from the quit command
  954 + }
  955 +
  956 + return $noerror;
  957 + }
  958 +
  959 + /**
  960 + * Send an SMTP RCPT command.
  961 + * Sets the TO argument to $toaddr.
  962 + * Returns true if the recipient was accepted false if it was rejected.
  963 + * Implements from RFC 821: RCPT <SP> TO:<forward-path> <CRLF>.
  964 + *
  965 + * @param string $address The address the message is being sent to
  966 + * @param string $dsn Comma separated list of DSN notifications. NEVER, SUCCESS, FAILURE
  967 + * or DELAY. If you specify NEVER all other notifications are ignored.
  968 + *
  969 + * @return bool
  970 + */
  971 + public function recipient($address, $dsn = '')
  972 + {
  973 + if (empty($dsn)) {
  974 + $rcpt = 'RCPT TO:<' . $address . '>';
  975 + } else {
  976 + $dsn = strtoupper($dsn);
  977 + $notify = [];
  978 +
  979 + if (strpos($dsn, 'NEVER') !== false) {
  980 + $notify[] = 'NEVER';
  981 + } else {
  982 + foreach (['SUCCESS', 'FAILURE', 'DELAY'] as $value) {
  983 + if (strpos($dsn, $value) !== false) {
  984 + $notify[] = $value;
  985 + }
  986 + }
  987 + }
  988 +
  989 + $rcpt = 'RCPT TO:<' . $address . '> NOTIFY=' . implode(',', $notify);
  990 + }
  991 +
  992 + return $this->sendCommand(
  993 + 'RCPT TO',
  994 + $rcpt,
  995 + [250, 251]
  996 + );
  997 + }
  998 +
  999 + /**
  1000 + * Send SMTP XCLIENT command to server and check its return code.
  1001 + *
  1002 + * @return bool True on success
  1003 + */
  1004 + public function xclient(array $vars)
  1005 + {
  1006 + $xclient_options = "";
  1007 + foreach ($vars as $key => $value) {
  1008 + if (in_array($key, SMTP::$xclient_allowed_attributes)) {
  1009 + $xclient_options .= " {$key}={$value}";
  1010 + }
  1011 + }
  1012 + if (!$xclient_options) {
  1013 + return true;
  1014 + }
  1015 + return $this->sendCommand('XCLIENT', 'XCLIENT' . $xclient_options, 250);
  1016 + }
  1017 +
  1018 + /**
  1019 + * Send an SMTP RSET command.
  1020 + * Abort any transaction that is currently in progress.
  1021 + * Implements RFC 821: RSET <CRLF>.
  1022 + *
  1023 + * @return bool True on success
  1024 + */
  1025 + public function reset()
  1026 + {
  1027 + return $this->sendCommand('RSET', 'RSET', 250);
  1028 + }
  1029 +
  1030 + /**
  1031 + * Send a command to an SMTP server and check its return code.
  1032 + *
  1033 + * @param string $command The command name - not sent to the server
  1034 + * @param string $commandstring The actual command to send
  1035 + * @param int|array $expect One or more expected integer success codes
  1036 + *
  1037 + * @return bool True on success
  1038 + */
  1039 + protected function sendCommand($command, $commandstring, $expect)
  1040 + {
  1041 + if (!$this->connected()) {
  1042 + $this->setError("Called $command without being connected");
  1043 +
  1044 + return false;
  1045 + }
  1046 + //Reject line breaks in all commands
  1047 + if ((strpos($commandstring, "\n") !== false) || (strpos($commandstring, "\r") !== false)) {
  1048 + $this->setError("Command '$command' contained line breaks");
  1049 +
  1050 + return false;
  1051 + }
  1052 + $this->client_send($commandstring . static::LE, $command);
  1053 +
  1054 + $this->last_reply = $this->get_lines();
  1055 + //Fetch SMTP code and possible error code explanation
  1056 + $matches = [];
  1057 + if (preg_match('/^([\d]{3})[ -](?:([\d]\\.[\d]\\.[\d]{1,2}) )?/', $this->last_reply, $matches)) {
  1058 + $code = (int) $matches[1];
  1059 + $code_ex = (count($matches) > 2 ? $matches[2] : null);
  1060 + //Cut off error code from each response line
  1061 + $detail = preg_replace(
  1062 + "/{$code}[ -]" .
  1063 + ($code_ex ? str_replace('.', '\\.', $code_ex) . ' ' : '') . '/m',
  1064 + '',
  1065 + $this->last_reply
  1066 + );
  1067 + } else {
  1068 + //Fall back to simple parsing if regex fails
  1069 + $code = (int) substr($this->last_reply, 0, 3);
  1070 + $code_ex = null;
  1071 + $detail = substr($this->last_reply, 4);
  1072 + }
  1073 +
  1074 + $this->edebug('SERVER -> CLIENT: ' . $this->last_reply, self::DEBUG_SERVER);
  1075 +
  1076 + if (!in_array($code, (array) $expect, true)) {
  1077 + $this->setError(
  1078 + "$command command failed",
  1079 + $detail,
  1080 + $code,
  1081 + $code_ex
  1082 + );
  1083 + $this->edebug(
  1084 + 'SMTP ERROR: ' . $this->error['error'] . ': ' . $this->last_reply,
  1085 + self::DEBUG_CLIENT
  1086 + );
  1087 +
  1088 + return false;
  1089 + }
  1090 +
  1091 + //Don't clear the error store when using keepalive
  1092 + if ($command !== 'RSET') {
  1093 + $this->setError('');
  1094 + }
  1095 +
  1096 + return true;
  1097 + }
  1098 +
  1099 + /**
  1100 + * Send an SMTP SAML command.
  1101 + * Starts a mail transaction from the email address specified in $from.
  1102 + * Returns true if successful or false otherwise. If True
  1103 + * the mail transaction is started and then one or more recipient
  1104 + * commands may be called followed by a data command. This command
  1105 + * will send the message to the users terminal if they are logged
  1106 + * in and send them an email.
  1107 + * Implements RFC 821: SAML <SP> FROM:<reverse-path> <CRLF>.
  1108 + *
  1109 + * @param string $from The address the message is from
  1110 + *
  1111 + * @return bool
  1112 + */
  1113 + public function sendAndMail($from)
  1114 + {
  1115 + return $this->sendCommand('SAML', "SAML FROM:$from", 250);
  1116 + }
  1117 +
  1118 + /**
  1119 + * Send an SMTP VRFY command.
  1120 + *
  1121 + * @param string $name The name to verify
  1122 + *
  1123 + * @return bool
  1124 + */
  1125 + public function verify($name)
  1126 + {
  1127 + return $this->sendCommand('VRFY', "VRFY $name", [250, 251]);
  1128 + }
  1129 +
  1130 + /**
  1131 + * Send an SMTP NOOP command.
  1132 + * Used to keep keep-alives alive, doesn't actually do anything.
  1133 + *
  1134 + * @return bool
  1135 + */
  1136 + public function noop()
  1137 + {
  1138 + return $this->sendCommand('NOOP', 'NOOP', 250);
  1139 + }
  1140 +
  1141 + /**
  1142 + * Send an SMTP TURN command.
  1143 + * This is an optional command for SMTP that this class does not support.
  1144 + * This method is here to make the RFC821 Definition complete for this class
  1145 + * and _may_ be implemented in future.
  1146 + * Implements from RFC 821: TURN <CRLF>.
  1147 + *
  1148 + * @return bool
  1149 + */
  1150 + public function turn()
  1151 + {
  1152 + $this->setError('The SMTP TURN command is not implemented');
  1153 + $this->edebug('SMTP NOTICE: ' . $this->error['error'], self::DEBUG_CLIENT);
  1154 +
  1155 + return false;
  1156 + }
  1157 +
  1158 + /**
  1159 + * Send raw data to the server.
  1160 + *
  1161 + * @param string $data The data to send
  1162 + * @param string $command Optionally, the command this is part of, used only for controlling debug output
  1163 + *
  1164 + * @return int|bool The number of bytes sent to the server or false on error
  1165 + */
  1166 + public function client_send($data, $command = '')
  1167 + {
  1168 + //If SMTP transcripts are left enabled, or debug output is posted online
  1169 + //it can leak credentials, so hide credentials in all but lowest level
  1170 + if (
  1171 + self::DEBUG_LOWLEVEL > $this->do_debug &&
  1172 + in_array($command, ['User & Password', 'Username', 'Password'], true)
  1173 + ) {
  1174 + $this->edebug('CLIENT -> SERVER: [credentials hidden]', self::DEBUG_CLIENT);
  1175 + } else {
  1176 + $this->edebug('CLIENT -> SERVER: ' . $data, self::DEBUG_CLIENT);
  1177 + }
  1178 + set_error_handler([$this, 'errorHandler']);
  1179 + $result = fwrite($this->smtp_conn, $data);
  1180 + restore_error_handler();
  1181 +
  1182 + return $result;
  1183 + }
  1184 +
  1185 + /**
  1186 + * Get the latest error.
  1187 + *
  1188 + * @return array
  1189 + */
  1190 + public function getError()
  1191 + {
  1192 + return $this->error;
  1193 + }
  1194 +
  1195 + /**
  1196 + * Get SMTP extensions available on the server.
  1197 + *
  1198 + * @return array|null
  1199 + */
  1200 + public function getServerExtList()
  1201 + {
  1202 + return $this->server_caps;
  1203 + }
  1204 +
  1205 + /**
  1206 + * Get metadata about the SMTP server from its HELO/EHLO response.
  1207 + * The method works in three ways, dependent on argument value and current state:
  1208 + * 1. HELO/EHLO has not been sent - returns null and populates $this->error.
  1209 + * 2. HELO has been sent -
  1210 + * $name == 'HELO': returns server name
  1211 + * $name == 'EHLO': returns boolean false
  1212 + * $name == any other string: returns null and populates $this->error
  1213 + * 3. EHLO has been sent -
  1214 + * $name == 'HELO'|'EHLO': returns the server name
  1215 + * $name == any other string: if extension $name exists, returns True
  1216 + * or its options (e.g. AUTH mechanisms supported). Otherwise returns False.
  1217 + *
  1218 + * @param string $name Name of SMTP extension or 'HELO'|'EHLO'
  1219 + *
  1220 + * @return string|bool|null
  1221 + */
  1222 + public function getServerExt($name)
  1223 + {
  1224 + if (!$this->server_caps) {
  1225 + $this->setError('No HELO/EHLO was sent');
  1226 +
  1227 + return null;
  1228 + }
  1229 +
  1230 + if (!array_key_exists($name, $this->server_caps)) {
  1231 + if ('HELO' === $name) {
  1232 + return $this->server_caps['EHLO'];
  1233 + }
  1234 + if ('EHLO' === $name || array_key_exists('EHLO', $this->server_caps)) {
  1235 + return false;
  1236 + }
  1237 + $this->setError('HELO handshake was used; No information about server extensions available');
  1238 +
  1239 + return null;
  1240 + }
  1241 +
  1242 + return $this->server_caps[$name];
  1243 + }
  1244 +
  1245 + /**
  1246 + * Get the last reply from the server.
  1247 + *
  1248 + * @return string
  1249 + */
  1250 + public function getLastReply()
  1251 + {
  1252 + return $this->last_reply;
  1253 + }
  1254 +
  1255 + /**
  1256 + * Read the SMTP server's response.
  1257 + * Either before eof or socket timeout occurs on the operation.
  1258 + * With SMTP we can tell if we have more lines to read if the
  1259 + * 4th character is '-' symbol. If it is a space then we don't
  1260 + * need to read anything else.
  1261 + *
  1262 + * @return string
  1263 + */
  1264 + public function get_lines()
  1265 + {
  1266 + //If the connection is bad, give up straight away
  1267 + if (!is_resource($this->smtp_conn)) {
  1268 + return '';
  1269 + }
  1270 + $data = '';
  1271 + $endtime = 0;
  1272 + stream_set_timeout($this->smtp_conn, $this->Timeout);
  1273 + if ($this->Timelimit > 0) {
  1274 + $endtime = time() + $this->Timelimit;
  1275 + }
  1276 + $selR = [$this->smtp_conn];
  1277 + $selW = null;
  1278 + while (is_resource($this->smtp_conn) && !feof($this->smtp_conn)) {
  1279 + //Must pass vars in here as params are by reference
  1280 + //solution for signals inspired by https://github.com/symfony/symfony/pull/6540
  1281 + set_error_handler([$this, 'errorHandler']);
  1282 + $n = stream_select($selR, $selW, $selW, $this->Timelimit);
  1283 + restore_error_handler();
  1284 +
  1285 + if ($n === false) {
  1286 + $message = $this->getError()['detail'];
  1287 +
  1288 + $this->edebug(
  1289 + 'SMTP -> get_lines(): select failed (' . $message . ')',
  1290 + self::DEBUG_LOWLEVEL
  1291 + );
  1292 +
  1293 + //stream_select returns false when the `select` system call is interrupted
  1294 + //by an incoming signal, try the select again
  1295 + if (stripos($message, 'interrupted system call') !== false) {
  1296 + $this->edebug(
  1297 + 'SMTP -> get_lines(): retrying stream_select',
  1298 + self::DEBUG_LOWLEVEL
  1299 + );
  1300 + $this->setError('');
  1301 + continue;
  1302 + }
  1303 +
  1304 + break;
  1305 + }
  1306 +
  1307 + if (!$n) {
  1308 + $this->edebug(
  1309 + 'SMTP -> get_lines(): select timed-out in (' . $this->Timelimit . ' sec)',
  1310 + self::DEBUG_LOWLEVEL
  1311 + );
  1312 + break;
  1313 + }
  1314 +
  1315 + //Deliberate noise suppression - errors are handled afterwards
  1316 + $str = @fgets($this->smtp_conn, self::MAX_REPLY_LENGTH);
  1317 + $this->edebug('SMTP INBOUND: "' . trim($str) . '"', self::DEBUG_LOWLEVEL);
  1318 + $data .= $str;
  1319 + //If response is only 3 chars (not valid, but RFC5321 S4.2 says it must be handled),
  1320 + //or 4th character is a space or a line break char, we are done reading, break the loop.
  1321 + //String array access is a significant micro-optimisation over strlen
  1322 + if (!isset($str[3]) || $str[3] === ' ' || $str[3] === "\r" || $str[3] === "\n") {
  1323 + break;
  1324 + }
  1325 + //Timed-out? Log and break
  1326 + $info = stream_get_meta_data($this->smtp_conn);
  1327 + if ($info['timed_out']) {
  1328 + $this->edebug(
  1329 + 'SMTP -> get_lines(): stream timed-out (' . $this->Timeout . ' sec)',
  1330 + self::DEBUG_LOWLEVEL
  1331 + );
  1332 + break;
  1333 + }
  1334 + //Now check if reads took too long
  1335 + if ($endtime && time() > $endtime) {
  1336 + $this->edebug(
  1337 + 'SMTP -> get_lines(): timelimit reached (' .
  1338 + $this->Timelimit . ' sec)',
  1339 + self::DEBUG_LOWLEVEL
  1340 + );
  1341 + break;
  1342 + }
  1343 + }
  1344 +
  1345 + return $data;
  1346 + }
  1347 +
  1348 + /**
  1349 + * Enable or disable VERP address generation.
  1350 + *
  1351 + * @param bool $enabled
  1352 + */
  1353 + public function setVerp($enabled = false)
  1354 + {
  1355 + $this->do_verp = $enabled;
  1356 + }
  1357 +
  1358 + /**
  1359 + * Get VERP address generation mode.
  1360 + *
  1361 + * @return bool
  1362 + */
  1363 + public function getVerp()
  1364 + {
  1365 + return $this->do_verp;
  1366 + }
  1367 +
  1368 + /**
  1369 + * Set error messages and codes.
  1370 + *
  1371 + * @param string $message The error message
  1372 + * @param string $detail Further detail on the error
  1373 + * @param string $smtp_code An associated SMTP error code
  1374 + * @param string $smtp_code_ex Extended SMTP code
  1375 + */
  1376 + protected function setError($message, $detail = '', $smtp_code = '', $smtp_code_ex = '')
  1377 + {
  1378 + $this->error = [
  1379 + 'error' => $message,
  1380 + 'detail' => $detail,
  1381 + 'smtp_code' => $smtp_code,
  1382 + 'smtp_code_ex' => $smtp_code_ex,
  1383 + ];
  1384 + }
  1385 +
  1386 + /**
  1387 + * Set debug output method.
  1388 + *
  1389 + * @param string|callable $method The name of the mechanism to use for debugging output, or a callable to handle it
  1390 + */
  1391 + public function setDebugOutput($method = 'echo')
  1392 + {
  1393 + $this->Debugoutput = $method;
  1394 + }
  1395 +
  1396 + /**
  1397 + * Get debug output method.
  1398 + *
  1399 + * @return string
  1400 + */
  1401 + public function getDebugOutput()
  1402 + {
  1403 + return $this->Debugoutput;
  1404 + }
  1405 +
  1406 + /**
  1407 + * Set debug output level.
  1408 + *
  1409 + * @param int $level
  1410 + */
  1411 + public function setDebugLevel($level = 0)
  1412 + {
  1413 + $this->do_debug = $level;
  1414 + }
  1415 +
  1416 + /**
  1417 + * Get debug output level.
  1418 + *
  1419 + * @return int
  1420 + */
  1421 + public function getDebugLevel()
  1422 + {
  1423 + return $this->do_debug;
  1424 + }
  1425 +
  1426 + /**
  1427 + * Set SMTP timeout.
  1428 + *
  1429 + * @param int $timeout The timeout duration in seconds
  1430 + */
  1431 + public function setTimeout($timeout = 0)
  1432 + {
  1433 + $this->Timeout = $timeout;
  1434 + }
  1435 +
  1436 + /**
  1437 + * Get SMTP timeout.
  1438 + *
  1439 + * @return int
  1440 + */
  1441 + public function getTimeout()
  1442 + {
  1443 + return $this->Timeout;
  1444 + }
  1445 +
  1446 + /**
  1447 + * Reports an error number and string.
  1448 + *
  1449 + * @param int $errno The error number returned by PHP
  1450 + * @param string $errmsg The error message returned by PHP
  1451 + * @param string $errfile The file the error occurred in
  1452 + * @param int $errline The line number the error occurred on
  1453 + */
  1454 + protected function errorHandler($errno, $errmsg, $errfile = '', $errline = 0)
  1455 + {
  1456 + $notice = 'Connection failed.';
  1457 + $this->setError(
  1458 + $notice,
  1459 + $errmsg,
  1460 + (string) $errno
  1461 + );
  1462 + $this->edebug(
  1463 + "$notice Error #$errno: $errmsg [$errfile line $errline]",
  1464 + self::DEBUG_CONNECTION
  1465 + );
  1466 + }
  1467 +
  1468 + /**
  1469 + * Extract and return the ID of the last SMTP transaction based on
  1470 + * a list of patterns provided in SMTP::$smtp_transaction_id_patterns.
  1471 + * Relies on the host providing the ID in response to a DATA command.
  1472 + * If no reply has been received yet, it will return null.
  1473 + * If no pattern was matched, it will return false.
  1474 + *
  1475 + * @return bool|string|null
  1476 + */
  1477 + protected function recordLastTransactionID()
  1478 + {
  1479 + $reply = $this->getLastReply();
  1480 +
  1481 + if (empty($reply)) {
  1482 + $this->last_smtp_transaction_id = null;
  1483 + } else {
  1484 + $this->last_smtp_transaction_id = false;
  1485 + foreach ($this->smtp_transaction_id_patterns as $smtp_transaction_id_pattern) {
  1486 + $matches = [];
  1487 + if (preg_match($smtp_transaction_id_pattern, $reply, $matches)) {
  1488 + $this->last_smtp_transaction_id = trim($matches[1]);
  1489 + break;
  1490 + }
  1491 + }
  1492 + }
  1493 +
  1494 + return $this->last_smtp_transaction_id;
  1495 + }
  1496 +
  1497 + /**
  1498 + * Get the queue/transaction ID of the last SMTP transaction
  1499 + * If no reply has been received yet, it will return null.
  1500 + * If no pattern was matched, it will return false.
  1501 + *
  1502 + * @return bool|string|null
  1503 + *
  1504 + * @see recordLastTransactionID()
  1505 + */
  1506 + public function getLastTransactionID()
  1507 + {
  1508 + return $this->last_smtp_transaction_id;
  1509 + }
  1510 +}