├── .gitignore ├── JavaScript └── fonksiyonlar │ ├── callback.js │ └── promise.js ├── Php ├── Dosya-islemleri │ └── dosya.php ├── Fonksiyonlar │ └── stringfonksiyonlar.php └── Mail-Gonderme │ ├── PHPMailer │ ├── LICENSE │ ├── README.md │ ├── SECURITY.md │ ├── VERSION │ ├── get_oauth_token.php │ ├── language │ │ ├── phpmailer.lang-am.php │ │ ├── phpmailer.lang-ar.php │ │ ├── phpmailer.lang-az.php │ │ ├── phpmailer.lang-ba.php │ │ ├── phpmailer.lang-be.php │ │ ├── phpmailer.lang-bg.php │ │ ├── phpmailer.lang-ca.php │ │ ├── phpmailer.lang-ch.php │ │ ├── phpmailer.lang-cs.php │ │ ├── phpmailer.lang-da.php │ │ ├── phpmailer.lang-de.php │ │ ├── phpmailer.lang-el.php │ │ ├── phpmailer.lang-eo.php │ │ ├── phpmailer.lang-es.php │ │ ├── phpmailer.lang-et.php │ │ ├── phpmailer.lang-fa.php │ │ ├── phpmailer.lang-fi.php │ │ ├── phpmailer.lang-fo.php │ │ ├── phpmailer.lang-fr.php │ │ ├── phpmailer.lang-gl.php │ │ ├── phpmailer.lang-he.php │ │ ├── phpmailer.lang-hi.php │ │ ├── phpmailer.lang-hr.php │ │ ├── phpmailer.lang-hu.php │ │ ├── phpmailer.lang-id.php │ │ ├── phpmailer.lang-it.php │ │ ├── phpmailer.lang-ja.php │ │ ├── phpmailer.lang-ka.php │ │ ├── phpmailer.lang-ko.php │ │ ├── phpmailer.lang-lt.php │ │ ├── phpmailer.lang-lv.php │ │ ├── phpmailer.lang-ms.php │ │ ├── phpmailer.lang-nb.php │ │ ├── phpmailer.lang-nl.php │ │ ├── phpmailer.lang-pl.php │ │ ├── phpmailer.lang-pt.php │ │ ├── phpmailer.lang-pt_br.php │ │ ├── phpmailer.lang-ro.php │ │ ├── phpmailer.lang-rs.php │ │ ├── phpmailer.lang-ru.php │ │ ├── phpmailer.lang-sk.php │ │ ├── phpmailer.lang-sl.php │ │ ├── phpmailer.lang-sv.php │ │ ├── phpmailer.lang-tr.php │ │ ├── phpmailer.lang-uk.php │ │ ├── phpmailer.lang-vi.php │ │ ├── phpmailer.lang-zh.php │ │ └── phpmailer.lang-zh_cn.php │ └── src │ │ ├── Exception.php │ │ ├── OAuth.php │ │ ├── PHPMailer.php │ │ ├── POP3.php │ │ └── SMTP.php │ ├── coklu-mail.php │ ├── dosya.txt │ ├── gmail-smtp.php │ ├── mail-template.html │ ├── mail-template.php │ └── mail.php └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .idea/ -------------------------------------------------------------------------------- /JavaScript/fonksiyonlar/callback.js: -------------------------------------------------------------------------------- 1 | // Basit Fonksiyon 2 | 3 | // function adimiYaz(ad){ 4 | // console.log("Adiniz : " + ad); 5 | // } 6 | // 7 | // function soyadimiYaz(soyad) { 8 | // console.log("Soyadiniz : " + soyad); 9 | // } 10 | 11 | // setTimeout Fonksiyon 12 | 13 | // function adimiYaz(ad) { 14 | // setTimeout(function(){ 15 | // console.log("Adiniz : " + ad); 16 | // },2000); 17 | // } 18 | // 19 | // function soyadimiYaz(soyad) { 20 | // setTimeout(function(){ 21 | // console.log("Soyadiniz : " + soyad); 22 | // },1000); 23 | // } 24 | 25 | // callback Fonksiyon 26 | 27 | function adimiYaz(ad , callback) { 28 | setTimeout(function(){ 29 | console.log("Adiniz : " + ad); 30 | callback('Kasim'); 31 | },2000); 32 | } 33 | 34 | function soyadimiYaz(soyad) { 35 | setTimeout(function(){ 36 | console.log("Soyadiniz : " + soyad); 37 | },1000); 38 | } 39 | 40 | adimiYaz("Kadir" , soyadimiYaz); 41 | -------------------------------------------------------------------------------- /JavaScript/fonksiyonlar/promise.js: -------------------------------------------------------------------------------- 1 | // const sozumuz = new Promise((resolve,reject)=>{ 2 | // let islem = false; 3 | // if (islem) 4 | // resolve("Hersey umdugumuz gibi gitti.."); 5 | // else 6 | // reject("Bir sorunla karsilastik ve islem tamamlanmadi."); 7 | // }); 8 | // 9 | // 10 | // sozumuz.then((data)=>{ 11 | // console.log(data); 12 | // }).catch((err)=>{ 13 | // console.log(err); 14 | // }); 15 | 16 | function kareAl(data) { 17 | return new Promise((resolve, reject) => { 18 | 19 | if (data < 100) 20 | resolve(data * data); 21 | else 22 | reject('Aldın başını gidiyorsun !'); 23 | }); 24 | } 25 | kareAl(2).then((data)=>{ 26 | console.log(data); 27 | return kareAl(data); 28 | }).then((data)=>{ 29 | console.log(data); 30 | return kareAl(data); 31 | }).then((data)=>{ 32 | console.log(data); 33 | return kareAl(data); 34 | }).catch((err)=>{ 35 | console.log(err); 36 | }); 37 | -------------------------------------------------------------------------------- /Php/Dosya-islemleri/dosya.php: -------------------------------------------------------------------------------- 1 | Sadece okumak icin acar 17 | * r+ -> Okumak ve yazmak icin acar 18 | * w -> Sadece yazmak icin acar , Dosya yok ise olusturur. 19 | * w+ -> Okumak ve yazmak icin acar 20 | * a -> Sadece yazmak icin acar 21 | * a+ -> Okumak ve yazmak icin acar. 22 | */ 23 | 24 | 25 | // Dosyayi acma 26 | fopen('deneme.txt','a+'); 27 | 28 | // Dosyaya yazma 29 | fwrite('Bu bir deneme yazisidir.'); 30 | 31 | // Dosya Tum icerik okuma 32 | fread('deneme.txt'); 33 | 34 | // Satir satir okuma 35 | fgets('deneme.txt'); 36 | 37 | // Dosyanin sonuna geldigini soyler 38 | feof('deneme.txt'); 39 | 40 | // Dosyayi kapatir 41 | fclose('deneme.txt'); 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /Php/Fonksiyonlar/stringfonksiyonlar.php: -------------------------------------------------------------------------------- 1 | "; 15 | echo strstr($str2, 'nk')."
"; 16 | 17 | echo strpos($str3,'i')."
"; 18 | echo substr($str3,2,6)."
"; 19 | 20 | 21 | echo str_replace('string','Düz metin',$str2)."
"; 22 | echo str_repeat($str1 , 3)."
"; 23 | 24 | echo trim($str2)."
"; 25 | echo ltrim($str2)."
"; 26 | echo rtrim($str2)."
"; 27 | 28 | 29 | echo ucwords($str2)."
"; 30 | echo ucfirst($str2)."
"; 31 | 32 | echo strtolower($str2)."
"; 33 | echo strtoupper($str2)."
"; -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/LICENSE: -------------------------------------------------------------------------------- 1 | GNU LESSER GENERAL PUBLIC LICENSE 2 | Version 2.1, February 1999 3 | 4 | Copyright (C) 1991, 1999 Free Software Foundation, Inc. 5 | 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 | 474 | Copyright (C) 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 | , 1 April 1990 500 | Ty Coon, President of Vice 501 | 502 | That's all there is to it! -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/README.md: -------------------------------------------------------------------------------- 1 | ![PHPMailer](https://raw.github.com/PHPMailer/PHPMailer/master/examples/images/phpmailer.png) 2 | 3 | # PHPMailer - A full-featured email creation and transfer class for PHP 4 | 5 | Build status: [![Build Status](https://travis-ci.org/PHPMailer/PHPMailer.svg)](https://travis-ci.org/PHPMailer/PHPMailer) 6 | [![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/PHPMailer/PHPMailer/badges/quality-score.png?s=3758e21d279becdf847a557a56a3ed16dfec9d5d)](https://scrutinizer-ci.com/g/PHPMailer/PHPMailer/) 7 | [![Code Coverage](https://scrutinizer-ci.com/g/PHPMailer/PHPMailer/badges/coverage.png?s=3fe6ca5fe8cd2cdf96285756e42932f7ca256962)](https://scrutinizer-ci.com/g/PHPMailer/PHPMailer/) 8 | 9 | [![Latest Stable Version](https://poser.pugx.org/phpmailer/phpmailer/v/stable.svg)](https://packagist.org/packages/phpmailer/phpmailer) [![Total Downloads](https://poser.pugx.org/phpmailer/phpmailer/downloads)](https://packagist.org/packages/phpmailer/phpmailer) [![Latest Unstable Version](https://poser.pugx.org/phpmailer/phpmailer/v/unstable.svg)](https://packagist.org/packages/phpmailer/phpmailer) [![License](https://poser.pugx.org/phpmailer/phpmailer/license.svg)](https://packagist.org/packages/phpmailer/phpmailer) 10 | 11 | ## Class Features 12 | - Probably the world's most popular code for sending email from PHP! 13 | - Used by many open-source projects: WordPress, Drupal, 1CRM, SugarCRM, Yii, Joomla! and many more 14 | - Integrated SMTP support - send without a local mail server 15 | - Send emails with multiple To, CC, BCC and Reply-to addresses 16 | - Multipart/alternative emails for mail clients that do not read HTML email 17 | - Add attachments, including inline 18 | - Support for UTF-8 content and 8bit, base64, binary, and quoted-printable encodings 19 | - SMTP authentication with LOGIN, PLAIN, CRAM-MD5 and XOAUTH2 mechanisms over SSL and SMTP+STARTTLS transports 20 | - Validates email addresses automatically 21 | - Protect against header injection attacks 22 | - Error messages in 47 languages! 23 | - DKIM and S/MIME signing support 24 | - Compatible with PHP 5.5 and later 25 | - Namespaced to prevent name clashes 26 | - Much more! 27 | 28 | ## Why you might need it 29 | Many PHP developers utilize email in their code. The only PHP function that supports this is the `mail()` function. However, it does not provide any assistance for making use of popular features such as HTML-based emails and attachments. 30 | 31 | Formatting email correctly is surprisingly difficult. There are myriad overlapping RFCs, 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! 32 | *Please* don't be tempted to do it yourself - if you don't use PHPMailer, there are many other excellent libraries that you should look at before rolling your own - try [SwiftMailer](https://swiftmailer.symfony.com/), [Zend/Mail](https://zendframework.github.io/zend-mail/), [eZcomponents](https://github.com/zetacomponents/Mail) etc. 33 | 34 | The PHP `mail()` function usually sends via a local mail server, typically fronted by a `sendmail` binary on Linux, BSD and OS X platforms, however, Windows usually doesn't include a local mail server; PHPMailer's integrated SMTP implementation allows email sending on Windows platforms without a local mail server. 35 | 36 | ## License 37 | This software is distributed under the [LGPL 2.1](http://www.gnu.org/licenses/lgpl-2.1.html) license. Please read LICENSE for information on the software availability and distribution. 38 | 39 | ## Installation & loading 40 | 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: 41 | 42 | ```json 43 | "phpmailer/phpmailer": "~6.0" 44 | ``` 45 | 46 | or run 47 | 48 | ```sh 49 | composer require phpmailer/phpmailer 50 | ``` 51 | 52 | Note that the `vendor` folder and the `vendor/autoload.php` script are generated by Composer; they are not part of PHPMailer. 53 | 54 | If you want to use the Gmail XOAUTH2 authentication class, you will also need to add a dependency on the `league/oauth2-client` package in your `composer.json`. 55 | 56 | Alternatively, if you're not using Composer, 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: 57 | 58 | ```php 59 | SMTPDebug = 2; // Enable verbose debug output 97 | $mail->isSMTP(); // Set mailer to use SMTP 98 | $mail->Host = 'smtp1.example.com;smtp2.example.com'; // Specify main and backup SMTP servers 99 | $mail->SMTPAuth = true; // Enable SMTP authentication 100 | $mail->Username = 'user@example.com'; // SMTP username 101 | $mail->Password = 'secret'; // SMTP password 102 | $mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted 103 | $mail->Port = 587; // TCP port to connect to 104 | 105 | //Recipients 106 | $mail->setFrom('from@example.com', 'Mailer'); 107 | $mail->addAddress('joe@example.net', 'Joe User'); // Add a recipient 108 | $mail->addAddress('ellen@example.com'); // Name is optional 109 | $mail->addReplyTo('info@example.com', 'Information'); 110 | $mail->addCC('cc@example.com'); 111 | $mail->addBCC('bcc@example.com'); 112 | 113 | //Attachments 114 | $mail->addAttachment('/var/tmp/file.tar.gz'); // Add attachments 115 | $mail->addAttachment('/tmp/image.jpg', 'new.jpg'); // Optional name 116 | 117 | //Content 118 | $mail->isHTML(true); // Set email format to HTML 119 | $mail->Subject = 'Here is the subject'; 120 | $mail->Body = 'This is the HTML message body in bold!'; 121 | $mail->AltBody = 'This is the body in plain text for non-HTML mail clients'; 122 | 123 | $mail->send(); 124 | echo 'Message has been sent'; 125 | } catch (Exception $e) { 126 | echo 'Message could not be sent. Mailer Error: ', $mail->ErrorInfo; 127 | } 128 | ``` 129 | 130 | You'll find plenty more to play with in the [examples](https://github.com/PHPMailer/PHPMailer/tree/master/examples) folder. 131 | 132 | That's it. You should now be ready to use PHPMailer! 133 | 134 | ## Localization 135 | PHPMailer defaults to English, but in the [language](https://github.com/PHPMailer/PHPMailer/tree/master/language/) folder you'll find numerous (47 at the time of writing!) 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: 136 | 137 | ```php 138 | // To load the French version 139 | $mail->setLanguage('fr', '/optional/path/to/language/directory/'); 140 | ``` 141 | 142 | We welcome corrections and new languages - if you're looking for corrections to do, run the [PHPMailerLangTest.php](https://github.com/PHPMailer/PHPMailer/tree/master/test/PHPMailerLangTest.php) script in the tests folder and it will show any missing translations. 143 | 144 | ## Documentation 145 | Start reading at the [GitHub wiki](https://github.com/PHPMailer/PHPMailer/wiki). If you're having trouble, this should be the first place you look as it's the most frequently updated. 146 | 147 | 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). 148 | 149 | Note that in order to reduce PHPMailer's deployed code footprint, the examples are no longer 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. 150 | 151 | Complete generated API documentation is [available online](http://phpmailer.github.io/PHPMailer/). 152 | 153 | You can generate complete API-level documentation by running `phpdoc` in the top-level folder, and documentation will appear in teh `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/tree/master/test/phpmailerTest.php) a good source of how to do various operations such as encryption. 154 | 155 | 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). 156 | 157 | ## Tests 158 | There is a PHPUnit test script in the [test](https://github.com/PHPMailer/PHPMailer/tree/master/test/) folder. PHPMailer uses PHPUnit 4.8 - we would use 5.x but we need to run on PHP 5.5. 159 | 160 | Build status: [![Build Status](https://travis-ci.org/PHPMailer/PHPMailer.svg)](https://travis-ci.org/PHPMailer/PHPMailer) 161 | 162 | If this isn't passing, is there something you can do to help? 163 | 164 | ## Security 165 | Please disclose any vulnerabilities found responsibly - report any security problems found to the maintainers privately. 166 | 167 | 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. 168 | 169 | 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). 170 | 171 | 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 critical remote code execution vulnerability, responsibly reported by [Dawid Golunski](http://legalhackers.com/advisories/PHPMailer-Exploit-Remote-Code-Exec-CVE-2016-10033-Vuln.html). 172 | 173 | See [SECURITY](https://github.com/PHPMailer/PHPMailer/tree/master/SECURITY.md) for more detail on security issues. 174 | 175 | ## Contributing 176 | Please submit bug reports, suggestions and pull requests to the [GitHub issue tracker](https://github.com/PHPMailer/PHPMailer/issues). 177 | 178 | We're particularly interested in fixing edge-cases, expanding test coverage and updating translations. 179 | 180 | If you found a mistake in the docs, or want to add something, go ahead and amend the wiki - anyone can edit it. 181 | 182 | 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: 183 | 184 | ```sh 185 | git remote set-url upstream https://github.com/PHPMailer/PHPMailer.git 186 | ``` 187 | 188 | Please *don't* use the SourceForge or Google Code projects any more; they are obsolete and no longer maintained. 189 | 190 | ## Sponsorship 191 | Development time and resources for PHPMailer are provided by [Smartmessages.net](https://info.smartmessages.net/), a powerful email marketing system. 192 | 193 | Smartmessages email marketing 194 | 195 | Other contributions are gladly received, whether in beer 🍺, T-shirts 👕, Amazon wishlist raids, or cold, hard cash 💰. If you'd like to donate to say "thank you" to maintainers or contributors, please contact them through individual profile pages via [the contributors page](https://github.com/PHPMailer/PHPMailer/graphs/contributors). 196 | 197 | ## Changelog 198 | See [changelog](changelog.md). 199 | 200 | ## History 201 | - PHPMailer was originally written in 2001 by Brent R. Matzelle as a [SourceForge project](http://sourceforge.net/projects/phpmailer/). 202 | - Marcus Bointon (coolbru on SF) and Andy Prevost (codeworxtech) took over the project in 2004. 203 | - Became an Apache incubator project on Google Code in 2010, managed by Jim Jagielski. 204 | - Marcus created his fork on [GitHub](https://github.com/Synchro/PHPMailer) in 2008. 205 | - Jim and Marcus decide to join forces and use GitHub as the canonical and official repo for PHPMailer in 2013. 206 | - PHPMailer moves to the [PHPMailer organisation](https://github.com/PHPMailer) on GitHub in 2013. 207 | 208 | ### What's changed since moving from SourceForge? 209 | - Official successor to the SourceForge and Google Code projects. 210 | - Test suite. 211 | - Continuous integration with Travis-CI. 212 | - Composer support. 213 | - Public development. 214 | - Additional languages and language strings. 215 | - CRAM-MD5 authentication support. 216 | - Preserves full repo history of authors, commits and branches from the original SourceForge project. 217 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security notices relating to PHPMailer 2 | 3 | Please disclose any vulnerabilities found responsibly - report any security problems found to the maintainers privately. 4 | 5 | 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, 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. 6 | 7 | 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. 8 | 9 | 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). 10 | 11 | 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). 12 | 13 | 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. 14 | 15 | 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. 16 | 17 | 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. 18 | 19 | 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). 20 | 21 | 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). 22 | 23 | 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). 24 | 25 | 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). 26 | 27 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/VERSION: -------------------------------------------------------------------------------- 1 | 6.0.5 -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/get_oauth_token.php: -------------------------------------------------------------------------------- 1 | 8 | * @author Jim Jagielski (jimjag) 9 | * @author Andy Prevost (codeworxtech) 10 | * @author Brent R. Matzelle (original founder) 11 | * @copyright 2012 - 2017 Marcus Bointon 12 | * @copyright 2010 - 2012 Jim Jagielski 13 | * @copyright 2004 - 2009 Andy Prevost 14 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 15 | * @note This program is distributed in the hope that it will be useful - WITHOUT 16 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 17 | * FITNESS FOR A PARTICULAR PURPOSE. 18 | */ 19 | /** 20 | * Get an OAuth2 token from an OAuth2 provider. 21 | * * Install this script on your server so that it's accessible 22 | * as [https/http]:////get_oauth_token.php 23 | * e.g.: http://localhost/phpmailer/get_oauth_token.php 24 | * * Ensure dependencies are installed with 'composer install' 25 | * * Set up an app in your Google/Yahoo/Microsoft account 26 | * * Set the script address as the app's redirect URL 27 | * If no refresh token is obtained when running this file, 28 | * revoke access to your app and run the script again. 29 | */ 30 | 31 | namespace PHPMailer\PHPMailer; 32 | 33 | /** 34 | * Aliases for League Provider Classes 35 | * Make sure you have added these to your composer.json and run `composer install` 36 | * Plenty to choose from here: 37 | * @see http://oauth2-client.thephpleague.com/providers/thirdparty/ 38 | */ 39 | // @see https://github.com/thephpleague/oauth2-google 40 | use League\OAuth2\Client\Provider\Google; 41 | // @see https://packagist.org/packages/hayageek/oauth2-yahoo 42 | use Hayageek\OAuth2\Client\Provider\Yahoo; 43 | // @see https://github.com/stevenmaguire/oauth2-microsoft 44 | use Stevenmaguire\OAuth2\Client\Provider\Microsoft; 45 | 46 | if (!isset($_GET['code']) && !isset($_GET['provider'])) { 47 | ?> 48 | 49 | Select Provider:
50 | Google
51 | Yahoo
52 | Microsoft/Outlook/Hotmail/Live/Office365
53 | 54 | 55 | $clientId, 86 | 'clientSecret' => $clientSecret, 87 | 'redirectUri' => $redirectUri, 88 | 'accessType' => 'offline' 89 | ]; 90 | 91 | $options = []; 92 | $provider = null; 93 | 94 | switch ($providerName) { 95 | case 'Google': 96 | $provider = new Google($params); 97 | $options = [ 98 | 'scope' => [ 99 | 'https://mail.google.com/' 100 | ] 101 | ]; 102 | break; 103 | case 'Yahoo': 104 | $provider = new Yahoo($params); 105 | break; 106 | case 'Microsoft': 107 | $provider = new Microsoft($params); 108 | $options = [ 109 | 'scope' => [ 110 | 'wl.imap', 111 | 'wl.offline_access' 112 | ] 113 | ]; 114 | break; 115 | } 116 | 117 | if (null === $provider) { 118 | exit('Provider missing'); 119 | } 120 | 121 | if (!isset($_GET['code'])) { 122 | // If we don't have an authorization code then get one 123 | $authUrl = $provider->getAuthorizationUrl($options); 124 | $_SESSION['oauth2state'] = $provider->getState(); 125 | header('Location: ' . $authUrl); 126 | exit; 127 | // Check given state against previously stored one to mitigate CSRF attack 128 | } elseif (empty($_GET['state']) || ($_GET['state'] !== $_SESSION['oauth2state'])) { 129 | unset($_SESSION['oauth2state']); 130 | unset($_SESSION['provider']); 131 | exit('Invalid state'); 132 | } else { 133 | unset($_SESSION['provider']); 134 | // Try to get an access token (using the authorization code grant) 135 | $token = $provider->getAccessToken( 136 | 'authorization_code', 137 | [ 138 | 'code' => $_GET['code'] 139 | ] 140 | ); 141 | // Use this to interact with an API on the users behalf 142 | // Use this to get a new access token if the old one expires 143 | echo 'Refresh Token: ', $token->getRefreshToken(); 144 | } 145 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-am.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | $PHPMAILER_LANG['authenticate'] = 'SMTP -ի սխալ: չհաջողվեց ստուգել իսկությունը.'; 9 | $PHPMAILER_LANG['connect_host'] = 'SMTP -ի սխալ: չհաջողվեց կապ հաստատել SMTP սերվերի հետ.'; 10 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP -ի սխալ: տվյալները ընդունված չեն.'; 11 | $PHPMAILER_LANG['empty_message'] = 'Հաղորդագրությունը դատարկ է'; 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['invalid_address'] = 'Հասցեն սխալ է: '; 19 | $PHPMAILER_LANG['mailer_not_supported'] = ' փոստային սերվերի հետ չի աշխատում.'; 20 | $PHPMAILER_LANG['provide_address'] = 'Անհրաժեշտ է տրամադրել գոնե մեկ ստացողի e-mail հասցե.'; 21 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP -ի սխալ: չի հաջողվել ուղարկել հետևյալ ստացողների հասցեներին: '; 22 | $PHPMAILER_LANG['signing'] = 'Ստորագրման սխալ: '; 23 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP -ի connect() ֆունկցիան չի հաջողվել'; 24 | $PHPMAILER_LANG['smtp_error'] = 'SMTP սերվերի սխալ: '; 25 | $PHPMAILER_LANG['variable_set'] = 'Չի հաջողվում ստեղծել կամ վերափոխել փոփոխականը: '; 26 | $PHPMAILER_LANG['extension_missing'] = 'Հավելվածը բացակայում է: '; 27 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-ar.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | $PHPMAILER_LANG['authenticate'] = 'خطأ SMTP : لا يمكن تأكيد الهوية.'; 9 | $PHPMAILER_LANG['connect_host'] = 'خطأ SMTP: لا يمكن الاتصال بالخادم SMTP.'; 10 | $PHPMAILER_LANG['data_not_accepted'] = 'خطأ SMTP: لم يتم قبول المعلومات .'; 11 | $PHPMAILER_LANG['empty_message'] = 'نص الرسالة فارغ'; 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'] = 'لا يمكن توفير خدمة البريد.'; 18 | $PHPMAILER_LANG['invalid_address'] = 'الإرسال غير ممكن لأن عنوان البريد الإلكتروني غير صالح: '; 19 | $PHPMAILER_LANG['mailer_not_supported'] = ' برنامج الإرسال غير مدعوم.'; 20 | $PHPMAILER_LANG['provide_address'] = 'يجب توفير عنوان البريد الإلكتروني لمستلم واحد على الأقل.'; 21 | $PHPMAILER_LANG['recipients_failed'] = 'خطأ SMTP: الأخطاء التالية ' . 22 | 'فشل في الارسال لكل من : '; 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'] = 'Extension missing: '; 28 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-az.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | $PHPMAILER_LANG['authenticate'] = 'SMTP Greška: Neuspjela prijava.'; 9 | $PHPMAILER_LANG['connect_host'] = 'SMTP Greška: Nije moguće spojiti se sa SMTP serverom.'; 10 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP Greška: Podatci nisu prihvaćeni.'; 11 | $PHPMAILER_LANG['empty_message'] = 'Sadržaj poruke je prazan.'; 12 | $PHPMAILER_LANG['encoding'] = 'Nepoznata kriptografija: '; 13 | $PHPMAILER_LANG['execute'] = 'Nije moguće izvršiti naredbu: '; 14 | $PHPMAILER_LANG['file_access'] = 'Nije moguće pristupiti datoteci: '; 15 | $PHPMAILER_LANG['file_open'] = 'Nije moguće otvoriti datoteku: '; 16 | $PHPMAILER_LANG['from_failed'] = 'SMTP Greška: Slanje sa navedenih e-mail adresa nije uspjelo: '; 17 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP Greška: Slanje na navedene e-mail adrese nije uspjelo: '; 18 | $PHPMAILER_LANG['instantiate'] = 'Ne mogu pokrenuti mail funkcionalnost.'; 19 | $PHPMAILER_LANG['invalid_address'] = 'E-mail nije poslan. Neispravna e-mail adresa: '; 20 | $PHPMAILER_LANG['mailer_not_supported'] = ' mailer nije podržan.'; 21 | $PHPMAILER_LANG['provide_address'] = 'Definišite barem jednu adresu primaoca.'; 22 | $PHPMAILER_LANG['signing'] = 'Greška prilikom prijave: '; 23 | $PHPMAILER_LANG['smtp_connect_failed'] = 'Spajanje na SMTP server nije uspjelo.'; 24 | $PHPMAILER_LANG['smtp_error'] = 'SMTP greška: '; 25 | $PHPMAILER_LANG['variable_set'] = 'Nije moguće postaviti varijablu ili je vratiti nazad: '; 26 | $PHPMAILER_LANG['extension_missing'] = 'Nedostaje ekstenzija: '; -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-be.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | $PHPMAILER_LANG['authenticate'] = 'Памылка SMTP: памылка ідэнтыфікацыі.'; 9 | $PHPMAILER_LANG['connect_host'] = 'Памылка SMTP: нельга ўстанавіць сувязь з SMTP-серверам.'; 10 | $PHPMAILER_LANG['data_not_accepted'] = 'Памылка SMTP: звесткі непрынятыя.'; 11 | $PHPMAILER_LANG['empty_message'] = 'Пустое паведамленне.'; 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['invalid_address'] = 'Нельга даслаць паведамленне, няправільны email атрымальніка: '; 19 | $PHPMAILER_LANG['provide_address'] = 'Запоўніце, калі ласка, правільны email атрымальніка.'; 20 | $PHPMAILER_LANG['mailer_not_supported'] = ' - паштовы сервер не падтрымліваецца.'; 21 | $PHPMAILER_LANG['recipients_failed'] = 'Памылка SMTP: няправільныя атрымальнікі: '; 22 | $PHPMAILER_LANG['signing'] = 'Памылка подпісу паведамлення: '; 23 | $PHPMAILER_LANG['smtp_connect_failed'] = 'Памылка сувязі з SMTP-серверам.'; 24 | $PHPMAILER_LANG['smtp_error'] = 'Памылка SMTP: '; 25 | $PHPMAILER_LANG['variable_set'] = 'Нельга ўстанавіць або перамяніць значэнне пераменнай: '; 26 | //$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; 27 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-bg.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | $PHPMAILER_LANG['authenticate'] = 'SMTP грешка: Не може да се удостовери пред сървъра.'; 9 | $PHPMAILER_LANG['connect_host'] = 'SMTP грешка: Не може да се свърже с SMTP хоста.'; 10 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP грешка: данните не са приети.'; 11 | $PHPMAILER_LANG['empty_message'] = 'Съдържанието на съобщението е празно'; 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['invalid_address'] = 'Невалиден адрес: '; 19 | $PHPMAILER_LANG['mailer_not_supported'] = ' - пощенски сървър не се поддържа.'; 20 | $PHPMAILER_LANG['provide_address'] = 'Трябва да предоставите поне един email адрес за получател.'; 21 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP грешка: Следните адреси за Получател са невалидни: '; 22 | $PHPMAILER_LANG['signing'] = 'Грешка при подписване: '; 23 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP провален connect().'; 24 | $PHPMAILER_LANG['smtp_error'] = 'SMTP сървърна грешка: '; 25 | $PHPMAILER_LANG['variable_set'] = 'Не може да се установи или възстанови променлива: '; 26 | $PHPMAILER_LANG['extension_missing'] = 'Липсва разширение: '; 27 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-ca.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | $PHPMAILER_LANG['authenticate'] = 'Error SMTP: No s’ha pogut autenticar.'; 9 | $PHPMAILER_LANG['connect_host'] = 'Error SMTP: No es pot connectar al servidor SMTP.'; 10 | $PHPMAILER_LANG['data_not_accepted'] = 'Error SMTP: Dades no acceptades.'; 11 | $PHPMAILER_LANG['empty_message'] = 'El cos del missatge està buit.'; 12 | $PHPMAILER_LANG['encoding'] = 'Codificació desconeguda: '; 13 | $PHPMAILER_LANG['execute'] = 'No es pot executar: '; 14 | $PHPMAILER_LANG['file_access'] = 'No es pot accedir a l’arxiu: '; 15 | $PHPMAILER_LANG['file_open'] = 'Error d’Arxiu: No es pot obrir l’arxiu: '; 16 | $PHPMAILER_LANG['from_failed'] = 'La(s) següent(s) adreces de remitent han fallat: '; 17 | $PHPMAILER_LANG['instantiate'] = 'No s’ha pogut crear una instància de la funció Mail.'; 18 | $PHPMAILER_LANG['invalid_address'] = 'Adreça d’email invalida: '; 19 | $PHPMAILER_LANG['mailer_not_supported'] = ' mailer no està suportat'; 20 | $PHPMAILER_LANG['provide_address'] = 'S’ha de proveir almenys una adreça d’email com a destinatari.'; 21 | $PHPMAILER_LANG['recipients_failed'] = 'Error SMTP: Els següents destinataris han fallat: '; 22 | $PHPMAILER_LANG['signing'] = 'Error al signar: '; 23 | $PHPMAILER_LANG['smtp_connect_failed'] = 'Ha fallat el SMTP Connect().'; 24 | $PHPMAILER_LANG['smtp_error'] = 'Error del servidor SMTP: '; 25 | $PHPMAILER_LANG['variable_set'] = 'No s’ha pogut establir o restablir la variable: '; 26 | //$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; 27 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-ch.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | $PHPMAILER_LANG['authenticate'] = 'SMTP 错误:身份验证失败。'; 9 | $PHPMAILER_LANG['connect_host'] = 'SMTP 错误: 不能连接SMTP主机。'; 10 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP 错误: 数据不可接受。'; 11 | //$PHPMAILER_LANG['empty_message'] = 'Message body empty'; 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['invalid_address'] = 'Invalid address: '; 19 | $PHPMAILER_LANG['mailer_not_supported'] = ' 您所选择的发送邮件的方法并不支持。'; 20 | $PHPMAILER_LANG['provide_address'] = '您必须提供至少一个 收信人的email地址。'; 21 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP 错误: 下面的 收件人失败了: '; 22 | //$PHPMAILER_LANG['signing'] = 'Signing Error: '; 23 | //$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.'; 24 | //$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: '; 25 | //$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: '; 26 | //$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; 27 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-cs.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | $PHPMAILER_LANG['authenticate'] = 'SMTP fejl: Kunne ikke logge på.'; 9 | $PHPMAILER_LANG['connect_host'] = 'SMTP fejl: Kunne ikke tilslutte SMTP serveren.'; 10 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP fejl: Data kunne ikke accepteres.'; 11 | //$PHPMAILER_LANG['empty_message'] = 'Message body empty'; 12 | $PHPMAILER_LANG['encoding'] = 'Ukendt encode-format: '; 13 | $PHPMAILER_LANG['execute'] = 'Kunne ikke køre: '; 14 | $PHPMAILER_LANG['file_access'] = 'Ingen adgang til fil: '; 15 | $PHPMAILER_LANG['file_open'] = 'Fil fejl: Kunne ikke åbne filen: '; 16 | $PHPMAILER_LANG['from_failed'] = 'Følgende afsenderadresse er forkert: '; 17 | $PHPMAILER_LANG['instantiate'] = 'Kunne ikke initialisere email funktionen.'; 18 | //$PHPMAILER_LANG['invalid_address'] = 'Invalid address: '; 19 | $PHPMAILER_LANG['mailer_not_supported'] = ' mailer understøttes ikke.'; 20 | $PHPMAILER_LANG['provide_address'] = 'Du skal indtaste mindst en modtagers emailadresse.'; 21 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP fejl: Følgende modtagere er forkerte: '; 22 | //$PHPMAILER_LANG['signing'] = 'Signing Error: '; 23 | //$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.'; 24 | //$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: '; 25 | //$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: '; 26 | //$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; 27 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-de.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | $PHPMAILER_LANG['authenticate'] = 'Error SMTP: Imposible autentificar.'; 9 | $PHPMAILER_LANG['connect_host'] = 'Error SMTP: Imposible conectar al servidor SMTP.'; 10 | $PHPMAILER_LANG['data_not_accepted'] = 'Error SMTP: Datos no aceptados.'; 11 | $PHPMAILER_LANG['empty_message'] = 'El cuerpo del mensaje está vacío.'; 12 | $PHPMAILER_LANG['encoding'] = 'Codificación desconocida: '; 13 | $PHPMAILER_LANG['execute'] = 'Imposible ejecutar: '; 14 | $PHPMAILER_LANG['file_access'] = 'Imposible acceder al archivo: '; 15 | $PHPMAILER_LANG['file_open'] = 'Error de Archivo: Imposible abrir el archivo: '; 16 | $PHPMAILER_LANG['from_failed'] = 'La(s) siguiente(s) direcciones de remitente fallaron: '; 17 | $PHPMAILER_LANG['instantiate'] = 'Imposible crear una instancia de la función Mail.'; 18 | $PHPMAILER_LANG['invalid_address'] = 'Imposible enviar: dirección de email inválido: '; 19 | $PHPMAILER_LANG['mailer_not_supported'] = ' mailer no está soportado.'; 20 | $PHPMAILER_LANG['provide_address'] = 'Debe proporcionar al menos una dirección de email de destino.'; 21 | $PHPMAILER_LANG['recipients_failed'] = 'Error SMTP: Los siguientes destinos fallaron: '; 22 | $PHPMAILER_LANG['signing'] = 'Error al firmar: '; 23 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() falló.'; 24 | $PHPMAILER_LANG['smtp_error'] = 'Error del servidor SMTP: '; 25 | $PHPMAILER_LANG['variable_set'] = 'No se pudo configurar la variable: '; 26 | $PHPMAILER_LANG['extension_missing'] = 'Extensión faltante: '; 27 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-et.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | 9 | $PHPMAILER_LANG['authenticate'] = 'SMTP Viga: Autoriseerimise viga.'; 10 | $PHPMAILER_LANG['connect_host'] = 'SMTP Viga: Ei õnnestunud luua ühendust SMTP serveriga.'; 11 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP Viga: Vigased andmed.'; 12 | $PHPMAILER_LANG['empty_message'] = 'Tühi kirja sisu'; 13 | $PHPMAILER_LANG["encoding"] = 'Tundmatu kodeering: '; 14 | $PHPMAILER_LANG['execute'] = 'Tegevus ebaõnnestus: '; 15 | $PHPMAILER_LANG['file_access'] = 'Pole piisavalt õiguseid järgneva faili avamiseks: '; 16 | $PHPMAILER_LANG['file_open'] = 'Faili Viga: Faili avamine ebaõnnestus: '; 17 | $PHPMAILER_LANG['from_failed'] = 'Järgnev saatja e-posti aadress on vigane: '; 18 | $PHPMAILER_LANG['instantiate'] = 'mail funktiooni käivitamine ebaõnnestus.'; 19 | $PHPMAILER_LANG['invalid_address'] = 'Saatmine peatatud, e-posti address vigane: '; 20 | $PHPMAILER_LANG['provide_address'] = 'Te peate määrama vähemalt ühe saaja e-posti aadressi.'; 21 | $PHPMAILER_LANG['mailer_not_supported'] = ' maileri tugi puudub.'; 22 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP Viga: Järgnevate saajate e-posti aadressid on vigased: '; 23 | $PHPMAILER_LANG["signing"] = 'Viga allkirjastamisel: '; 24 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() ebaõnnestus.'; 25 | $PHPMAILER_LANG['smtp_error'] = 'SMTP serveri viga: '; 26 | $PHPMAILER_LANG['variable_set'] = 'Ei õnnestunud määrata või lähtestada muutujat: '; 27 | $PHPMAILER_LANG['extension_missing'] = 'Nõutud laiendus on puudu: '; 28 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-fa.php: -------------------------------------------------------------------------------- 1 | 6 | * @author Mohammad Hossein Mojtahedi 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'] = 'خطای File: امکان بازکردن فایل وجود ندارد: '; 17 | $PHPMAILER_LANG['from_failed'] = 'آدرس فرستنده اشتباه است: '; 18 | $PHPMAILER_LANG['instantiate'] = 'امکان معرفی تابع ایمیل وجود ندارد.'; 19 | $PHPMAILER_LANG['invalid_address'] = 'آدرس ایمیل معتبر نیست: '; 20 | $PHPMAILER_LANG['mailer_not_supported'] = ' mailer پشتیبانی نمی‌شود.'; 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 Server: '; 26 | $PHPMAILER_LANG['variable_set'] = 'امکان ارسال یا ارسال مجدد متغیر‌ها وجود ندارد: '; 27 | //$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; 28 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-fi.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | $PHPMAILER_LANG['authenticate'] = 'SMTP feilur: Kundi ikki góðkenna.'; 9 | $PHPMAILER_LANG['connect_host'] = 'SMTP feilur: Kundi ikki knýta samband við SMTP vert.'; 10 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP feilur: Data ikki góðkent.'; 11 | //$PHPMAILER_LANG['empty_message'] = 'Message body empty'; 12 | $PHPMAILER_LANG['encoding'] = 'Ókend encoding: '; 13 | $PHPMAILER_LANG['execute'] = 'Kundi ikki útføra: '; 14 | $PHPMAILER_LANG['file_access'] = 'Kundi ikki tilganga fílu: '; 15 | $PHPMAILER_LANG['file_open'] = 'Fílu feilur: Kundi ikki opna fílu: '; 16 | $PHPMAILER_LANG['from_failed'] = 'fylgjandi Frá/From adressa miseydnaðist: '; 17 | $PHPMAILER_LANG['instantiate'] = 'Kuni ikki instantiera mail funktión.'; 18 | //$PHPMAILER_LANG['invalid_address'] = 'Invalid address: '; 19 | $PHPMAILER_LANG['mailer_not_supported'] = ' er ikki supporterað.'; 20 | $PHPMAILER_LANG['provide_address'] = 'Tú skal uppgeva minst móttakara-emailadressu(r).'; 21 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP Feilur: Fylgjandi móttakarar miseydnaðust: '; 22 | //$PHPMAILER_LANG['signing'] = 'Signing Error: '; 23 | //$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.'; 24 | //$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: '; 25 | //$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: '; 26 | //$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; 27 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-fr.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | $PHPMAILER_LANG['authenticate'] = 'Erro SMTP: Non puido ser autentificado.'; 9 | $PHPMAILER_LANG['connect_host'] = 'Erro SMTP: Non puido conectar co servidor SMTP.'; 10 | $PHPMAILER_LANG['data_not_accepted'] = 'Erro SMTP: Datos non aceptados.'; 11 | $PHPMAILER_LANG['empty_message'] = 'Corpo da mensaxe vacía'; 12 | $PHPMAILER_LANG['encoding'] = 'Codificación descoñecida: '; 13 | $PHPMAILER_LANG['execute'] = 'Non puido ser executado: '; 14 | $PHPMAILER_LANG['file_access'] = 'Nob puido acceder ó arquivo: '; 15 | $PHPMAILER_LANG['file_open'] = 'Erro de Arquivo: No puido abrir o arquivo: '; 16 | $PHPMAILER_LANG['from_failed'] = 'A(s) seguinte(s) dirección(s) de remitente(s) deron erro: '; 17 | $PHPMAILER_LANG['instantiate'] = 'Non puido crear unha instancia da función Mail.'; 18 | $PHPMAILER_LANG['invalid_address'] = 'Non puido envia-lo correo: dirección de email inválida: '; 19 | $PHPMAILER_LANG['mailer_not_supported'] = ' mailer non está soportado.'; 20 | $PHPMAILER_LANG['provide_address'] = 'Debe engadir polo menos unha dirección de email coma destino.'; 21 | $PHPMAILER_LANG['recipients_failed'] = 'Erro SMTP: Os seguintes destinos fallaron: '; 22 | $PHPMAILER_LANG['signing'] = 'Erro ó firmar: '; 23 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() fallou.'; 24 | $PHPMAILER_LANG['smtp_error'] = 'Erro do servidor SMTP: '; 25 | $PHPMAILER_LANG['variable_set'] = 'Non puidemos axustar ou reaxustar a variábel: '; 26 | //$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; 27 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-he.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | $PHPMAILER_LANG['authenticate'] = 'שגיאת SMTP: פעולת האימות נכשלה.'; 9 | $PHPMAILER_LANG['connect_host'] = 'שגיאת SMTP: לא הצלחתי להתחבר לשרת SMTP.'; 10 | $PHPMAILER_LANG['data_not_accepted'] = 'שגיאת SMTP: מידע לא התקבל.'; 11 | $PHPMAILER_LANG['empty_message'] = 'גוף ההודעה ריק'; 12 | $PHPMAILER_LANG['invalid_address'] = 'כתובת שגויה: '; 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['mailer_not_supported'] = ' אינה נתמכת.'; 20 | $PHPMAILER_LANG['provide_address'] = 'חובה לספק לפחות כתובת אחת של מקבל המייל.'; 21 | $PHPMAILER_LANG['recipients_failed'] = 'שגיאת SMTP: הנמענים הבאים נכשלו: '; 22 | $PHPMAILER_LANG['signing'] = 'שגיאת חתימה: '; 23 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.'; 24 | $PHPMAILER_LANG['smtp_error'] = 'שגיאת שרת SMTP: '; 25 | $PHPMAILER_LANG['variable_set'] = 'לא ניתן לקבוע או לשנות את המשתנה: '; 26 | //$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; 27 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-hi.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | $PHPMAILER_LANG['authenticate'] = 'SMTP त्रुटि: प्रामाणिकता की जांच नहीं हो सका। '; 9 | $PHPMAILER_LANG['connect_host'] = 'SMTP त्रुटि: SMTP सर्वर से कनेक्ट नहीं हो सका। '; 10 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP त्रुटि: डेटा स्वीकार नहीं किया जाता है। '; 11 | $PHPMAILER_LANG['empty_message'] = 'संदेश खाली है। '; 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'] = 'मेल फ़ंक्शन कॉल नहीं कर सकता है।'; 18 | $PHPMAILER_LANG['invalid_address'] = 'पता गलत है। '; 19 | $PHPMAILER_LANG['mailer_not_supported'] = 'मेल सर्वर के साथ काम नहीं करता है। '; 20 | $PHPMAILER_LANG['provide_address'] = 'आपको कम से कम एक प्राप्तकर्ता का ई-मेल पता प्रदान करना होगा।'; 21 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP त्रुटि: निम्न प्राप्तकर्ताओं को पते भेजने में विफल। '; 22 | $PHPMAILER_LANG['signing'] = 'साइनअप त्रुटि:। '; 23 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP का connect () फ़ंक्शन विफल हुआ। '; 24 | $PHPMAILER_LANG['smtp_error'] = 'SMTP सर्वर त्रुटि। '; 25 | $PHPMAILER_LANG['variable_set'] = 'चर को बना या संशोधित नहीं किया जा सकता। '; 26 | $PHPMAILER_LANG['extension_missing'] = 'एक्सटेन्षन गायब है: '; 27 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-hr.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | $PHPMAILER_LANG['authenticate'] = 'SMTP Greška: Neuspjela autentikacija.'; 9 | $PHPMAILER_LANG['connect_host'] = 'SMTP Greška: Ne mogu se spojiti na SMTP poslužitelj.'; 10 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP Greška: Podatci nisu prihvaćeni.'; 11 | $PHPMAILER_LANG['empty_message'] = 'Sadržaj poruke je prazan.'; 12 | $PHPMAILER_LANG['encoding'] = 'Nepoznati encoding: '; 13 | $PHPMAILER_LANG['execute'] = 'Nije moguće izvršiti naredbu: '; 14 | $PHPMAILER_LANG['file_access'] = 'Nije moguće pristupiti datoteci: '; 15 | $PHPMAILER_LANG['file_open'] = 'Nije moguće otvoriti datoteku: '; 16 | $PHPMAILER_LANG['from_failed'] = 'SMTP Greška: Slanje s navedenih e-mail adresa nije uspjelo: '; 17 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP Greška: Slanje na navedenih e-mail adresa nije uspjelo: '; 18 | $PHPMAILER_LANG['instantiate'] = 'Ne mogu pokrenuti mail funkcionalnost.'; 19 | $PHPMAILER_LANG['invalid_address'] = 'E-mail nije poslan. Neispravna e-mail adresa: '; 20 | $PHPMAILER_LANG['mailer_not_supported'] = ' mailer nije podržan.'; 21 | $PHPMAILER_LANG['provide_address'] = 'Definirajte barem jednu adresu primatelja.'; 22 | $PHPMAILER_LANG['signing'] = 'Greška prilikom prijave: '; 23 | $PHPMAILER_LANG['smtp_connect_failed'] = 'Spajanje na SMTP poslužitelj nije uspjelo.'; 24 | $PHPMAILER_LANG['smtp_error'] = 'Greška SMTP poslužitelja: '; 25 | $PHPMAILER_LANG['variable_set'] = 'Ne mogu postaviti varijablu niti ju vratiti nazad: '; 26 | $PHPMAILER_LANG['extension_missing'] = 'Nedostaje proširenje: '; 27 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-hu.php: -------------------------------------------------------------------------------- 1 | 6 | * @author @januridp 7 | */ 8 | 9 | $PHPMAILER_LANG['authenticate'] = 'Kesalahan SMTP: Tidak dapat mengotentikasi.'; 10 | $PHPMAILER_LANG['connect_host'] = 'Kesalahan SMTP: Tidak dapat terhubung ke host SMTP.'; 11 | $PHPMAILER_LANG['data_not_accepted'] = 'Kesalahan SMTP: Data tidak diterima peladen.'; 12 | $PHPMAILER_LANG['empty_message'] = 'Isi pesan kosong'; 13 | $PHPMAILER_LANG['encoding'] = 'Pengkodean karakter tidak dikenali: '; 14 | $PHPMAILER_LANG['execute'] = 'Tidak dapat menjalankan proses : '; 15 | $PHPMAILER_LANG['file_access'] = 'Tidak dapat mengakses berkas : '; 16 | $PHPMAILER_LANG['file_open'] = 'Kesalahan File: Berkas tidak bisa dibuka : '; 17 | $PHPMAILER_LANG['from_failed'] = 'Alamat pengirim berikut mengakibatkan kesalahan : '; 18 | $PHPMAILER_LANG['instantiate'] = 'Tidak dapat menginisialisasi fungsi surel'; 19 | $PHPMAILER_LANG['invalid_address'] = 'Gagal terkirim, alamat surel tidak benar : '; 20 | $PHPMAILER_LANG['provide_address'] = 'Harus disediakan minimal satu alamat tujuan'; 21 | $PHPMAILER_LANG['mailer_not_supported'] = 'Pengirim tidak didukung'; 22 | $PHPMAILER_LANG['recipients_failed'] = 'Kesalahan SMTP: Alamat tujuan berikut menghasilkan kesalahan : '; 23 | $PHPMAILER_LANG['signing'] = 'Kesalahan dalam tanda tangan : '; 24 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() gagal.'; 25 | $PHPMAILER_LANG['smtp_error'] = 'Kesalahan pada pelayan SMTP : '; 26 | $PHPMAILER_LANG['variable_set'] = 'Tidak berhasil mengatur atau mengatur ulang variable : '; 27 | $PHPMAILER_LANG['extension_missing'] = 'Ekstensi hilang: '; 28 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-it.php: -------------------------------------------------------------------------------- 1 | 6 | * @author Stefano Sabatini 7 | */ 8 | 9 | $PHPMAILER_LANG['authenticate'] = 'SMTP Error: Impossibile autenticarsi.'; 10 | $PHPMAILER_LANG['connect_host'] = 'SMTP Error: Impossibile connettersi all\'host SMTP.'; 11 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP Error: Dati non accettati dal server.'; 12 | $PHPMAILER_LANG['empty_message'] = 'Il corpo del messaggio è vuoto'; 13 | $PHPMAILER_LANG['encoding'] = 'Codifica dei caratteri sconosciuta: '; 14 | $PHPMAILER_LANG['execute'] = 'Impossibile eseguire l\'operazione: '; 15 | $PHPMAILER_LANG['file_access'] = 'Impossibile accedere al file: '; 16 | $PHPMAILER_LANG['file_open'] = 'File Error: Impossibile aprire il file: '; 17 | $PHPMAILER_LANG['from_failed'] = 'I seguenti indirizzi mittenti hanno generato errore: '; 18 | $PHPMAILER_LANG['instantiate'] = 'Impossibile istanziare la funzione mail'; 19 | $PHPMAILER_LANG['invalid_address'] = 'Impossibile inviare, l\'indirizzo email non è valido: '; 20 | $PHPMAILER_LANG['provide_address'] = 'Deve essere fornito almeno un indirizzo ricevente'; 21 | $PHPMAILER_LANG['mailer_not_supported'] = 'Mailer non supportato'; 22 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP Error: I seguenti indirizzi destinatari hanno generato un errore: '; 23 | $PHPMAILER_LANG['signing'] = 'Errore nella firma: '; 24 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() fallita.'; 25 | $PHPMAILER_LANG['smtp_error'] = 'Errore del server SMTP: '; 26 | $PHPMAILER_LANG['variable_set'] = 'Impossibile impostare o resettare la variabile: '; 27 | //$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; 28 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-ja.php: -------------------------------------------------------------------------------- 1 | 6 | * @author Yoshi Sakai 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'] = 'Message body empty'; 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'] = 'メール関数が正常に動作しませんでした。'; 19 | //$PHPMAILER_LANG['invalid_address'] = 'Invalid address: '; 20 | $PHPMAILER_LANG['provide_address'] = '少なくとも1つメールアドレスを 指定する必要があります。'; 21 | $PHPMAILER_LANG['mailer_not_supported'] = ' メーラーがサポートされていません。'; 22 | $PHPMAILER_LANG['recipients_failed'] = 'SMTPエラー: 次の受信者アドレスに 間違いがあります: '; 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: '; 28 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-ka.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | $PHPMAILER_LANG['authenticate'] = 'SMTP შეცდომა: ავტორიზაცია შეუძლებელია.'; 9 | $PHPMAILER_LANG['connect_host'] = 'SMTP შეცდომა: SMTP სერვერთან დაკავშირება შეუძლებელია.'; 10 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP შეცდომა: მონაცემები არ იქნა მიღებული.'; 11 | $PHPMAILER_LANG['encoding'] = 'კოდირების უცნობი ტიპი: '; 12 | $PHPMAILER_LANG['execute'] = 'შეუძლებელია შემდეგი ბრძანების შესრულება: '; 13 | $PHPMAILER_LANG['file_access'] = 'შეუძლებელია წვდომა ფაილთან: '; 14 | $PHPMAILER_LANG['file_open'] = 'ფაილური სისტემის შეცდომა: არ იხსნება ფაილი: '; 15 | $PHPMAILER_LANG['from_failed'] = 'გამგზავნის არასწორი მისამართი: '; 16 | $PHPMAILER_LANG['instantiate'] = 'mail ფუნქციის გაშვება ვერ ხერხდება.'; 17 | $PHPMAILER_LANG['provide_address'] = 'გთხოვთ მიუთითოთ ერთი ადრესატის e-mail მისამართი მაინც.'; 18 | $PHPMAILER_LANG['mailer_not_supported'] = ' - საფოსტო სერვერის მხარდაჭერა არ არის.'; 19 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP შეცდომა: შემდეგ მისამართებზე გაგზავნა ვერ მოხერხდა: '; 20 | $PHPMAILER_LANG['empty_message'] = 'შეტყობინება ცარიელია'; 21 | $PHPMAILER_LANG['invalid_address'] = 'არ გაიგზავნა, e-mail მისამართის არასწორი ფორმატი: '; 22 | $PHPMAILER_LANG['signing'] = 'ხელმოწერის შეცდომა: '; 23 | $PHPMAILER_LANG['smtp_connect_failed'] = 'შეცდომა SMTP სერვერთან დაკავშირებისას'; 24 | $PHPMAILER_LANG['smtp_error'] = 'SMTP სერვერის შეცდომა: '; 25 | $PHPMAILER_LANG['variable_set'] = 'შეუძლებელია შემდეგი ცვლადის შექმნა ან შეცვლა: '; 26 | $PHPMAILER_LANG['extension_missing'] = 'ბიბლიოთეკა არ არსებობს: '; 27 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-ko.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | $PHPMAILER_LANG['authenticate'] = 'SMTP 오류: 인증할 수 없습니다.'; 9 | $PHPMAILER_LANG['connect_host'] = 'SMTP 오류: SMTP 호스트에 접속할 수 없습니다.'; 10 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP 오류: 데이터가 받아들여지지 않았습니다.'; 11 | $PHPMAILER_LANG['empty_message'] = '메세지 내용이 없습니다'; 12 | $PHPMAILER_LANG['encoding'] = '알 수 없는 인코딩: '; 13 | $PHPMAILER_LANG['execute'] = '실행 불가: '; 14 | $PHPMAILER_LANG['file_access'] = '파일 접근 불가: '; 15 | $PHPMAILER_LANG['file_open'] = '파일 오류: 파일을 열 수 없습니다: '; 16 | $PHPMAILER_LANG['from_failed'] = '다음 From 주소에서 오류가 발생했습니다: '; 17 | $PHPMAILER_LANG['instantiate'] = 'mail 함수를 인스턴스화할 수 없습니다'; 18 | $PHPMAILER_LANG['invalid_address'] = '잘못된 주소: '; 19 | $PHPMAILER_LANG['mailer_not_supported'] = ' 메일러는 지원되지 않습니다.'; 20 | $PHPMAILER_LANG['provide_address'] = '적어도 한 개 이상의 수신자 메일 주소를 제공해야 합니다.'; 21 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP 오류: 다음 수신자에서 오류가 발생했습니다: '; 22 | $PHPMAILER_LANG['signing'] = '서명 오류: '; 23 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP 연결을 실패하였습니다.'; 24 | $PHPMAILER_LANG['smtp_error'] = 'SMTP 서버 오류: '; 25 | $PHPMAILER_LANG['variable_set'] = '변수 설정 및 초기화 불가: '; 26 | $PHPMAILER_LANG['extension_missing'] = '확장자 없음: '; 27 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-lt.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | $PHPMAILER_LANG['authenticate'] = 'SMTP klaida: autentifikacija nepavyko.'; 9 | $PHPMAILER_LANG['connect_host'] = 'SMTP klaida: nepavyksta prisijungti prie SMTP stoties.'; 10 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP klaida: duomenys nepriimti.'; 11 | $PHPMAILER_LANG['empty_message'] = 'Laiško turinys tuščias'; 12 | $PHPMAILER_LANG['encoding'] = 'Neatpažinta koduotė: '; 13 | $PHPMAILER_LANG['execute'] = 'Nepavyko įvykdyti komandos: '; 14 | $PHPMAILER_LANG['file_access'] = 'Byla nepasiekiama: '; 15 | $PHPMAILER_LANG['file_open'] = 'Bylos klaida: Nepavyksta atidaryti: '; 16 | $PHPMAILER_LANG['from_failed'] = 'Neteisingas siuntėjo adresas: '; 17 | $PHPMAILER_LANG['instantiate'] = 'Nepavyko paleisti mail funkcijos.'; 18 | $PHPMAILER_LANG['invalid_address'] = 'Neteisingas adresas: '; 19 | $PHPMAILER_LANG['mailer_not_supported'] = ' pašto stotis nepalaikoma.'; 20 | $PHPMAILER_LANG['provide_address'] = 'Nurodykite bent vieną gavėjo adresą.'; 21 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP klaida: nepavyko išsiųsti šiems gavėjams: '; 22 | $PHPMAILER_LANG['signing'] = 'Prisijungimo klaida: '; 23 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP susijungimo klaida'; 24 | $PHPMAILER_LANG['smtp_error'] = 'SMTP stoties klaida: '; 25 | $PHPMAILER_LANG['variable_set'] = 'Nepavyko priskirti reikšmės kintamajam: '; 26 | //$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; 27 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-lv.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | $PHPMAILER_LANG['authenticate'] = 'SMTP kļūda: Autorizācija neizdevās.'; 9 | $PHPMAILER_LANG['connect_host'] = 'SMTP Kļūda: Nevar izveidot savienojumu ar SMTP serveri.'; 10 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP Kļūda: Nepieņem informāciju.'; 11 | $PHPMAILER_LANG['empty_message'] = 'Ziņojuma teksts ir tukšs'; 12 | $PHPMAILER_LANG['encoding'] = 'Neatpazīts kodējums: '; 13 | $PHPMAILER_LANG['execute'] = 'Neizdevās izpildīt komandu: '; 14 | $PHPMAILER_LANG['file_access'] = 'Fails nav pieejams: '; 15 | $PHPMAILER_LANG['file_open'] = 'Faila kļūda: Nevar atvērt failu: '; 16 | $PHPMAILER_LANG['from_failed'] = 'Nepareiza sūtītāja adrese: '; 17 | $PHPMAILER_LANG['instantiate'] = 'Nevar palaist sūtīšanas funkciju.'; 18 | $PHPMAILER_LANG['invalid_address'] = 'Nepareiza adrese: '; 19 | $PHPMAILER_LANG['mailer_not_supported'] = ' sūtītājs netiek atbalstīts.'; 20 | $PHPMAILER_LANG['provide_address'] = 'Lūdzu, norādiet vismaz vienu adresātu.'; 21 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP kļūda: neizdevās nosūtīt šādiem saņēmējiem: '; 22 | $PHPMAILER_LANG['signing'] = 'Autorizācijas kļūda: '; 23 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP savienojuma kļūda'; 24 | $PHPMAILER_LANG['smtp_error'] = 'SMTP servera kļūda: '; 25 | $PHPMAILER_LANG['variable_set'] = 'Nevar piešķirt mainīgā vērtību: '; 26 | //$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; 27 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-ms.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | $PHPMAILER_LANG['authenticate'] = 'Ralat SMTP: Tidak dapat pengesahan.'; 9 | $PHPMAILER_LANG['connect_host'] = 'Ralat SMTP: Tidak dapat menghubungi hos pelayan SMTP.'; 10 | $PHPMAILER_LANG['data_not_accepted'] = 'Ralat SMTP: Data tidak diterima oleh pelayan.'; 11 | $PHPMAILER_LANG['empty_message'] = 'Tiada isi untuk mesej'; 12 | $PHPMAILER_LANG['encoding'] = 'Pengekodan tidak diketahui: '; 13 | $PHPMAILER_LANG['execute'] = 'Tidak dapat melaksanakan: '; 14 | $PHPMAILER_LANG['file_access'] = 'Tidak dapat mengakses fail: '; 15 | $PHPMAILER_LANG['file_open'] = 'Ralat Fail: Tidak dapat membuka fail: '; 16 | $PHPMAILER_LANG['from_failed'] = 'Berikut merupakan ralat dari alamat e-mel: '; 17 | $PHPMAILER_LANG['instantiate'] = 'Tidak dapat memberi contoh fungsi e-mel.'; 18 | $PHPMAILER_LANG['invalid_address'] = 'Alamat emel tidak sah: '; 19 | $PHPMAILER_LANG['mailer_not_supported'] = ' jenis penghantar emel tidak disokong.'; 20 | $PHPMAILER_LANG['provide_address'] = 'Anda perlu menyediakan sekurang-kurangnya satu alamat e-mel penerima.'; 21 | $PHPMAILER_LANG['recipients_failed'] = 'Ralat SMTP: Penerima e-mel berikut telah gagal: '; 22 | $PHPMAILER_LANG['signing'] = 'Ralat pada tanda tangan: '; 23 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() telah gagal.'; 24 | $PHPMAILER_LANG['smtp_error'] = 'Ralat pada pelayan SMTP: '; 25 | $PHPMAILER_LANG['variable_set'] = 'Tidak boleh menetapkan atau menetapkan semula pembolehubah: '; 26 | //$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; 27 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-nb.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | $PHPMAILER_LANG['authenticate'] = 'SMTP-fout: authenticatie mislukt.'; 9 | $PHPMAILER_LANG['connect_host'] = 'SMTP-fout: kon niet verbinden met SMTP-host.'; 10 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP-fout: data niet geaccepteerd.'; 11 | $PHPMAILER_LANG['empty_message'] = 'Berichttekst is leeg'; 12 | $PHPMAILER_LANG['encoding'] = 'Onbekende codering: '; 13 | $PHPMAILER_LANG['execute'] = 'Kon niet uitvoeren: '; 14 | $PHPMAILER_LANG['file_access'] = 'Kreeg geen toegang tot bestand: '; 15 | $PHPMAILER_LANG['file_open'] = 'Bestandsfout: kon bestand niet openen: '; 16 | $PHPMAILER_LANG['from_failed'] = 'Het volgende afzendersadres is mislukt: '; 17 | $PHPMAILER_LANG['instantiate'] = 'Kon mailfunctie niet initialiseren.'; 18 | $PHPMAILER_LANG['invalid_address'] = 'Ongeldig adres: '; 19 | $PHPMAILER_LANG['mailer_not_supported'] = ' mailer wordt niet ondersteund.'; 20 | $PHPMAILER_LANG['provide_address'] = 'Er moet minstens één ontvanger worden opgegeven.'; 21 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP-fout: de volgende ontvangers zijn mislukt: '; 22 | $PHPMAILER_LANG['signing'] = 'Signeerfout: '; 23 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Verbinding mislukt.'; 24 | $PHPMAILER_LANG['smtp_error'] = 'SMTP-serverfout: '; 25 | $PHPMAILER_LANG['variable_set'] = 'Kan de volgende variabele niet instellen of resetten: '; 26 | $PHPMAILER_LANG['extension_missing'] = 'Extensie afwezig: '; 27 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-pl.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | $PHPMAILER_LANG['authenticate'] = 'Erro do SMTP: Não foi possível realizar a autenticação.'; 9 | $PHPMAILER_LANG['connect_host'] = 'Erro do SMTP: Não foi possível realizar ligação com o servidor SMTP.'; 10 | $PHPMAILER_LANG['data_not_accepted'] = 'Erro do SMTP: Os dados foram rejeitados.'; 11 | $PHPMAILER_LANG['empty_message'] = 'A mensagem no e-mail está vazia.'; 12 | $PHPMAILER_LANG['encoding'] = 'Codificação desconhecida: '; 13 | $PHPMAILER_LANG['execute'] = 'Não foi possível executar: '; 14 | $PHPMAILER_LANG['file_access'] = 'Não foi possível aceder o ficheiro: '; 15 | $PHPMAILER_LANG['file_open'] = 'Abertura do ficheiro: Não foi possível abrir o ficheiro: '; 16 | $PHPMAILER_LANG['from_failed'] = 'Ocorreram falhas nos endereços dos seguintes remententes: '; 17 | $PHPMAILER_LANG['instantiate'] = 'Não foi possível iniciar uma instância da função mail.'; 18 | $PHPMAILER_LANG['invalid_address'] = 'Não foi enviado nenhum e-mail para o endereço de e-mail inválido: '; 19 | $PHPMAILER_LANG['mailer_not_supported'] = ' mailer não é suportado.'; 20 | $PHPMAILER_LANG['provide_address'] = 'Tem de fornecer pelo menos um endereço como destinatário do e-mail.'; 21 | $PHPMAILER_LANG['recipients_failed'] = 'Erro do SMTP: O endereço do seguinte destinatário falhou: '; 22 | $PHPMAILER_LANG['signing'] = 'Erro ao assinar: '; 23 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() falhou.'; 24 | $PHPMAILER_LANG['smtp_error'] = 'Erro de servidor SMTP: '; 25 | $PHPMAILER_LANG['variable_set'] = 'Não foi possível definir ou redefinir a variável: '; 26 | $PHPMAILER_LANG['extension_missing'] = 'Extensão em falta: '; 27 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-pt_br.php: -------------------------------------------------------------------------------- 1 | 6 | * @author Lucas Guimarães 7 | * @author Phelipe Alves 8 | * @author Fabio Beneditto 9 | */ 10 | 11 | $PHPMAILER_LANG['authenticate'] = 'Erro de SMTP: Não foi possível autenticar.'; 12 | $PHPMAILER_LANG['connect_host'] = 'Erro de SMTP: Não foi possível conectar ao servidor SMTP.'; 13 | $PHPMAILER_LANG['data_not_accepted'] = 'Erro de SMTP: Dados rejeitados.'; 14 | $PHPMAILER_LANG['empty_message'] = 'Mensagem vazia'; 15 | $PHPMAILER_LANG['encoding'] = 'Codificação desconhecida: '; 16 | $PHPMAILER_LANG['execute'] = 'Não foi possível executar: '; 17 | $PHPMAILER_LANG['file_access'] = 'Não foi possível acessar o arquivo: '; 18 | $PHPMAILER_LANG['file_open'] = 'Erro de Arquivo: Não foi possível abrir o arquivo: '; 19 | $PHPMAILER_LANG['from_failed'] = 'Os seguintes remetentes falharam: '; 20 | $PHPMAILER_LANG['instantiate'] = 'Não foi possível instanciar a função mail.'; 21 | $PHPMAILER_LANG['invalid_address'] = 'Endereço de e-mail inválido: '; 22 | $PHPMAILER_LANG['mailer_not_supported'] = ' mailer não é suportado.'; 23 | $PHPMAILER_LANG['provide_address'] = 'Você deve informar pelo menos um destinatário.'; 24 | $PHPMAILER_LANG['recipients_failed'] = 'Erro de SMTP: Os seguintes destinatários falharam: '; 25 | $PHPMAILER_LANG['signing'] = 'Erro de Assinatura: '; 26 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() falhou.'; 27 | $PHPMAILER_LANG['smtp_error'] = 'Erro de servidor SMTP: '; 28 | $PHPMAILER_LANG['variable_set'] = 'Não foi possível definir ou redefinir a variável: '; 29 | $PHPMAILER_LANG['extension_missing'] = 'Extensão ausente: '; 30 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-ro.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | $PHPMAILER_LANG['authenticate'] = 'Eroare SMTP: Autentificarea a eșuat.'; 9 | $PHPMAILER_LANG['connect_host'] = 'Eroare SMTP: Conectarea la serverul SMTP a eșuat.'; 10 | $PHPMAILER_LANG['data_not_accepted'] = 'Eroare SMTP: Datele nu au fost acceptate.'; 11 | $PHPMAILER_LANG['empty_message'] = 'Mesajul este gol.'; 12 | $PHPMAILER_LANG['encoding'] = 'Encodare necunoscută: '; 13 | $PHPMAILER_LANG['execute'] = 'Nu se poate executa următoarea comandă: '; 14 | $PHPMAILER_LANG['file_access'] = 'Nu se poate accesa următorul fișier: '; 15 | $PHPMAILER_LANG['file_open'] = 'Eroare fișier: Nu se poate deschide următorul fișier: '; 16 | $PHPMAILER_LANG['from_failed'] = 'Următoarele adrese From au dat eroare: '; 17 | $PHPMAILER_LANG['instantiate'] = 'Funcția mail nu a putut fi inițializată.'; 18 | $PHPMAILER_LANG['invalid_address'] = 'Adresa de email nu este validă: '; 19 | $PHPMAILER_LANG['mailer_not_supported'] = ' mailer nu este suportat.'; 20 | $PHPMAILER_LANG['provide_address'] = 'Trebuie să adăugați cel puțin o adresă de email.'; 21 | $PHPMAILER_LANG['recipients_failed'] = 'Eroare SMTP: Următoarele adrese de email au eșuat: '; 22 | $PHPMAILER_LANG['signing'] = 'A aparut o problemă la semnarea emailului. '; 23 | $PHPMAILER_LANG['smtp_connect_failed'] = 'Conectarea la serverul SMTP a eșuat.'; 24 | $PHPMAILER_LANG['smtp_error'] = 'Eroare server SMTP: '; 25 | $PHPMAILER_LANG['variable_set'] = 'Nu se poate seta/reseta variabila. '; 26 | $PHPMAILER_LANG['extension_missing'] = 'Lipsește extensia: '; 27 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-rs.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | $PHPMAILER_LANG['authenticate'] = 'SMTP грешка: аутентификација није успела.'; 9 | $PHPMAILER_LANG['connect_host'] = 'SMTP грешка: није могуће повезивање са SMTP сервером.'; 10 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP грешка: подаци нису прихваћени.'; 11 | $PHPMAILER_LANG['empty_message'] = 'Садржај поруке је празан.'; 12 | $PHPMAILER_LANG['encoding'] = 'Непознато кодовање: '; 13 | $PHPMAILER_LANG['execute'] = 'Није могуће извршити наредбу: '; 14 | $PHPMAILER_LANG['file_access'] = 'Није могуће приступити датотеци: '; 15 | $PHPMAILER_LANG['file_open'] = 'Није могуће отворити датотеку: '; 16 | $PHPMAILER_LANG['from_failed'] = 'SMTP грешка: слање са следећих адреса није успело: '; 17 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP грешка: слање на следеће адресе није успело: '; 18 | $PHPMAILER_LANG['instantiate'] = 'Није могуће покренути mail функцију.'; 19 | $PHPMAILER_LANG['invalid_address'] = 'Порука није послата због неисправне адресе: '; 20 | $PHPMAILER_LANG['mailer_not_supported'] = ' мејлер није подржан.'; 21 | $PHPMAILER_LANG['provide_address'] = 'Потребно је задати најмање једну адресу.'; 22 | $PHPMAILER_LANG['signing'] = 'Грешка приликом пријављивања: '; 23 | $PHPMAILER_LANG['smtp_connect_failed'] = 'Повезивање са SMTP сервером није успело.'; 24 | $PHPMAILER_LANG['smtp_error'] = 'Грешка SMTP сервера: '; 25 | $PHPMAILER_LANG['variable_set'] = 'Није могуће задати променљиву, нити је вратити уназад: '; 26 | $PHPMAILER_LANG['extension_missing'] = 'Недостаје проширење: '; 27 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-ru.php: -------------------------------------------------------------------------------- 1 | 6 | * @author Foster Snowhill 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'] = 'Не отослано, неправильный формат email адреса: '; 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'] = 'Расширение отсутствует: '; 28 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-sk.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | $PHPMAILER_LANG['authenticate'] = 'SMTP Error: Chyba autentifikácie.'; 9 | $PHPMAILER_LANG['connect_host'] = 'SMTP Error: Nebolo možné nadviazať spojenie so SMTP serverom.'; 10 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP Error: Dáta neboli prijaté'; 11 | $PHPMAILER_LANG['empty_message'] = 'Prázdne telo správy.'; 12 | $PHPMAILER_LANG['encoding'] = 'Neznáme kódovanie: '; 13 | $PHPMAILER_LANG['execute'] = 'Nedá sa vykonať: '; 14 | $PHPMAILER_LANG['file_access'] = 'Súbor nebol nájdený: '; 15 | $PHPMAILER_LANG['file_open'] = 'File Error: Súbor sa otvoriť pre čítanie: '; 16 | $PHPMAILER_LANG['from_failed'] = 'Následujúca adresa From je nesprávna: '; 17 | $PHPMAILER_LANG['instantiate'] = 'Nedá sa vytvoriť inštancia emailovej funkcie.'; 18 | $PHPMAILER_LANG['invalid_address'] = 'Neodoslané, emailová adresa je nesprávna: '; 19 | $PHPMAILER_LANG['mailer_not_supported'] = ' emailový klient nieje podporovaný.'; 20 | $PHPMAILER_LANG['provide_address'] = 'Musíte zadať aspoň jednu emailovú adresu príjemcu.'; 21 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP Error: Adresy príjemcov niesu správne '; 22 | $PHPMAILER_LANG['signing'] = 'Chyba prihlasovania: '; 23 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() zlyhalo.'; 24 | $PHPMAILER_LANG['smtp_error'] = 'SMTP chyba serveru: '; 25 | $PHPMAILER_LANG['variable_set'] = 'Nemožno nastaviť alebo resetovať premennú: '; 26 | //$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; 27 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-sl.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | $PHPMAILER_LANG['authenticate'] = 'SMTP napaka: Avtentikacija ni uspela.'; 9 | $PHPMAILER_LANG['connect_host'] = 'SMTP napaka: Ne morem vzpostaviti povezave s SMTP gostiteljem.'; 10 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP napaka: Strežnik zavrača podatke.'; 11 | $PHPMAILER_LANG['empty_message'] = 'E-poštno sporočilo nima vsebine.'; 12 | $PHPMAILER_LANG['encoding'] = 'Nepoznan tip kodiranja: '; 13 | $PHPMAILER_LANG['execute'] = 'Operacija ni uspela: '; 14 | $PHPMAILER_LANG['file_access'] = 'Nimam dostopa do datoteke: '; 15 | $PHPMAILER_LANG['file_open'] = 'Ne morem odpreti datoteke: '; 16 | $PHPMAILER_LANG['from_failed'] = 'Neveljaven e-naslov pošiljatelja: '; 17 | $PHPMAILER_LANG['instantiate'] = 'Ne morem inicializirati mail funkcije.'; 18 | $PHPMAILER_LANG['invalid_address'] = 'E-poštno sporočilo ni bilo poslano. E-naslov je neveljaven: '; 19 | $PHPMAILER_LANG['mailer_not_supported'] = ' mailer ni podprt.'; 20 | $PHPMAILER_LANG['provide_address'] = 'Prosim vnesite vsaj enega naslovnika.'; 21 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP napaka: Sledeči naslovniki so neveljavni: '; 22 | $PHPMAILER_LANG['signing'] = 'Napaka pri podpisovanju: '; 23 | $PHPMAILER_LANG['smtp_connect_failed'] = 'Ne morem vzpostaviti povezave s SMTP strežnikom.'; 24 | $PHPMAILER_LANG['smtp_error'] = 'Napaka SMTP strežnika: '; 25 | $PHPMAILER_LANG['variable_set'] = 'Ne morem nastaviti oz. ponastaviti spremenljivke: '; 26 | //$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; 27 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-sv.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | $PHPMAILER_LANG['authenticate'] = 'SMTP fel: Kunde inte autentisera.'; 9 | $PHPMAILER_LANG['connect_host'] = 'SMTP fel: Kunde inte ansluta till SMTP-server.'; 10 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP fel: Data accepterades inte.'; 11 | //$PHPMAILER_LANG['empty_message'] = 'Message body empty'; 12 | $PHPMAILER_LANG['encoding'] = 'Okänt encode-format: '; 13 | $PHPMAILER_LANG['execute'] = 'Kunde inte köra: '; 14 | $PHPMAILER_LANG['file_access'] = 'Ingen åtkomst till fil: '; 15 | $PHPMAILER_LANG['file_open'] = 'Fil fel: Kunde inte öppna fil: '; 16 | $PHPMAILER_LANG['from_failed'] = 'Följande avsändaradress är felaktig: '; 17 | $PHPMAILER_LANG['instantiate'] = 'Kunde inte initiera e-postfunktion.'; 18 | $PHPMAILER_LANG['invalid_address'] = 'Felaktig adress: '; 19 | $PHPMAILER_LANG['provide_address'] = 'Du måste ange minst en mottagares e-postadress.'; 20 | $PHPMAILER_LANG['mailer_not_supported'] = ' mailer stöds inte.'; 21 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP fel: Följande mottagare är felaktig: '; 22 | $PHPMAILER_LANG['signing'] = 'Signerings fel: '; 23 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() misslyckades.'; 24 | $PHPMAILER_LANG['smtp_error'] = 'SMTP server fel: '; 25 | $PHPMAILER_LANG['variable_set'] = 'Kunde inte definiera eller återställa variabel: '; 26 | $PHPMAILER_LANG['extension_missing'] = 'Tillägg ej tillgängligt: '; 27 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-tr.php: -------------------------------------------------------------------------------- 1 | 6 | * @fixed by Boris Yurchenko 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'] = 'Extension missing: '; 28 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-vi.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | 8 | $PHPMAILER_LANG['authenticate'] = 'Lỗi SMTP: Không thể xác thực.'; 9 | $PHPMAILER_LANG['connect_host'] = 'Lỗi SMTP: Không thể kết nối máy chủ SMTP.'; 10 | $PHPMAILER_LANG['data_not_accepted'] = 'Lỗi SMTP: Dữ liệu không được chấp nhận.'; 11 | $PHPMAILER_LANG['empty_message'] = 'Không có nội dung'; 12 | $PHPMAILER_LANG['encoding'] = 'Mã hóa không xác định: '; 13 | $PHPMAILER_LANG['execute'] = 'Không thực hiện được: '; 14 | $PHPMAILER_LANG['file_access'] = 'Không thể truy cập tệp tin '; 15 | $PHPMAILER_LANG['file_open'] = 'Lỗi Tập tin: Không thể mở tệp tin: '; 16 | $PHPMAILER_LANG['from_failed'] = 'Lỗi địa chỉ gửi đi: '; 17 | $PHPMAILER_LANG['instantiate'] = 'Không dùng được các hàm gửi thư.'; 18 | $PHPMAILER_LANG['invalid_address'] = 'Đại chỉ emai không đúng: '; 19 | $PHPMAILER_LANG['mailer_not_supported'] = ' trình gửi thư không được hỗ trợ.'; 20 | $PHPMAILER_LANG['provide_address'] = 'Bạn phải cung cấp ít nhất một địa chỉ người nhận.'; 21 | $PHPMAILER_LANG['recipients_failed'] = 'Lỗi SMTP: lỗi địa chỉ người nhận: '; 22 | $PHPMAILER_LANG['signing'] = 'Lỗi đăng nhập: '; 23 | $PHPMAILER_LANG['smtp_connect_failed'] = 'Lỗi kết nối với SMTP'; 24 | $PHPMAILER_LANG['smtp_error'] = 'Lỗi máy chủ smtp '; 25 | $PHPMAILER_LANG['variable_set'] = 'Không thể thiết lập hoặc thiết lập lại biến: '; 26 | //$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; 27 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-zh.php: -------------------------------------------------------------------------------- 1 | 6 | * @author Peter Dave Hello <@PeterDaveHello/> 7 | * @author Jason Chiang 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'] = '發送地址錯誤:'; 19 | $PHPMAILER_LANG['instantiate'] = '未知函數呼叫。'; 20 | $PHPMAILER_LANG['invalid_address'] = '因為電子郵件地址無效,無法傳送: '; 21 | $PHPMAILER_LANG['mailer_not_supported'] = '不支援的發信客戶端。'; 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 伺服器錯誤: '; 27 | $PHPMAILER_LANG['variable_set'] = '無法設定或重設變數: '; 28 | $PHPMAILER_LANG['extension_missing'] = '遺失模組 Extension: '; 29 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/language/phpmailer.lang-zh_cn.php: -------------------------------------------------------------------------------- 1 | 6 | * @author young 7 | * @author Teddysun 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'] = '发送地址错误:'; 19 | $PHPMAILER_LANG['instantiate'] = '未知函数调用。'; 20 | $PHPMAILER_LANG['invalid_address'] = '发送失败,电子邮箱地址是无效的:'; 21 | $PHPMAILER_LANG['mailer_not_supported'] = '发信客户端不被支持。'; 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服务器出错:'; 27 | $PHPMAILER_LANG['variable_set'] = '无法设置或重置变量:'; 28 | $PHPMAILER_LANG['extension_missing'] = '丢失模块 Extension:'; 29 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/src/Exception.php: -------------------------------------------------------------------------------- 1 | 9 | * @author Jim Jagielski (jimjag) 10 | * @author Andy Prevost (codeworxtech) 11 | * @author Brent R. Matzelle (original founder) 12 | * @copyright 2012 - 2017 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 | namespace PHPMailer\PHPMailer; 22 | 23 | /** 24 | * PHPMailer exception handler. 25 | * 26 | * @author Marcus Bointon 27 | */ 28 | class Exception extends \Exception 29 | { 30 | /** 31 | * Prettify error message output. 32 | * 33 | * @return string 34 | */ 35 | public function errorMessage() 36 | { 37 | return '' . htmlspecialchars($this->getMessage()) . "
\n"; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/src/OAuth.php: -------------------------------------------------------------------------------- 1 | 9 | * @author Jim Jagielski (jimjag) 10 | * @author Andy Prevost (codeworxtech) 11 | * @author Brent R. Matzelle (original founder) 12 | * @copyright 2012 - 2015 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 | namespace PHPMailer\PHPMailer; 22 | 23 | use League\OAuth2\Client\Grant\RefreshToken; 24 | use League\OAuth2\Client\Provider\AbstractProvider; 25 | use League\OAuth2\Client\Token\AccessToken; 26 | 27 | /** 28 | * OAuth - OAuth2 authentication wrapper class. 29 | * Uses the oauth2-client package from the League of Extraordinary Packages. 30 | * 31 | * @see http://oauth2-client.thephpleague.com 32 | * 33 | * @author Marcus Bointon (Synchro/coolbru) 34 | */ 35 | class OAuth 36 | { 37 | /** 38 | * An instance of the League OAuth Client Provider. 39 | * 40 | * @var AbstractProvider 41 | */ 42 | protected $provider; 43 | 44 | /** 45 | * The current OAuth access token. 46 | * 47 | * @var AccessToken 48 | */ 49 | protected $oauthToken; 50 | 51 | /** 52 | * The user's email address, usually used as the login ID 53 | * and also the from address when sending email. 54 | * 55 | * @var string 56 | */ 57 | protected $oauthUserEmail = ''; 58 | 59 | /** 60 | * The client secret, generated in the app definition of the service you're connecting to. 61 | * 62 | * @var string 63 | */ 64 | protected $oauthClientSecret = ''; 65 | 66 | /** 67 | * The client ID, generated in the app definition of the service you're connecting to. 68 | * 69 | * @var string 70 | */ 71 | protected $oauthClientId = ''; 72 | 73 | /** 74 | * The refresh token, used to obtain new AccessTokens. 75 | * 76 | * @var string 77 | */ 78 | protected $oauthRefreshToken = ''; 79 | 80 | /** 81 | * OAuth constructor. 82 | * 83 | * @param array $options Associative array containing 84 | * `provider`, `userName`, `clientSecret`, `clientId` and `refreshToken` elements 85 | */ 86 | public function __construct($options) 87 | { 88 | $this->provider = $options['provider']; 89 | $this->oauthUserEmail = $options['userName']; 90 | $this->oauthClientSecret = $options['clientSecret']; 91 | $this->oauthClientId = $options['clientId']; 92 | $this->oauthRefreshToken = $options['refreshToken']; 93 | } 94 | 95 | /** 96 | * Get a new RefreshToken. 97 | * 98 | * @return RefreshToken 99 | */ 100 | protected function getGrant() 101 | { 102 | return new RefreshToken(); 103 | } 104 | 105 | /** 106 | * Get a new AccessToken. 107 | * 108 | * @return AccessToken 109 | */ 110 | protected function getToken() 111 | { 112 | return $this->provider->getAccessToken( 113 | $this->getGrant(), 114 | ['refresh_token' => $this->oauthRefreshToken] 115 | ); 116 | } 117 | 118 | /** 119 | * Generate a base64-encoded OAuth token. 120 | * 121 | * @return string 122 | */ 123 | public function getOauth64() 124 | { 125 | // Get a new token if it's not available or has expired 126 | if (null === $this->oauthToken or $this->oauthToken->hasExpired()) { 127 | $this->oauthToken = $this->getToken(); 128 | } 129 | 130 | return base64_encode( 131 | 'user=' . 132 | $this->oauthUserEmail . 133 | "\001auth=Bearer " . 134 | $this->oauthToken . 135 | "\001\001" 136 | ); 137 | } 138 | } 139 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/src/POP3.php: -------------------------------------------------------------------------------- 1 | 9 | * @author Jim Jagielski (jimjag) 10 | * @author Andy Prevost (codeworxtech) 11 | * @author Brent R. Matzelle (original founder) 12 | * @copyright 2012 - 2017 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 | namespace PHPMailer\PHPMailer; 22 | 23 | /** 24 | * PHPMailer POP-Before-SMTP Authentication Class. 25 | * Specifically for PHPMailer to use for RFC1939 POP-before-SMTP authentication. 26 | * 1) This class does not support APOP authentication. 27 | * 2) Opening and closing lots of POP3 connections can be quite slow. If you need 28 | * to send a batch of emails then just perform the authentication once at the start, 29 | * and then loop through your mail sending script. Providing this process doesn't 30 | * take longer than the verification period lasts on your POP3 server, you should be fine. 31 | * 3) This is really ancient technology; you should only need to use it to talk to very old systems. 32 | * 4) This POP3 class is deliberately lightweight and incomplete, and implements just 33 | * enough to do authentication. 34 | * If you want a more complete class there are other POP3 classes for PHP available. 35 | * 36 | * @author Richard Davey (original author) 37 | * @author Marcus Bointon (Synchro/coolbru) 38 | * @author Jim Jagielski (jimjag) 39 | * @author Andy Prevost (codeworxtech) 40 | */ 41 | class POP3 42 | { 43 | /** 44 | * The POP3 PHPMailer Version number. 45 | * 46 | * @var string 47 | */ 48 | const VERSION = '6.0.5'; 49 | 50 | /** 51 | * Default POP3 port number. 52 | * 53 | * @var int 54 | */ 55 | const DEFAULT_PORT = 110; 56 | 57 | /** 58 | * Default timeout in seconds. 59 | * 60 | * @var int 61 | */ 62 | const DEFAULT_TIMEOUT = 30; 63 | 64 | /** 65 | * Debug display level. 66 | * Options: 0 = no, 1+ = yes. 67 | * 68 | * @var int 69 | */ 70 | public $do_debug = 0; 71 | 72 | /** 73 | * POP3 mail server hostname. 74 | * 75 | * @var string 76 | */ 77 | public $host; 78 | 79 | /** 80 | * POP3 port number. 81 | * 82 | * @var int 83 | */ 84 | public $port; 85 | 86 | /** 87 | * POP3 Timeout Value in seconds. 88 | * 89 | * @var int 90 | */ 91 | public $tval; 92 | 93 | /** 94 | * POP3 username. 95 | * 96 | * @var string 97 | */ 98 | public $username; 99 | 100 | /** 101 | * POP3 password. 102 | * 103 | * @var string 104 | */ 105 | public $password; 106 | 107 | /** 108 | * Resource handle for the POP3 connection socket. 109 | * 110 | * @var resource 111 | */ 112 | protected $pop_conn; 113 | 114 | /** 115 | * Are we connected? 116 | * 117 | * @var bool 118 | */ 119 | protected $connected = false; 120 | 121 | /** 122 | * Error container. 123 | * 124 | * @var array 125 | */ 126 | protected $errors = []; 127 | 128 | /** 129 | * Line break constant. 130 | */ 131 | const LE = "\r\n"; 132 | 133 | /** 134 | * Simple static wrapper for all-in-one POP before SMTP. 135 | * 136 | * @param string $host The hostname to connect to 137 | * @param int|bool $port The port number to connect to 138 | * @param int|bool $timeout The timeout value 139 | * @param string $username 140 | * @param string $password 141 | * @param int $debug_level 142 | * 143 | * @return bool 144 | */ 145 | public static function popBeforeSmtp( 146 | $host, 147 | $port = false, 148 | $timeout = false, 149 | $username = '', 150 | $password = '', 151 | $debug_level = 0 152 | ) { 153 | $pop = new self(); 154 | 155 | return $pop->authorise($host, $port, $timeout, $username, $password, $debug_level); 156 | } 157 | 158 | /** 159 | * Authenticate with a POP3 server. 160 | * A connect, login, disconnect sequence 161 | * appropriate for POP-before SMTP authorisation. 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 function authorise($host, $port = false, $timeout = false, $username = '', $password = '', $debug_level = 0) 173 | { 174 | $this->host = $host; 175 | // If no port value provided, use default 176 | if (false === $port) { 177 | $this->port = static::DEFAULT_PORT; 178 | } else { 179 | $this->port = (int) $port; 180 | } 181 | // If no timeout value provided, use default 182 | if (false === $timeout) { 183 | $this->tval = static::DEFAULT_TIMEOUT; 184 | } else { 185 | $this->tval = (int) $timeout; 186 | } 187 | $this->do_debug = $debug_level; 188 | $this->username = $username; 189 | $this->password = $password; 190 | // Reset the error log 191 | $this->errors = []; 192 | // connect 193 | $result = $this->connect($this->host, $this->port, $this->tval); 194 | if ($result) { 195 | $login_result = $this->login($this->username, $this->password); 196 | if ($login_result) { 197 | $this->disconnect(); 198 | 199 | return true; 200 | } 201 | } 202 | // We need to disconnect regardless of whether the login succeeded 203 | $this->disconnect(); 204 | 205 | return false; 206 | } 207 | 208 | /** 209 | * Connect to a POP3 server. 210 | * 211 | * @param string $host 212 | * @param int|bool $port 213 | * @param int $tval 214 | * 215 | * @return bool 216 | */ 217 | public function connect($host, $port = false, $tval = 30) 218 | { 219 | // Are we already connected? 220 | if ($this->connected) { 221 | return true; 222 | } 223 | 224 | //On Windows this will raise a PHP Warning error if the hostname doesn't exist. 225 | //Rather than suppress it with @fsockopen, capture it cleanly instead 226 | set_error_handler([$this, 'catchWarning']); 227 | 228 | if (false === $port) { 229 | $port = static::DEFAULT_PORT; 230 | } 231 | 232 | // connect to the POP3 server 233 | $this->pop_conn = fsockopen( 234 | $host, // POP3 Host 235 | $port, // Port # 236 | $errno, // Error Number 237 | $errstr, // Error Message 238 | $tval 239 | ); // Timeout (seconds) 240 | // Restore the error handler 241 | restore_error_handler(); 242 | 243 | // Did we connect? 244 | if (false === $this->pop_conn) { 245 | // It would appear not... 246 | $this->setError( 247 | "Failed to connect to server $host on port $port. errno: $errno; errstr: $errstr" 248 | ); 249 | 250 | return false; 251 | } 252 | 253 | // Increase the stream time-out 254 | stream_set_timeout($this->pop_conn, $tval, 0); 255 | 256 | // Get the POP3 server response 257 | $pop3_response = $this->getResponse(); 258 | // Check for the +OK 259 | if ($this->checkResponse($pop3_response)) { 260 | // The connection is established and the POP3 server is talking 261 | $this->connected = true; 262 | 263 | return true; 264 | } 265 | 266 | return false; 267 | } 268 | 269 | /** 270 | * Log in to the POP3 server. 271 | * Does not support APOP (RFC 2828, 4949). 272 | * 273 | * @param string $username 274 | * @param string $password 275 | * 276 | * @return bool 277 | */ 278 | public function login($username = '', $password = '') 279 | { 280 | if (!$this->connected) { 281 | $this->setError('Not connected to POP3 server'); 282 | } 283 | if (empty($username)) { 284 | $username = $this->username; 285 | } 286 | if (empty($password)) { 287 | $password = $this->password; 288 | } 289 | 290 | // Send the Username 291 | $this->sendString("USER $username" . static::LE); 292 | $pop3_response = $this->getResponse(); 293 | if ($this->checkResponse($pop3_response)) { 294 | // Send the Password 295 | $this->sendString("PASS $password" . static::LE); 296 | $pop3_response = $this->getResponse(); 297 | if ($this->checkResponse($pop3_response)) { 298 | return true; 299 | } 300 | } 301 | 302 | return false; 303 | } 304 | 305 | /** 306 | * Disconnect from the POP3 server. 307 | */ 308 | public function disconnect() 309 | { 310 | $this->sendString('QUIT'); 311 | //The QUIT command may cause the daemon to exit, which will kill our connection 312 | //So ignore errors here 313 | try { 314 | @fclose($this->pop_conn); 315 | } catch (Exception $e) { 316 | //Do nothing 317 | } 318 | } 319 | 320 | /** 321 | * Get a response from the POP3 server. 322 | * 323 | * @param int $size The maximum number of bytes to retrieve 324 | * 325 | * @return string 326 | */ 327 | protected function getResponse($size = 128) 328 | { 329 | $response = fgets($this->pop_conn, $size); 330 | if ($this->do_debug >= 1) { 331 | echo 'Server -> Client: ', $response; 332 | } 333 | 334 | return $response; 335 | } 336 | 337 | /** 338 | * Send raw data to the POP3 server. 339 | * 340 | * @param string $string 341 | * 342 | * @return int 343 | */ 344 | protected function sendString($string) 345 | { 346 | if ($this->pop_conn) { 347 | if ($this->do_debug >= 2) { //Show client messages when debug >= 2 348 | echo 'Client -> Server: ', $string; 349 | } 350 | 351 | return fwrite($this->pop_conn, $string, strlen($string)); 352 | } 353 | 354 | return 0; 355 | } 356 | 357 | /** 358 | * Checks the POP3 server response. 359 | * Looks for for +OK or -ERR. 360 | * 361 | * @param string $string 362 | * 363 | * @return bool 364 | */ 365 | protected function checkResponse($string) 366 | { 367 | if (substr($string, 0, 3) !== '+OK') { 368 | $this->setError("Server reported an error: $string"); 369 | 370 | return false; 371 | } 372 | 373 | return true; 374 | } 375 | 376 | /** 377 | * Add an error to the internal error store. 378 | * Also display debug output if it's enabled. 379 | * 380 | * @param string $error 381 | */ 382 | protected function setError($error) 383 | { 384 | $this->errors[] = $error; 385 | if ($this->do_debug >= 1) { 386 | echo '
';
387 |             foreach ($this->errors as $e) {
388 |                 print_r($e);
389 |             }
390 |             echo '
'; 391 | } 392 | } 393 | 394 | /** 395 | * Get an array of error messages, if any. 396 | * 397 | * @return array 398 | */ 399 | public function getErrors() 400 | { 401 | return $this->errors; 402 | } 403 | 404 | /** 405 | * POP3 connection error handler. 406 | * 407 | * @param int $errno 408 | * @param string $errstr 409 | * @param string $errfile 410 | * @param int $errline 411 | */ 412 | protected function catchWarning($errno, $errstr, $errfile, $errline) 413 | { 414 | $this->setError( 415 | 'Connecting to the POP3 server raised a PHP warning:' . 416 | "errno: $errno errstr: $errstr; errfile: $errfile; errline: $errline" 417 | ); 418 | } 419 | } 420 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/src/SMTP.php: -------------------------------------------------------------------------------- 1 | 9 | * @author Jim Jagielski (jimjag) 10 | * @author Andy Prevost (codeworxtech) 11 | * @author Brent R. Matzelle (original founder) 12 | * @copyright 2012 - 2017 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 | namespace PHPMailer\PHPMailer; 22 | 23 | /** 24 | * PHPMailer RFC821 SMTP email transport class. 25 | * Implements RFC 821 SMTP commands and provides some utility methods for sending mail to an SMTP server. 26 | * 27 | * @author Chris Ryan 28 | * @author Marcus Bointon 29 | */ 30 | class SMTP 31 | { 32 | /** 33 | * The PHPMailer SMTP version number. 34 | * 35 | * @var string 36 | */ 37 | const VERSION = '6.0.5'; 38 | 39 | /** 40 | * SMTP line break constant. 41 | * 42 | * @var string 43 | */ 44 | const LE = "\r\n"; 45 | 46 | /** 47 | * The SMTP port to use if one is not specified. 48 | * 49 | * @var int 50 | */ 51 | const DEFAULT_PORT = 25; 52 | 53 | /** 54 | * The maximum line length allowed by RFC 2822 section 2.1.1. 55 | * 56 | * @var int 57 | */ 58 | const MAX_LINE_LENGTH = 998; 59 | 60 | /** 61 | * Debug level for no output. 62 | */ 63 | const DEBUG_OFF = 0; 64 | 65 | /** 66 | * Debug level to show client -> server messages. 67 | */ 68 | const DEBUG_CLIENT = 1; 69 | 70 | /** 71 | * Debug level to show client -> server and server -> client messages. 72 | */ 73 | const DEBUG_SERVER = 2; 74 | 75 | /** 76 | * Debug level to show connection status, client -> server and server -> client messages. 77 | */ 78 | const DEBUG_CONNECTION = 3; 79 | 80 | /** 81 | * Debug level to show all messages. 82 | */ 83 | const DEBUG_LOWLEVEL = 4; 84 | 85 | /** 86 | * Debug output level. 87 | * Options: 88 | * * self::DEBUG_OFF (`0`) No debug output, default 89 | * * self::DEBUG_CLIENT (`1`) Client commands 90 | * * self::DEBUG_SERVER (`2`) Client commands and server responses 91 | * * self::DEBUG_CONNECTION (`3`) As DEBUG_SERVER plus connection status 92 | * * self::DEBUG_LOWLEVEL (`4`) Low-level data output, all messages. 93 | * 94 | * @var int 95 | */ 96 | public $do_debug = self::DEBUG_OFF; 97 | 98 | /** 99 | * How to handle debug output. 100 | * Options: 101 | * * `echo` Output plain-text as-is, appropriate for CLI 102 | * * `html` Output escaped, line breaks converted to `
`, appropriate for browser output 103 | * * `error_log` Output to error log as configured in php.ini 104 | * Alternatively, you can provide a callable expecting two params: a message string and the debug level: 105 | * 106 | * ```php 107 | * $smtp->Debugoutput = function($str, $level) {echo "debug level $level; message: $str";}; 108 | * ``` 109 | * 110 | * Alternatively, you can pass in an instance of a PSR-3 compatible logger, though only `debug` 111 | * level output is used: 112 | * 113 | * ```php 114 | * $mail->Debugoutput = new myPsr3Logger; 115 | * ``` 116 | * 117 | * @var string|callable|\Psr\Log\LoggerInterface 118 | */ 119 | public $Debugoutput = 'echo'; 120 | 121 | /** 122 | * Whether to use VERP. 123 | * 124 | * @see http://en.wikipedia.org/wiki/Variable_envelope_return_path 125 | * @see http://www.postfix.org/VERP_README.html Info on VERP 126 | * 127 | * @var bool 128 | */ 129 | public $do_verp = false; 130 | 131 | /** 132 | * The timeout value for connection, in seconds. 133 | * Default of 5 minutes (300sec) is from RFC2821 section 4.5.3.2. 134 | * This needs to be quite high to function correctly with hosts using greetdelay as an anti-spam measure. 135 | * 136 | * @see http://tools.ietf.org/html/rfc2821#section-4.5.3.2 137 | * 138 | * @var int 139 | */ 140 | public $Timeout = 300; 141 | 142 | /** 143 | * How long to wait for commands to complete, in seconds. 144 | * Default of 5 minutes (300sec) is from RFC2821 section 4.5.3.2. 145 | * 146 | * @var int 147 | */ 148 | public $Timelimit = 300; 149 | 150 | /** 151 | * Patterns to extract an SMTP transaction id from reply to a DATA command. 152 | * The first capture group in each regex will be used as the ID. 153 | * MS ESMTP returns the message ID, which may not be correct for internal tracking. 154 | * 155 | * @var string[] 156 | */ 157 | protected $smtp_transaction_id_patterns = [ 158 | 'exim' => '/[0-9]{3} OK id=(.*)/', 159 | 'sendmail' => '/[0-9]{3} 2.0.0 (.*) Message/', 160 | 'postfix' => '/[0-9]{3} 2.0.0 Ok: queued as (.*)/', 161 | 'Microsoft_ESMTP' => '/[0-9]{3} 2.[0-9].0 (.*)@(?:.*) Queued mail for delivery/', 162 | 'Amazon_SES' => '/[0-9]{3} Ok (.*)/', 163 | 'SendGrid' => '/[0-9]{3} Ok: queued as (.*)/', 164 | ]; 165 | 166 | /** 167 | * The last transaction ID issued in response to a DATA command, 168 | * if one was detected. 169 | * 170 | * @var string|bool|null 171 | */ 172 | protected $last_smtp_transaction_id; 173 | 174 | /** 175 | * The socket for the server connection. 176 | * 177 | * @var ?resource 178 | */ 179 | protected $smtp_conn; 180 | 181 | /** 182 | * Error information, if any, for the last SMTP command. 183 | * 184 | * @var array 185 | */ 186 | protected $error = [ 187 | 'error' => '', 188 | 'detail' => '', 189 | 'smtp_code' => '', 190 | 'smtp_code_ex' => '', 191 | ]; 192 | 193 | /** 194 | * The reply the server sent to us for HELO. 195 | * If null, no HELO string has yet been received. 196 | * 197 | * @var string|null 198 | */ 199 | protected $helo_rply = null; 200 | 201 | /** 202 | * The set of SMTP extensions sent in reply to EHLO command. 203 | * Indexes of the array are extension names. 204 | * Value at index 'HELO' or 'EHLO' (according to command that was sent) 205 | * represents the server name. In case of HELO it is the only element of the array. 206 | * Other values can be boolean TRUE or an array containing extension options. 207 | * If null, no HELO/EHLO string has yet been received. 208 | * 209 | * @var array|null 210 | */ 211 | protected $server_caps = null; 212 | 213 | /** 214 | * The most recent reply received from the server. 215 | * 216 | * @var string 217 | */ 218 | protected $last_reply = ''; 219 | 220 | /** 221 | * Output debugging info via a user-selected method. 222 | * 223 | * @param string $str Debug string to output 224 | * @param int $level The debug level of this message; see DEBUG_* constants 225 | * 226 | * @see SMTP::$Debugoutput 227 | * @see SMTP::$do_debug 228 | */ 229 | protected function edebug($str, $level = 0) 230 | { 231 | if ($level > $this->do_debug) { 232 | return; 233 | } 234 | //Is this a PSR-3 logger? 235 | if ($this->Debugoutput instanceof \Psr\Log\LoggerInterface) { 236 | $this->Debugoutput->debug($str); 237 | 238 | return; 239 | } 240 | //Avoid clash with built-in function names 241 | if (!in_array($this->Debugoutput, ['error_log', 'html', 'echo']) and is_callable($this->Debugoutput)) { 242 | call_user_func($this->Debugoutput, $str, $level); 243 | 244 | return; 245 | } 246 | switch ($this->Debugoutput) { 247 | case 'error_log': 248 | //Don't output, just log 249 | error_log($str); 250 | break; 251 | case 'html': 252 | //Cleans up output a bit for a better looking, HTML-safe output 253 | echo gmdate('Y-m-d H:i:s'), ' ', htmlentities( 254 | preg_replace('/[\r\n]+/', '', $str), 255 | ENT_QUOTES, 256 | 'UTF-8' 257 | ), "
\n"; 258 | break; 259 | case 'echo': 260 | default: 261 | //Normalize line breaks 262 | $str = preg_replace('/\r\n|\r/ms', "\n", $str); 263 | echo gmdate('Y-m-d H:i:s'), 264 | "\t", 265 | //Trim trailing space 266 | trim( 267 | //Indent for readability, except for trailing break 268 | str_replace( 269 | "\n", 270 | "\n \t ", 271 | trim($str) 272 | ) 273 | ), 274 | "\n"; 275 | } 276 | } 277 | 278 | /** 279 | * Connect to an SMTP server. 280 | * 281 | * @param string $host SMTP server IP or host name 282 | * @param int $port The port number to connect to 283 | * @param int $timeout How long to wait for the connection to open 284 | * @param array $options An array of options for stream_context_create() 285 | * 286 | * @return bool 287 | */ 288 | public function connect($host, $port = null, $timeout = 30, $options = []) 289 | { 290 | static $streamok; 291 | //This is enabled by default since 5.0.0 but some providers disable it 292 | //Check this once and cache the result 293 | if (null === $streamok) { 294 | $streamok = function_exists('stream_socket_client'); 295 | } 296 | // Clear errors to avoid confusion 297 | $this->setError(''); 298 | // Make sure we are __not__ connected 299 | if ($this->connected()) { 300 | // Already connected, generate error 301 | $this->setError('Already connected to a server'); 302 | 303 | return false; 304 | } 305 | if (empty($port)) { 306 | $port = self::DEFAULT_PORT; 307 | } 308 | // Connect to the SMTP server 309 | $this->edebug( 310 | "Connection: opening to $host:$port, timeout=$timeout, options=" . 311 | (count($options) > 0 ? var_export($options, true) : 'array()'), 312 | self::DEBUG_CONNECTION 313 | ); 314 | $errno = 0; 315 | $errstr = ''; 316 | if ($streamok) { 317 | $socket_context = stream_context_create($options); 318 | set_error_handler([$this, 'errorHandler']); 319 | $this->smtp_conn = stream_socket_client( 320 | $host . ':' . $port, 321 | $errno, 322 | $errstr, 323 | $timeout, 324 | STREAM_CLIENT_CONNECT, 325 | $socket_context 326 | ); 327 | restore_error_handler(); 328 | } else { 329 | //Fall back to fsockopen which should work in more places, but is missing some features 330 | $this->edebug( 331 | 'Connection: stream_socket_client not available, falling back to fsockopen', 332 | self::DEBUG_CONNECTION 333 | ); 334 | set_error_handler([$this, 'errorHandler']); 335 | $this->smtp_conn = fsockopen( 336 | $host, 337 | $port, 338 | $errno, 339 | $errstr, 340 | $timeout 341 | ); 342 | restore_error_handler(); 343 | } 344 | // Verify we connected properly 345 | if (!is_resource($this->smtp_conn)) { 346 | $this->setError( 347 | 'Failed to connect to server', 348 | '', 349 | (string) $errno, 350 | (string) $errstr 351 | ); 352 | $this->edebug( 353 | 'SMTP ERROR: ' . $this->error['error'] 354 | . ": $errstr ($errno)", 355 | self::DEBUG_CLIENT 356 | ); 357 | 358 | return false; 359 | } 360 | $this->edebug('Connection: opened', self::DEBUG_CONNECTION); 361 | // SMTP server can take longer to respond, give longer timeout for first read 362 | // Windows does not have support for this timeout function 363 | if (substr(PHP_OS, 0, 3) != 'WIN') { 364 | $max = ini_get('max_execution_time'); 365 | // Don't bother if unlimited 366 | if (0 != $max and $timeout > $max) { 367 | @set_time_limit($timeout); 368 | } 369 | stream_set_timeout($this->smtp_conn, $timeout, 0); 370 | } 371 | // Get any announcement 372 | $announce = $this->get_lines(); 373 | $this->edebug('SERVER -> CLIENT: ' . $announce, self::DEBUG_SERVER); 374 | 375 | return true; 376 | } 377 | 378 | /** 379 | * Initiate a TLS (encrypted) session. 380 | * 381 | * @return bool 382 | */ 383 | public function startTLS() 384 | { 385 | if (!$this->sendCommand('STARTTLS', 'STARTTLS', 220)) { 386 | return false; 387 | } 388 | 389 | //Allow the best TLS version(s) we can 390 | $crypto_method = STREAM_CRYPTO_METHOD_TLS_CLIENT; 391 | 392 | //PHP 5.6.7 dropped inclusion of TLS 1.1 and 1.2 in STREAM_CRYPTO_METHOD_TLS_CLIENT 393 | //so add them back in manually if we can 394 | if (defined('STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT')) { 395 | $crypto_method |= STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT; 396 | $crypto_method |= STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT; 397 | } 398 | 399 | // Begin encrypted connection 400 | set_error_handler([$this, 'errorHandler']); 401 | $crypto_ok = stream_socket_enable_crypto( 402 | $this->smtp_conn, 403 | true, 404 | $crypto_method 405 | ); 406 | restore_error_handler(); 407 | 408 | return (bool) $crypto_ok; 409 | } 410 | 411 | /** 412 | * Perform SMTP authentication. 413 | * Must be run after hello(). 414 | * 415 | * @see hello() 416 | * 417 | * @param string $username The user name 418 | * @param string $password The password 419 | * @param string $authtype The auth type (CRAM-MD5, PLAIN, LOGIN, XOAUTH2) 420 | * @param OAuth $OAuth An optional OAuth instance for XOAUTH2 authentication 421 | * 422 | * @return bool True if successfully authenticated 423 | */ 424 | public function authenticate( 425 | $username, 426 | $password, 427 | $authtype = null, 428 | $OAuth = null 429 | ) { 430 | if (!$this->server_caps) { 431 | $this->setError('Authentication is not allowed before HELO/EHLO'); 432 | 433 | return false; 434 | } 435 | 436 | if (array_key_exists('EHLO', $this->server_caps)) { 437 | // SMTP extensions are available; try to find a proper authentication method 438 | if (!array_key_exists('AUTH', $this->server_caps)) { 439 | $this->setError('Authentication is not allowed at this stage'); 440 | // 'at this stage' means that auth may be allowed after the stage changes 441 | // e.g. after STARTTLS 442 | 443 | return false; 444 | } 445 | 446 | $this->edebug('Auth method requested: ' . ($authtype ? $authtype : 'UNSPECIFIED'), self::DEBUG_LOWLEVEL); 447 | $this->edebug( 448 | 'Auth methods available on the server: ' . implode(',', $this->server_caps['AUTH']), 449 | self::DEBUG_LOWLEVEL 450 | ); 451 | 452 | //If we have requested a specific auth type, check the server supports it before trying others 453 | if (null !== $authtype and !in_array($authtype, $this->server_caps['AUTH'])) { 454 | $this->edebug('Requested auth method not available: ' . $authtype, self::DEBUG_LOWLEVEL); 455 | $authtype = null; 456 | } 457 | 458 | if (empty($authtype)) { 459 | //If no auth mechanism is specified, attempt to use these, in this order 460 | //Try CRAM-MD5 first as it's more secure than the others 461 | foreach (['CRAM-MD5', 'LOGIN', 'PLAIN', 'XOAUTH2'] as $method) { 462 | if (in_array($method, $this->server_caps['AUTH'])) { 463 | $authtype = $method; 464 | break; 465 | } 466 | } 467 | if (empty($authtype)) { 468 | $this->setError('No supported authentication methods found'); 469 | 470 | return false; 471 | } 472 | self::edebug('Auth method selected: ' . $authtype, self::DEBUG_LOWLEVEL); 473 | } 474 | 475 | if (!in_array($authtype, $this->server_caps['AUTH'])) { 476 | $this->setError("The requested authentication method \"$authtype\" is not supported by the server"); 477 | 478 | return false; 479 | } 480 | } elseif (empty($authtype)) { 481 | $authtype = 'LOGIN'; 482 | } 483 | switch ($authtype) { 484 | case 'PLAIN': 485 | // Start authentication 486 | if (!$this->sendCommand('AUTH', 'AUTH PLAIN', 334)) { 487 | return false; 488 | } 489 | // Send encoded username and password 490 | if (!$this->sendCommand( 491 | 'User & Password', 492 | base64_encode("\0" . $username . "\0" . $password), 493 | 235 494 | ) 495 | ) { 496 | return false; 497 | } 498 | break; 499 | case 'LOGIN': 500 | // Start authentication 501 | if (!$this->sendCommand('AUTH', 'AUTH LOGIN', 334)) { 502 | return false; 503 | } 504 | if (!$this->sendCommand('Username', base64_encode($username), 334)) { 505 | return false; 506 | } 507 | if (!$this->sendCommand('Password', base64_encode($password), 235)) { 508 | return false; 509 | } 510 | break; 511 | case 'CRAM-MD5': 512 | // Start authentication 513 | if (!$this->sendCommand('AUTH CRAM-MD5', 'AUTH CRAM-MD5', 334)) { 514 | return false; 515 | } 516 | // Get the challenge 517 | $challenge = base64_decode(substr($this->last_reply, 4)); 518 | 519 | // Build the response 520 | $response = $username . ' ' . $this->hmac($challenge, $password); 521 | 522 | // send encoded credentials 523 | return $this->sendCommand('Username', base64_encode($response), 235); 524 | case 'XOAUTH2': 525 | //The OAuth instance must be set up prior to requesting auth. 526 | if (null === $OAuth) { 527 | return false; 528 | } 529 | $oauth = $OAuth->getOauth64(); 530 | 531 | // Start authentication 532 | if (!$this->sendCommand('AUTH', 'AUTH XOAUTH2 ' . $oauth, 235)) { 533 | return false; 534 | } 535 | break; 536 | default: 537 | $this->setError("Authentication method \"$authtype\" is not supported"); 538 | 539 | return false; 540 | } 541 | 542 | return true; 543 | } 544 | 545 | /** 546 | * Calculate an MD5 HMAC hash. 547 | * Works like hash_hmac('md5', $data, $key) 548 | * in case that function is not available. 549 | * 550 | * @param string $data The data to hash 551 | * @param string $key The key to hash with 552 | * 553 | * @return string 554 | */ 555 | protected function hmac($data, $key) 556 | { 557 | if (function_exists('hash_hmac')) { 558 | return hash_hmac('md5', $data, $key); 559 | } 560 | 561 | // The following borrowed from 562 | // http://php.net/manual/en/function.mhash.php#27225 563 | 564 | // RFC 2104 HMAC implementation for php. 565 | // Creates an md5 HMAC. 566 | // Eliminates the need to install mhash to compute a HMAC 567 | // by Lance Rushing 568 | 569 | $bytelen = 64; // byte length for md5 570 | if (strlen($key) > $bytelen) { 571 | $key = pack('H*', md5($key)); 572 | } 573 | $key = str_pad($key, $bytelen, chr(0x00)); 574 | $ipad = str_pad('', $bytelen, chr(0x36)); 575 | $opad = str_pad('', $bytelen, chr(0x5c)); 576 | $k_ipad = $key ^ $ipad; 577 | $k_opad = $key ^ $opad; 578 | 579 | return md5($k_opad . pack('H*', md5($k_ipad . $data))); 580 | } 581 | 582 | /** 583 | * Check connection state. 584 | * 585 | * @return bool True if connected 586 | */ 587 | public function connected() 588 | { 589 | if (is_resource($this->smtp_conn)) { 590 | $sock_status = stream_get_meta_data($this->smtp_conn); 591 | if ($sock_status['eof']) { 592 | // The socket is valid but we are not connected 593 | $this->edebug( 594 | 'SMTP NOTICE: EOF caught while checking if connected', 595 | self::DEBUG_CLIENT 596 | ); 597 | $this->close(); 598 | 599 | return false; 600 | } 601 | 602 | return true; // everything looks good 603 | } 604 | 605 | return false; 606 | } 607 | 608 | /** 609 | * Close the socket and clean up the state of the class. 610 | * Don't use this function without first trying to use QUIT. 611 | * 612 | * @see quit() 613 | */ 614 | public function close() 615 | { 616 | $this->setError(''); 617 | $this->server_caps = null; 618 | $this->helo_rply = null; 619 | if (is_resource($this->smtp_conn)) { 620 | // close the connection and cleanup 621 | fclose($this->smtp_conn); 622 | $this->smtp_conn = null; //Makes for cleaner serialization 623 | $this->edebug('Connection: closed', self::DEBUG_CONNECTION); 624 | } 625 | } 626 | 627 | /** 628 | * Send an SMTP DATA command. 629 | * Issues a data command and sends the msg_data to the server, 630 | * finializing the mail transaction. $msg_data is the message 631 | * that is to be send with the headers. Each header needs to be 632 | * on a single line followed by a with the message headers 633 | * and the message body being separated by an additional . 634 | * Implements RFC 821: DATA . 635 | * 636 | * @param string $msg_data Message data to send 637 | * 638 | * @return bool 639 | */ 640 | public function data($msg_data) 641 | { 642 | //This will use the standard timelimit 643 | if (!$this->sendCommand('DATA', 'DATA', 354)) { 644 | return false; 645 | } 646 | 647 | /* The server is ready to accept data! 648 | * According to rfc821 we should not send more than 1000 characters on a single line (including the LE) 649 | * so we will break the data up into lines by \r and/or \n then if needed we will break each of those into 650 | * smaller lines to fit within the limit. 651 | * We will also look for lines that start with a '.' and prepend an additional '.'. 652 | * NOTE: this does not count towards line-length limit. 653 | */ 654 | 655 | // Normalize line breaks before exploding 656 | $lines = explode("\n", str_replace(["\r\n", "\r"], "\n", $msg_data)); 657 | 658 | /* To distinguish between a complete RFC822 message and a plain message body, we check if the first field 659 | * of the first line (':' separated) does not contain a space then it _should_ be a header and we will 660 | * process all lines before a blank line as headers. 661 | */ 662 | 663 | $field = substr($lines[0], 0, strpos($lines[0], ':')); 664 | $in_headers = false; 665 | if (!empty($field) and strpos($field, ' ') === false) { 666 | $in_headers = true; 667 | } 668 | 669 | foreach ($lines as $line) { 670 | $lines_out = []; 671 | if ($in_headers and $line == '') { 672 | $in_headers = false; 673 | } 674 | //Break this line up into several smaller lines if it's too long 675 | //Micro-optimisation: isset($str[$len]) is faster than (strlen($str) > $len), 676 | while (isset($line[self::MAX_LINE_LENGTH])) { 677 | //Working backwards, try to find a space within the last MAX_LINE_LENGTH chars of the line to break on 678 | //so as to avoid breaking in the middle of a word 679 | $pos = strrpos(substr($line, 0, self::MAX_LINE_LENGTH), ' '); 680 | //Deliberately matches both false and 0 681 | if (!$pos) { 682 | //No nice break found, add a hard break 683 | $pos = self::MAX_LINE_LENGTH - 1; 684 | $lines_out[] = substr($line, 0, $pos); 685 | $line = substr($line, $pos); 686 | } else { 687 | //Break at the found point 688 | $lines_out[] = substr($line, 0, $pos); 689 | //Move along by the amount we dealt with 690 | $line = substr($line, $pos + 1); 691 | } 692 | //If processing headers add a LWSP-char to the front of new line RFC822 section 3.1.1 693 | if ($in_headers) { 694 | $line = "\t" . $line; 695 | } 696 | } 697 | $lines_out[] = $line; 698 | 699 | //Send the lines to the server 700 | foreach ($lines_out as $line_out) { 701 | //RFC2821 section 4.5.2 702 | if (!empty($line_out) and $line_out[0] == '.') { 703 | $line_out = '.' . $line_out; 704 | } 705 | $this->client_send($line_out . static::LE, 'DATA'); 706 | } 707 | } 708 | 709 | //Message data has been sent, complete the command 710 | //Increase timelimit for end of DATA command 711 | $savetimelimit = $this->Timelimit; 712 | $this->Timelimit = $this->Timelimit * 2; 713 | $result = $this->sendCommand('DATA END', '.', 250); 714 | $this->recordLastTransactionID(); 715 | //Restore timelimit 716 | $this->Timelimit = $savetimelimit; 717 | 718 | return $result; 719 | } 720 | 721 | /** 722 | * Send an SMTP HELO or EHLO command. 723 | * Used to identify the sending server to the receiving server. 724 | * This makes sure that client and server are in a known state. 725 | * Implements RFC 821: HELO 726 | * and RFC 2821 EHLO. 727 | * 728 | * @param string $host The host name or IP to connect to 729 | * 730 | * @return bool 731 | */ 732 | public function hello($host = '') 733 | { 734 | //Try extended hello first (RFC 2821) 735 | return (bool) ($this->sendHello('EHLO', $host) or $this->sendHello('HELO', $host)); 736 | } 737 | 738 | /** 739 | * Send an SMTP HELO or EHLO command. 740 | * Low-level implementation used by hello(). 741 | * 742 | * @param string $hello The HELO string 743 | * @param string $host The hostname to say we are 744 | * 745 | * @return bool 746 | * 747 | * @see hello() 748 | */ 749 | protected function sendHello($hello, $host) 750 | { 751 | $noerror = $this->sendCommand($hello, $hello . ' ' . $host, 250); 752 | $this->helo_rply = $this->last_reply; 753 | if ($noerror) { 754 | $this->parseHelloFields($hello); 755 | } else { 756 | $this->server_caps = null; 757 | } 758 | 759 | return $noerror; 760 | } 761 | 762 | /** 763 | * Parse a reply to HELO/EHLO command to discover server extensions. 764 | * In case of HELO, the only parameter that can be discovered is a server name. 765 | * 766 | * @param string $type `HELO` or `EHLO` 767 | */ 768 | protected function parseHelloFields($type) 769 | { 770 | $this->server_caps = []; 771 | $lines = explode("\n", $this->helo_rply); 772 | 773 | foreach ($lines as $n => $s) { 774 | //First 4 chars contain response code followed by - or space 775 | $s = trim(substr($s, 4)); 776 | if (empty($s)) { 777 | continue; 778 | } 779 | $fields = explode(' ', $s); 780 | if (!empty($fields)) { 781 | if (!$n) { 782 | $name = $type; 783 | $fields = $fields[0]; 784 | } else { 785 | $name = array_shift($fields); 786 | switch ($name) { 787 | case 'SIZE': 788 | $fields = ($fields ? $fields[0] : 0); 789 | break; 790 | case 'AUTH': 791 | if (!is_array($fields)) { 792 | $fields = []; 793 | } 794 | break; 795 | default: 796 | $fields = true; 797 | } 798 | } 799 | $this->server_caps[$name] = $fields; 800 | } 801 | } 802 | } 803 | 804 | /** 805 | * Send an SMTP MAIL command. 806 | * Starts a mail transaction from the email address specified in 807 | * $from. Returns true if successful or false otherwise. If True 808 | * the mail transaction is started and then one or more recipient 809 | * commands may be called followed by a data command. 810 | * Implements RFC 821: MAIL FROM: . 811 | * 812 | * @param string $from Source address of this message 813 | * 814 | * @return bool 815 | */ 816 | public function mail($from) 817 | { 818 | $useVerp = ($this->do_verp ? ' XVERP' : ''); 819 | 820 | return $this->sendCommand( 821 | 'MAIL FROM', 822 | 'MAIL FROM:<' . $from . '>' . $useVerp, 823 | 250 824 | ); 825 | } 826 | 827 | /** 828 | * Send an SMTP QUIT command. 829 | * Closes the socket if there is no error or the $close_on_error argument is true. 830 | * Implements from RFC 821: QUIT . 831 | * 832 | * @param bool $close_on_error Should the connection close if an error occurs? 833 | * 834 | * @return bool 835 | */ 836 | public function quit($close_on_error = true) 837 | { 838 | $noerror = $this->sendCommand('QUIT', 'QUIT', 221); 839 | $err = $this->error; //Save any error 840 | if ($noerror or $close_on_error) { 841 | $this->close(); 842 | $this->error = $err; //Restore any error from the quit command 843 | } 844 | 845 | return $noerror; 846 | } 847 | 848 | /** 849 | * Send an SMTP RCPT command. 850 | * Sets the TO argument to $toaddr. 851 | * Returns true if the recipient was accepted false if it was rejected. 852 | * Implements from RFC 821: RCPT TO: . 853 | * 854 | * @param string $address The address the message is being sent to 855 | * 856 | * @return bool 857 | */ 858 | public function recipient($address) 859 | { 860 | return $this->sendCommand( 861 | 'RCPT TO', 862 | 'RCPT TO:<' . $address . '>', 863 | [250, 251] 864 | ); 865 | } 866 | 867 | /** 868 | * Send an SMTP RSET command. 869 | * Abort any transaction that is currently in progress. 870 | * Implements RFC 821: RSET . 871 | * 872 | * @return bool True on success 873 | */ 874 | public function reset() 875 | { 876 | return $this->sendCommand('RSET', 'RSET', 250); 877 | } 878 | 879 | /** 880 | * Send a command to an SMTP server and check its return code. 881 | * 882 | * @param string $command The command name - not sent to the server 883 | * @param string $commandstring The actual command to send 884 | * @param int|array $expect One or more expected integer success codes 885 | * 886 | * @return bool True on success 887 | */ 888 | protected function sendCommand($command, $commandstring, $expect) 889 | { 890 | if (!$this->connected()) { 891 | $this->setError("Called $command without being connected"); 892 | 893 | return false; 894 | } 895 | //Reject line breaks in all commands 896 | if (strpos($commandstring, "\n") !== false or strpos($commandstring, "\r") !== false) { 897 | $this->setError("Command '$command' contained line breaks"); 898 | 899 | return false; 900 | } 901 | $this->client_send($commandstring . static::LE, $command); 902 | 903 | $this->last_reply = $this->get_lines(); 904 | // Fetch SMTP code and possible error code explanation 905 | $matches = []; 906 | if (preg_match('/^([0-9]{3})[ -](?:([0-9]\\.[0-9]\\.[0-9]) )?/', $this->last_reply, $matches)) { 907 | $code = $matches[1]; 908 | $code_ex = (count($matches) > 2 ? $matches[2] : null); 909 | // Cut off error code from each response line 910 | $detail = preg_replace( 911 | "/{$code}[ -]" . 912 | ($code_ex ? str_replace('.', '\\.', $code_ex) . ' ' : '') . '/m', 913 | '', 914 | $this->last_reply 915 | ); 916 | } else { 917 | // Fall back to simple parsing if regex fails 918 | $code = substr($this->last_reply, 0, 3); 919 | $code_ex = null; 920 | $detail = substr($this->last_reply, 4); 921 | } 922 | 923 | $this->edebug('SERVER -> CLIENT: ' . $this->last_reply, self::DEBUG_SERVER); 924 | 925 | if (!in_array($code, (array) $expect)) { 926 | $this->setError( 927 | "$command command failed", 928 | $detail, 929 | $code, 930 | $code_ex 931 | ); 932 | $this->edebug( 933 | 'SMTP ERROR: ' . $this->error['error'] . ': ' . $this->last_reply, 934 | self::DEBUG_CLIENT 935 | ); 936 | 937 | return false; 938 | } 939 | 940 | $this->setError(''); 941 | 942 | return true; 943 | } 944 | 945 | /** 946 | * Send an SMTP SAML command. 947 | * Starts a mail transaction from the email address specified in $from. 948 | * Returns true if successful or false otherwise. If True 949 | * the mail transaction is started and then one or more recipient 950 | * commands may be called followed by a data command. This command 951 | * will send the message to the users terminal if they are logged 952 | * in and send them an email. 953 | * Implements RFC 821: SAML FROM: . 954 | * 955 | * @param string $from The address the message is from 956 | * 957 | * @return bool 958 | */ 959 | public function sendAndMail($from) 960 | { 961 | return $this->sendCommand('SAML', "SAML FROM:$from", 250); 962 | } 963 | 964 | /** 965 | * Send an SMTP VRFY command. 966 | * 967 | * @param string $name The name to verify 968 | * 969 | * @return bool 970 | */ 971 | public function verify($name) 972 | { 973 | return $this->sendCommand('VRFY', "VRFY $name", [250, 251]); 974 | } 975 | 976 | /** 977 | * Send an SMTP NOOP command. 978 | * Used to keep keep-alives alive, doesn't actually do anything. 979 | * 980 | * @return bool 981 | */ 982 | public function noop() 983 | { 984 | return $this->sendCommand('NOOP', 'NOOP', 250); 985 | } 986 | 987 | /** 988 | * Send an SMTP TURN command. 989 | * This is an optional command for SMTP that this class does not support. 990 | * This method is here to make the RFC821 Definition complete for this class 991 | * and _may_ be implemented in future. 992 | * Implements from RFC 821: TURN . 993 | * 994 | * @return bool 995 | */ 996 | public function turn() 997 | { 998 | $this->setError('The SMTP TURN command is not implemented'); 999 | $this->edebug('SMTP NOTICE: ' . $this->error['error'], self::DEBUG_CLIENT); 1000 | 1001 | return false; 1002 | } 1003 | 1004 | /** 1005 | * Send raw data to the server. 1006 | * 1007 | * @param string $data The data to send 1008 | * @param string $command Optionally, the command this is part of, used only for controlling debug output 1009 | * 1010 | * @return int|bool The number of bytes sent to the server or false on error 1011 | */ 1012 | public function client_send($data, $command = '') 1013 | { 1014 | //If SMTP transcripts are left enabled, or debug output is posted online 1015 | //it can leak credentials, so hide credentials in all but lowest level 1016 | if (self::DEBUG_LOWLEVEL > $this->do_debug and 1017 | in_array($command, ['User & Password', 'Username', 'Password'], true)) { 1018 | $this->edebug('CLIENT -> SERVER: