CV-Portfolio 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +53 -0
- data/_config.yml +111 -0
- data/_includes/backtotop.html +1 -0
- data/_includes/clients.html +37 -0
- data/_includes/header.html +2 -0
- data/_includes/javascripts.html +4 -0
- data/_includes/mapbox-init.html +2 -0
- data/_includes/mapbox.html +3 -0
- data/_includes/meta.html +28 -0
- data/_includes/photoswipe.html +40 -0
- data/_includes/preloader.html +4 -0
- data/_includes/review.html +79 -0
- data/_includes/scroll.html +2 -0
- data/_includes/sidebar.html +68 -0
- data/_includes/skills.html +31 -0
- data/_includes/testimonials.html +54 -0
- data/_layouts/contact.html +20 -0
- data/_layouts/default.html +18 -0
- data/_layouts/post.html +21 -0
- data/_layouts/project.html +23 -0
- data/_layouts/resume.html +18 -0
- data/_sass/style.scss +3353 -0
- data/assets/css/app/_button.scss +70 -0
- data/assets/css/app/_cases.scss +35 -0
- data/assets/css/app/_clients.scss +22 -0
- data/assets/css/app/_contact.scss +74 -0
- data/assets/css/app/_form.scss +264 -0
- data/assets/css/app/_general.scss +106 -0
- data/assets/css/app/_navbar.scss +98 -0
- data/assets/css/app/_news.scss +112 -0
- data/assets/css/app/_other.scss +58 -0
- data/assets/css/app/_popup.scss +167 -0
- data/assets/css/app/_portfolio.scss +269 -0
- data/assets/css/app/_sections.scss +265 -0
- data/assets/css/app/_sidebar.scss +181 -0
- data/assets/css/app/_single-news.scss +445 -0
- data/assets/css/app/_single-project.scss +97 -0
- data/assets/css/app/_testimonials.scss +147 -0
- data/assets/css/app/_timeline.scss +78 -0
- data/assets/css/app/_typography.scss +253 -0
- data/assets/css/main.scss +9 -0
- data/assets/css/style.css.map +30 -0
- data/assets/css/style.scss +43 -0
- data/assets/css/variables/_media.scss +8 -0
- data/assets/css/variables/_mixins.scss +59 -0
- data/assets/css/variables/_vars.scss +48 -0
- data/assets/css/vendors/bootstrap.css +10819 -0
- data/assets/css/vendors/bootstrap.css.map +1 -0
- data/assets/css/vendors/bootstrap.min.css +7 -0
- data/assets/css/vendors/bootstrap.min.css.map +1 -0
- data/assets/css/vendors/default-skin.css +482 -0
- data/assets/css/vendors/magnific-popup.css +351 -0
- data/assets/css/vendors/photoswipe.css +179 -0
- data/assets/css/vendors/simplebar.css +211 -0
- data/assets/css/vendors/simplebar.min.css +1 -0
- data/assets/css/vendors/swiper.min.css +12 -0
- data/assets/icons/dark/icon-app.svg +4 -0
- data/assets/icons/dark/icon-design.svg +5 -0
- data/assets/icons/dark/icon-dev.svg +12 -0
- data/assets/icons/dark/icon-education.svg +10 -0
- data/assets/icons/dark/icon-experience.svg +4 -0
- data/assets/icons/dark/icon-photo.svg +7 -0
- data/assets/icons/dark/icon-quote.svg +3 -0
- data/assets/icons/emoji/emoji-angry.svg +15 -0
- data/assets/icons/emoji/emoji-bad.svg +15 -0
- data/assets/icons/emoji/emoji-crazy.svg +15 -0
- data/assets/icons/emoji/emoji-happy-2.svg +12 -0
- data/assets/icons/emoji/emoji-happy-3.svg +16 -0
- data/assets/icons/emoji/emoji-happy.svg +15 -0
- data/assets/icons/emoji/emoji-in-love.svg +15 -0
- data/assets/icons/emoji/emoji-laughing.svg +15 -0
- data/assets/icons/emoji/emoji-nerd.svg +16 -0
- data/assets/icons/emoji/emoji-pressure.svg +17 -0
- data/assets/icons/emoji/emoji-sad-2.svg +15 -0
- data/assets/icons/emoji/emoji-sad.svg +13 -0
- data/assets/icons/emoji/emoji-shocked-2.svg +15 -0
- data/assets/icons/emoji/emoji-shocked-3.svg +11 -0
- data/assets/icons/emoji/emoji-shocked.svg +14 -0
- data/assets/icons/emoji/emoji-sweating.svg +10 -0
- data/assets/icons/emoji/emoji-thinking.svg +13 -0
- data/assets/icons/emoji/emoji-wink.svg +12 -0
- data/assets/icons/feather.css +871 -0
- data/assets/icons/feather.woff +0 -0
- data/assets/icons/feather.woff2 +0 -0
- data/assets/icons/icomoon.svg +45 -0
- data/assets/icons/icomoon.ttf +0 -0
- data/assets/icons/icomoon.woff +0 -0
- data/assets/icons/icon-app.svg +14 -0
- data/assets/icons/icon-at.svg +3 -0
- data/assets/icons/icon-calendar.svg +3 -0
- data/assets/icons/icon-design.svg +27 -0
- data/assets/icons/icon-dev.svg +54 -0
- data/assets/icons/icon-download.svg +3 -0
- data/assets/icons/icon-education.svg +10 -0
- data/assets/icons/icon-envelope.svg +3 -0
- data/assets/icons/icon-experience.svg +4 -0
- data/assets/icons/icon-like-fill.svg +3 -0
- data/assets/icons/icon-like.svg +3 -0
- data/assets/icons/icon-location.svg +3 -0
- data/assets/icons/icon-news.svg +3 -0
- data/assets/icons/icon-phone.svg +3 -0
- data/assets/icons/icon-photo.svg +45 -0
- data/assets/icons/icon-quote.svg +9 -0
- data/assets/icons/icon-reply.svg +3 -0
- data/assets/icons/icon-send.svg +3 -0
- data/assets/icons/icon-skype.svg +3 -0
- data/assets/icons/icon-user.svg +6 -0
- data/assets/icons/style-custome-icons.css +132 -0
- data/assets/images/280x204.jpg +0 -0
- data/assets/images/400x550.jpg +0 -0
- data/assets/images/433x240.jpg +0 -0
- data/assets/images/560x340.jpg +0 -0
- data/assets/images/958x400.jpg +0 -0
- data/assets/images/_icon-map-pic.svg +15 -0
- data/assets/images/apple-store.png +0 -0
- data/assets/images/avatar-1.png +0 -0
- data/assets/images/avatar-2.png +0 -0
- data/assets/images/avatar-3.png +0 -0
- data/assets/images/avatar-4.png +0 -0
- data/assets/images/clients/logo-1-color.png +0 -0
- data/assets/images/clients/logo-1-white.png +0 -0
- data/assets/images/clients/logo-2-color.png +0 -0
- data/assets/images/clients/logo-2-white.png +0 -0
- data/assets/images/clients/logo-3-color.png +0 -0
- data/assets/images/clients/logo-3-white.png +0 -0
- data/assets/images/clients/logo-4-color.png +0 -0
- data/assets/images/clients/logo-4-white.png +0 -0
- data/assets/images/clients/logo-5-color.png +0 -0
- data/assets/images/clients/logo-5-white.png +0 -0
- data/assets/images/clients/logo-6-color.png +0 -0
- data/assets/images/clients/logo-6-white.png +0 -0
- data/assets/images/clients/logo-7-color.png +0 -0
- data/assets/images/clients/logo-7-white.png +0 -0
- data/assets/images/clients/logo-8-color.png +0 -0
- data/assets/images/clients/logo-8-white.png +0 -0
- data/assets/images/clients/logo-9-color.png +0 -0
- data/assets/images/clients/logo-9-white.png +0 -0
- data/assets/images/cover.png +0 -0
- data/assets/images/cv-portfolio.jpg +0 -0
- data/assets/images/favicons/apple-touch-icon-114x114.png +0 -0
- data/assets/images/favicons/apple-touch-icon-144x144.png +0 -0
- data/assets/images/favicons/apple-touch-icon-57x57.png +0 -0
- data/assets/images/favicons/apple-touch-icon-72x72.png +0 -0
- data/assets/images/favicons/favicon.png +0 -0
- data/assets/images/icon-map-pic.svg +30 -0
- data/assets/images/icon-quote.svg +3 -0
- data/assets/images/logotype.svg +9 -0
- data/assets/images/my-avatar.png +0 -0
- data/assets/images/photoswiper/default-skin.png +0 -0
- data/assets/images/photoswiper/default-skin.svg +1 -0
- data/assets/images/photoswiper/preloader.gif +0 -0
- data/assets/images/play-store.png +0 -0
- data/assets/images/splash.gif +0 -0
- data/assets/img/posts/400x550.jpg +0 -0
- data/assets/img/posts/958x400.jpg +0 -0
- data/assets/js/common.js +737 -0
- data/assets/js/jquery-3.4.1.min.js +2 -0
- data/assets/js/mapbox.init.js +32 -0
- data/assets/js/plugins.js +33367 -0
- data/assets/js/plugins.min.js +106 -0
- data/assets/php/form-contact.php +95 -0
- data/assets/php/phpmailer/COMMITMENT +46 -0
- data/assets/php/phpmailer/LICENSE +502 -0
- data/assets/php/phpmailer/README.md +218 -0
- data/assets/php/phpmailer/SECURITY.md +28 -0
- data/assets/php/phpmailer/VERSION +1 -0
- data/assets/php/phpmailer/composer.json +55 -0
- data/assets/php/phpmailer/get_oauth_token.php +144 -0
- data/assets/php/phpmailer/language/phpmailer.lang-am.php +26 -0
- data/assets/php/phpmailer/language/phpmailer.lang-ar.php +27 -0
- data/assets/php/phpmailer/language/phpmailer.lang-az.php +26 -0
- data/assets/php/phpmailer/language/phpmailer.lang-ba.php +26 -0
- data/assets/php/phpmailer/language/phpmailer.lang-be.php +26 -0
- data/assets/php/phpmailer/language/phpmailer.lang-bg.php +26 -0
- data/assets/php/phpmailer/language/phpmailer.lang-ca.php +26 -0
- data/assets/php/phpmailer/language/phpmailer.lang-ch.php +26 -0
- data/assets/php/phpmailer/language/phpmailer.lang-cs.php +25 -0
- data/assets/php/phpmailer/language/phpmailer.lang-da.php +26 -0
- data/assets/php/phpmailer/language/phpmailer.lang-de.php +25 -0
- data/assets/php/phpmailer/language/phpmailer.lang-el.php +25 -0
- data/assets/php/phpmailer/language/phpmailer.lang-eo.php +25 -0
- data/assets/php/phpmailer/language/phpmailer.lang-es.php +26 -0
- data/assets/php/phpmailer/language/phpmailer.lang-et.php +27 -0
- data/assets/php/phpmailer/language/phpmailer.lang-fa.php +27 -0
- data/assets/php/phpmailer/language/phpmailer.lang-fi.php +27 -0
- data/assets/php/phpmailer/language/phpmailer.lang-fo.php +26 -0
- data/assets/php/phpmailer/language/phpmailer.lang-fr.php +29 -0
- data/assets/php/phpmailer/language/phpmailer.lang-gl.php +26 -0
- data/assets/php/phpmailer/language/phpmailer.lang-he.php +26 -0
- data/assets/php/phpmailer/language/phpmailer.lang-hi.php +26 -0
- data/assets/php/phpmailer/language/phpmailer.lang-hr.php +26 -0
- data/assets/php/phpmailer/language/phpmailer.lang-hu.php +26 -0
- data/assets/php/phpmailer/language/phpmailer.lang-id.php +27 -0
- data/assets/php/phpmailer/language/phpmailer.lang-it.php +27 -0
- data/assets/php/phpmailer/language/phpmailer.lang-ja.php +27 -0
- data/assets/php/phpmailer/language/phpmailer.lang-ka.php +26 -0
- data/assets/php/phpmailer/language/phpmailer.lang-ko.php +26 -0
- data/assets/php/phpmailer/language/phpmailer.lang-lt.php +26 -0
- data/assets/php/phpmailer/language/phpmailer.lang-lv.php +26 -0
- data/assets/php/phpmailer/language/phpmailer.lang-mg.php +25 -0
- data/assets/php/phpmailer/language/phpmailer.lang-ms.php +26 -0
- data/assets/php/phpmailer/language/phpmailer.lang-nb.php +25 -0
- data/assets/php/phpmailer/language/phpmailer.lang-nl.php +26 -0
- data/assets/php/phpmailer/language/phpmailer.lang-pl.php +26 -0
- data/assets/php/phpmailer/language/phpmailer.lang-pt.php +26 -0
- data/assets/php/phpmailer/language/phpmailer.lang-pt_br.php +29 -0
- data/assets/php/phpmailer/language/phpmailer.lang-ro.php +26 -0
- data/assets/php/phpmailer/language/phpmailer.lang-ru.php +27 -0
- data/assets/php/phpmailer/language/phpmailer.lang-sk.php +27 -0
- data/assets/php/phpmailer/language/phpmailer.lang-sl.php +27 -0
- data/assets/php/phpmailer/language/phpmailer.lang-sr.php +27 -0
- data/assets/php/phpmailer/language/phpmailer.lang-sv.php +26 -0
- data/assets/php/phpmailer/language/phpmailer.lang-tl.php +27 -0
- data/assets/php/phpmailer/language/phpmailer.lang-tr.php +30 -0
- data/assets/php/phpmailer/language/phpmailer.lang-uk.php +27 -0
- data/assets/php/phpmailer/language/phpmailer.lang-vi.php +26 -0
- data/assets/php/phpmailer/language/phpmailer.lang-zh.php +28 -0
- data/assets/php/phpmailer/language/phpmailer.lang-zh_cn.php +28 -0
- data/assets/php/phpmailer/src/Exception.php +39 -0
- data/assets/php/phpmailer/src/OAuth.php +138 -0
- data/assets/php/phpmailer/src/PHPMailer.php +4502 -0
- data/assets/php/phpmailer/src/POP3.php +419 -0
- data/assets/php/phpmailer/src/SMTP.php +1326 -0
- data/assets/videos/video-1.mp4 +0 -0
- data/assets/videos/video-2.mp4 +0 -0
- metadata +283 -0
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
# PHPMailer - A full-featured email creation and transfer class for PHP
|
|
4
|
+
|
|
5
|
+
Build status: [](https://travis-ci.org/PHPMailer/PHPMailer)
|
|
6
|
+
[](https://scrutinizer-ci.com/g/PHPMailer/PHPMailer/)
|
|
7
|
+
[](https://scrutinizer-ci.com/g/PHPMailer/PHPMailer/)
|
|
8
|
+
|
|
9
|
+
[](https://packagist.org/packages/phpmailer/phpmailer) [](https://packagist.org/packages/phpmailer/phpmailer) [](https://packagist.org/packages/phpmailer/phpmailer) [](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 over 50 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, along with the [GPL Cooperation Commitment](https://gplcc.github.io/gplcc/). 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
|
+
<?php
|
|
60
|
+
use PHPMailer\PHPMailer\PHPMailer;
|
|
61
|
+
use PHPMailer\PHPMailer\Exception;
|
|
62
|
+
|
|
63
|
+
require 'path/to/PHPMailer/src/Exception.php';
|
|
64
|
+
require 'path/to/PHPMailer/src/PHPMailer.php';
|
|
65
|
+
require 'path/to/PHPMailer/src/SMTP.php';
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
If you're not using the `SMTP` class explicitly (you're probably not), you don't need a `use` line for the SMTP class.
|
|
69
|
+
|
|
70
|
+
If you don't speak git or just want a tarball, click the 'zip' button on the right of the project page in GitHub, though note that docs and examples are not included in the tarball.
|
|
71
|
+
|
|
72
|
+
## Legacy versions
|
|
73
|
+
PHPMailer 5.2 (which is compatible with PHP 5.0 - 7.0) is no longer being supported for feature updates, and will only be receiving security updates from now on. You will find the latest version of 5.2 in the [5.2-stable branch](https://github.com/PHPMailer/PHPMailer/tree/5.2-stable), and future versions of 5.2 will be tagged with 5.2.x version numbers, so existing Composer configs should remain working. If you're using PHP 5.5 or later, we recommend you make the necessary changes to switch to the 6.0 release.
|
|
74
|
+
|
|
75
|
+
The 5.2 branch will not receive security updates after December 31st 2018.
|
|
76
|
+
|
|
77
|
+
## Upgrading from 5.2
|
|
78
|
+
The biggest changes are that source files are now in the `src/` folder, and PHPMailer now declares the namespace `PHPMailer\PHPMailer`. This has several important effects – [read the upgrade guide](https://github.com/PHPMailer/PHPMailer/tree/master/UPGRADING.md) for more details.
|
|
79
|
+
|
|
80
|
+
### Minimal installation
|
|
81
|
+
While installing the entire package manually or with Composer is simple, convenient and reliable, you may want to include only vital files in your project. At the very least you will need [src/PHPMailer.php](https://github.com/PHPMailer/PHPMailer/tree/master/src/PHPMailer.php). If you're using SMTP, you'll need [src/SMTP.php](https://github.com/PHPMailer/PHPMailer/tree/master/src/SMTP.php), and if you're using POP-before SMTP, you'll need [src/POP3.php](https://github.com/PHPMailer/PHPMailer/tree/master/src/POP3.php). You can skip the [language](https://github.com/PHPMailer/PHPMailer/tree/master/language/) folder if you're not showing errors to users and can make do with English-only errors. If you're using XOAUTH2 you will need [src/OAuth.php](https://github.com/PHPMailer/PHPMailer/tree/master/src/OAuth.php) as well as the Composer dependencies for the services you wish to authenticate with. Really, it's much easier to use Composer!
|
|
82
|
+
|
|
83
|
+
## A Simple Example
|
|
84
|
+
|
|
85
|
+
```php
|
|
86
|
+
<?php
|
|
87
|
+
// Import PHPMailer classes into the global namespace
|
|
88
|
+
// These must be at the top of your script, not inside a function
|
|
89
|
+
use PHPMailer\PHPMailer\PHPMailer;
|
|
90
|
+
use PHPMailer\PHPMailer\Exception;
|
|
91
|
+
|
|
92
|
+
//Load Composer's autoloader
|
|
93
|
+
require 'vendor/autoload.php';
|
|
94
|
+
|
|
95
|
+
$mail = new PHPMailer(true); // Passing `true` enables exceptions
|
|
96
|
+
try {
|
|
97
|
+
//Server settings
|
|
98
|
+
$mail->SMTPDebug = 2; // Enable verbose debug output
|
|
99
|
+
$mail->isSMTP(); // Set mailer to use SMTP
|
|
100
|
+
$mail->Host = 'smtp1.example.com;smtp2.example.com'; // Specify main and backup SMTP servers
|
|
101
|
+
$mail->SMTPAuth = true; // Enable SMTP authentication
|
|
102
|
+
$mail->Username = 'user@example.com'; // SMTP username
|
|
103
|
+
$mail->Password = 'secret'; // SMTP password
|
|
104
|
+
$mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted
|
|
105
|
+
$mail->Port = 587; // TCP port to connect to
|
|
106
|
+
|
|
107
|
+
//Recipients
|
|
108
|
+
$mail->setFrom('from@example.com', 'Mailer');
|
|
109
|
+
$mail->addAddress('joe@example.net', 'Joe User'); // Add a recipient
|
|
110
|
+
$mail->addAddress('ellen@example.com'); // Name is optional
|
|
111
|
+
$mail->addReplyTo('info@example.com', 'Information');
|
|
112
|
+
$mail->addCC('cc@example.com');
|
|
113
|
+
$mail->addBCC('bcc@example.com');
|
|
114
|
+
|
|
115
|
+
//Attachments
|
|
116
|
+
$mail->addAttachment('/var/tmp/file.tar.gz'); // Add attachments
|
|
117
|
+
$mail->addAttachment('/tmp/image.jpg', 'new.jpg'); // Optional name
|
|
118
|
+
|
|
119
|
+
//Content
|
|
120
|
+
$mail->isHTML(true); // Set email format to HTML
|
|
121
|
+
$mail->Subject = 'Here is the subject';
|
|
122
|
+
$mail->Body = 'This is the HTML message body <b>in bold!</b>';
|
|
123
|
+
$mail->AltBody = 'This is the body in plain text for non-HTML mail clients';
|
|
124
|
+
|
|
125
|
+
$mail->send();
|
|
126
|
+
echo 'Message has been sent';
|
|
127
|
+
} catch (Exception $e) {
|
|
128
|
+
echo 'Message could not be sent. Mailer Error: ', $mail->ErrorInfo;
|
|
129
|
+
}
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
You'll find plenty more to play with in the [examples](https://github.com/PHPMailer/PHPMailer/tree/master/examples) folder.
|
|
133
|
+
|
|
134
|
+
That's it. You should now be ready to use PHPMailer!
|
|
135
|
+
|
|
136
|
+
## Localization
|
|
137
|
+
PHPMailer defaults to English, but in the [language](https://github.com/PHPMailer/PHPMailer/tree/master/language/) folder you'll find numerous (48 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:
|
|
138
|
+
|
|
139
|
+
```php
|
|
140
|
+
// To load the French version
|
|
141
|
+
$mail->setLanguage('fr', '/optional/path/to/language/directory/');
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
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.
|
|
145
|
+
|
|
146
|
+
## Documentation
|
|
147
|
+
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.
|
|
148
|
+
|
|
149
|
+
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).
|
|
150
|
+
|
|
151
|
+
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.
|
|
152
|
+
|
|
153
|
+
Complete generated API documentation is [available online](http://phpmailer.github.io/PHPMailer/).
|
|
154
|
+
|
|
155
|
+
You can generate complete API-level documentation by running `phpdoc` in the top-level folder, and documentation will appear in the `docs` folder, though you'll need to have [PHPDocumentor](http://www.phpdoc.org) installed. You may find [the unit tests](https://github.com/PHPMailer/PHPMailer/tree/master/test/phpmailerTest.php) a good source of how to do various operations such as encryption.
|
|
156
|
+
|
|
157
|
+
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).
|
|
158
|
+
|
|
159
|
+
## Tests
|
|
160
|
+
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.
|
|
161
|
+
|
|
162
|
+
Build status: [](https://travis-ci.org/PHPMailer/PHPMailer)
|
|
163
|
+
|
|
164
|
+
If this isn't passing, is there something you can do to help?
|
|
165
|
+
|
|
166
|
+
## Security
|
|
167
|
+
Please disclose any vulnerabilities found responsibly - report any security problems found to the maintainers privately.
|
|
168
|
+
|
|
169
|
+
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.
|
|
170
|
+
|
|
171
|
+
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).
|
|
172
|
+
|
|
173
|
+
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).
|
|
174
|
+
|
|
175
|
+
See [SECURITY](https://github.com/PHPMailer/PHPMailer/tree/master/SECURITY.md) for more detail on security issues.
|
|
176
|
+
|
|
177
|
+
## Contributing
|
|
178
|
+
Please submit bug reports, suggestions and pull requests to the [GitHub issue tracker](https://github.com/PHPMailer/PHPMailer/issues).
|
|
179
|
+
|
|
180
|
+
We're particularly interested in fixing edge-cases, expanding test coverage and updating translations.
|
|
181
|
+
|
|
182
|
+
If you found a mistake in the docs, or want to add something, go ahead and amend the wiki - anyone can edit it.
|
|
183
|
+
|
|
184
|
+
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:
|
|
185
|
+
|
|
186
|
+
```sh
|
|
187
|
+
git remote set-url upstream https://github.com/PHPMailer/PHPMailer.git
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
Please *don't* use the SourceForge or Google Code projects any more; they are obsolete and no longer maintained.
|
|
191
|
+
|
|
192
|
+
## Sponsorship
|
|
193
|
+
Development time and resources for PHPMailer are provided by [Smartmessages.net](https://info.smartmessages.net/), a powerful email marketing system.
|
|
194
|
+
|
|
195
|
+
<a href="https://info.smartmessages.net/"><img src="https://www.smartmessages.net/img/smartmessages-logo.svg" width="250" height="28" alt="Smartmessages email marketing"></a>
|
|
196
|
+
|
|
197
|
+
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).
|
|
198
|
+
|
|
199
|
+
## Changelog
|
|
200
|
+
See [changelog](changelog.md).
|
|
201
|
+
|
|
202
|
+
## History
|
|
203
|
+
- PHPMailer was originally written in 2001 by Brent R. Matzelle as a [SourceForge project](http://sourceforge.net/projects/phpmailer/).
|
|
204
|
+
- Marcus Bointon (coolbru on SF) and Andy Prevost (codeworxtech) took over the project in 2004.
|
|
205
|
+
- Became an Apache incubator project on Google Code in 2010, managed by Jim Jagielski.
|
|
206
|
+
- Marcus created his fork on [GitHub](https://github.com/Synchro/PHPMailer) in 2008.
|
|
207
|
+
- Jim and Marcus decide to join forces and use GitHub as the canonical and official repo for PHPMailer in 2013.
|
|
208
|
+
- PHPMailer moves to the [PHPMailer organisation](https://github.com/PHPMailer) on GitHub in 2013.
|
|
209
|
+
|
|
210
|
+
### What's changed since moving from SourceForge?
|
|
211
|
+
- Official successor to the SourceForge and Google Code projects.
|
|
212
|
+
- Test suite.
|
|
213
|
+
- Continuous integration with Travis-CI.
|
|
214
|
+
- Composer support.
|
|
215
|
+
- Public development.
|
|
216
|
+
- Additional languages and language strings.
|
|
217
|
+
- CRAM-MD5 authentication support.
|
|
218
|
+
- Preserves full repo history of authors, commits and branches from the original SourceForge project.
|
|
@@ -0,0 +1,28 @@
|
|
|
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 6.0.6 and 5.2.27 are vulnerable to an object injection attack by passing `phar://` paths into `addAttachment()` and other functions that may receive unfiltered local paths, possibly leading to RCE. Recorded as [CVE-2018-19296](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-19296). See [this article](https://knasmueller.net/5-answers-about-php-phar-exploitation) for more info on this type of vulnerability. Mitigated by blocking the use of paths containing URL-protocol style prefixes such as `phar://`. Reported by Sehun Oh of cyberone.kr.
|
|
6
|
+
|
|
7
|
+
PHPMailer versions prior to 5.2.24 (released July 26th 2017) have an XSS vulnerability in one of the code examples, [CVE-2017-11503](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2017-11503). The `code_generator.phps` example did not filter user input prior to output. This file is distributed with a `.phps` extension, so it it not normally executable unless it is explicitly renamed, and the file is not included when PHPMailer is loaded through composer, so it is safe by default. There was also an undisclosed potential XSS vulnerability in the default exception handler (unused by default). Patches for both issues kindly provided by Patrick Monnerat of the Fedora Project.
|
|
8
|
+
|
|
9
|
+
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.
|
|
10
|
+
|
|
11
|
+
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).
|
|
12
|
+
|
|
13
|
+
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).
|
|
14
|
+
|
|
15
|
+
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.
|
|
16
|
+
|
|
17
|
+
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.
|
|
18
|
+
|
|
19
|
+
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.
|
|
20
|
+
|
|
21
|
+
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).
|
|
22
|
+
|
|
23
|
+
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).
|
|
24
|
+
|
|
25
|
+
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).
|
|
26
|
+
|
|
27
|
+
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).
|
|
28
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
6.0.7
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "phpmailer/phpmailer",
|
|
3
|
+
"type": "library",
|
|
4
|
+
"description": "PHPMailer is a full-featured email creation and transfer class for PHP",
|
|
5
|
+
"authors": [
|
|
6
|
+
{
|
|
7
|
+
"name": "Marcus Bointon",
|
|
8
|
+
"email": "phpmailer@synchromedia.co.uk"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "Jim Jagielski",
|
|
12
|
+
"email": "jimjag@gmail.com"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "Andy Prevost",
|
|
16
|
+
"email": "codeworxtech@users.sourceforge.net"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "Brent R. Matzelle"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"require": {
|
|
23
|
+
"php": ">=5.5.0",
|
|
24
|
+
"ext-ctype": "*",
|
|
25
|
+
"ext-filter": "*"
|
|
26
|
+
},
|
|
27
|
+
"require-dev": {
|
|
28
|
+
"friendsofphp/php-cs-fixer": "^2.2",
|
|
29
|
+
"phpdocumentor/phpdocumentor": "2.*",
|
|
30
|
+
"phpunit/phpunit": "^4.8 || ^5.7",
|
|
31
|
+
"zendframework/zend-serializer": "2.7.*",
|
|
32
|
+
"doctrine/annotations": "1.2.*",
|
|
33
|
+
"zendframework/zend-eventmanager": "3.0.*",
|
|
34
|
+
"zendframework/zend-i18n": "2.7.3"
|
|
35
|
+
},
|
|
36
|
+
"suggest": {
|
|
37
|
+
"psr/log": "For optional PSR-3 debug logging",
|
|
38
|
+
"league/oauth2-google": "Needed for Google XOAUTH2 authentication",
|
|
39
|
+
"hayageek/oauth2-yahoo": "Needed for Yahoo XOAUTH2 authentication",
|
|
40
|
+
"stevenmaguire/oauth2-microsoft": "Needed for Microsoft XOAUTH2 authentication",
|
|
41
|
+
"ext-mbstring": "Needed to send email in multibyte encoding charset",
|
|
42
|
+
"symfony/polyfill-mbstring": "To support UTF-8 if the Mbstring PHP extension is not enabled (^1.2)"
|
|
43
|
+
},
|
|
44
|
+
"autoload": {
|
|
45
|
+
"psr-4": {
|
|
46
|
+
"PHPMailer\\PHPMailer\\": "src/"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"autoload-dev": {
|
|
50
|
+
"psr-4": {
|
|
51
|
+
"PHPMailer\\Test\\": "test/"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"license": "LGPL-2.1"
|
|
55
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* PHPMailer - PHP email creation and transport class.
|
|
4
|
+
* PHP Version 5.5
|
|
5
|
+
* @package PHPMailer
|
|
6
|
+
* @see https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
|
|
7
|
+
* @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
|
|
8
|
+
* @author Jim Jagielski (jimjag) <jimjag@gmail.com>
|
|
9
|
+
* @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
|
|
10
|
+
* @author Brent R. Matzelle (original founder)
|
|
11
|
+
* @copyright 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]://<yourdomain>/<folder>/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
|
+
<html>
|
|
49
|
+
<body>Select Provider:<br/>
|
|
50
|
+
<a href='?provider=Google'>Google</a><br/>
|
|
51
|
+
<a href='?provider=Yahoo'>Yahoo</a><br/>
|
|
52
|
+
<a href='?provider=Microsoft'>Microsoft/Outlook/Hotmail/Live/Office365</a><br/>
|
|
53
|
+
</body>
|
|
54
|
+
</html>
|
|
55
|
+
<?php
|
|
56
|
+
exit;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
require 'vendor/autoload.php';
|
|
60
|
+
|
|
61
|
+
session_start();
|
|
62
|
+
|
|
63
|
+
$providerName = '';
|
|
64
|
+
|
|
65
|
+
if (array_key_exists('provider', $_GET)) {
|
|
66
|
+
$providerName = $_GET['provider'];
|
|
67
|
+
$_SESSION['provider'] = $providerName;
|
|
68
|
+
} elseif (array_key_exists('provider', $_SESSION)) {
|
|
69
|
+
$providerName = $_SESSION['provider'];
|
|
70
|
+
}
|
|
71
|
+
if (!in_array($providerName, ['Google', 'Microsoft', 'Yahoo'])) {
|
|
72
|
+
exit('Only Google, Microsoft and Yahoo OAuth2 providers are currently supported in this script.');
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
//These details are obtained by setting up an app in the Google developer console,
|
|
76
|
+
//or whichever provider you're using.
|
|
77
|
+
$clientId = 'RANDOMCHARS-----duv1n2.apps.googleusercontent.com';
|
|
78
|
+
$clientSecret = 'RANDOMCHARS-----lGyjPcRtvP';
|
|
79
|
+
|
|
80
|
+
//If this automatic URL doesn't work, set it yourself manually to the URL of this script
|
|
81
|
+
$redirectUri = (isset($_SERVER['HTTPS']) ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
|
|
82
|
+
//$redirectUri = 'http://localhost/PHPMailer/redirect';
|
|
83
|
+
|
|
84
|
+
$params = [
|
|
85
|
+
'clientId' => $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
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* Armenian PHPMailer language file: refer to English translation for definitive list
|
|
4
|
+
* @package PHPMailer
|
|
5
|
+
* @author Hrayr Grigoryan <hrayr@bits.am>
|
|
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'] = 'Հավելվածը բացակայում է: ';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* Arabic PHPMailer language file: refer to English translation for definitive list
|
|
4
|
+
* @package PHPMailer
|
|
5
|
+
* @author bahjat al mostafa <bahjat983@hotmail.com>
|
|
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'] = 'الإضافة غير موجودة: ';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* Azerbaijani PHPMailer language file: refer to English translation for definitive list
|
|
4
|
+
* @package PHPMailer
|
|
5
|
+
* @author @mirjalal
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
$PHPMAILER_LANG['authenticate'] = 'SMTP xətası: Giriş uğursuz oldu.';
|
|
9
|
+
$PHPMAILER_LANG['connect_host'] = 'SMTP xətası: SMTP serverinə qoşulma uğursuz oldu.';
|
|
10
|
+
$PHPMAILER_LANG['data_not_accepted'] = 'SMTP xətası: Verilənlər qəbul edilməyib.';
|
|
11
|
+
$PHPMAILER_LANG['empty_message'] = 'Boş mesaj göndərilə bilməz.';
|
|
12
|
+
$PHPMAILER_LANG['encoding'] = 'Qeyri-müəyyən kodlaşdırma: ';
|
|
13
|
+
$PHPMAILER_LANG['execute'] = 'Əmr yerinə yetirilmədi: ';
|
|
14
|
+
$PHPMAILER_LANG['file_access'] = 'Fayla giriş yoxdur: ';
|
|
15
|
+
$PHPMAILER_LANG['file_open'] = 'Fayl xətası: Fayl açıla bilmədi: ';
|
|
16
|
+
$PHPMAILER_LANG['from_failed'] = 'Göstərilən poçtlara göndərmə uğursuz oldu: ';
|
|
17
|
+
$PHPMAILER_LANG['instantiate'] = 'Mail funksiyası işə salına bilmədi.';
|
|
18
|
+
$PHPMAILER_LANG['invalid_address'] = 'Düzgün olmayan e-mail adresi: ';
|
|
19
|
+
$PHPMAILER_LANG['mailer_not_supported'] = ' - e-mail kitabxanası dəstəklənmir.';
|
|
20
|
+
$PHPMAILER_LANG['provide_address'] = 'Ən azı bir e-mail adresi daxil edilməlidir.';
|
|
21
|
+
$PHPMAILER_LANG['recipients_failed'] = 'SMTP xətası: Aşağıdakı ünvanlar üzrə alıcılara göndərmə uğursuzdur: ';
|
|
22
|
+
$PHPMAILER_LANG['signing'] = 'İmzalama xətası: ';
|
|
23
|
+
$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP serverinə qoşulma uğursuz oldu.';
|
|
24
|
+
$PHPMAILER_LANG['smtp_error'] = 'SMTP serveri xətası: ';
|
|
25
|
+
$PHPMAILER_LANG['variable_set'] = 'Dəyişənin quraşdırılması uğursuz oldu: ';
|
|
26
|
+
//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: ';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* Bosnian PHPMailer language file: refer to English translation for definitive list
|
|
4
|
+
* @package PHPMailer
|
|
5
|
+
* @author Ermin Islamagić <ermin@islamagic.com>
|
|
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: ';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* Belarusian PHPMailer language file: refer to English translation for definitive list
|
|
4
|
+
* @package PHPMailer
|
|
5
|
+
* @author Aleksander Maksymiuk <info@setpro.pl>
|
|
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: ';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* Bulgarian PHPMailer language file: refer to English translation for definitive list
|
|
4
|
+
* @package PHPMailer
|
|
5
|
+
* @author Mikhail Kyosev <mialygk@gmail.com>
|
|
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'] = 'Липсва разширение: ';
|