create-berna-stencil 1.0.8 → 1.0.10
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.
- package/.eleventy.js +3 -1
- package/.env.example +8 -0
- package/.gitignore +2 -1
- package/README.md +1 -5
- package/bin/create.js +2 -1
- package/package.json +71 -70
- package/src/.htaccess +18 -0
- package/src/api/.htaccess +12 -0
- package/src/api/composer.json +6 -0
- package/src/api/composer.lock +574 -0
- package/src/api/endpoints/protected/secret.php +16 -0
- package/src/api/endpoints/protected/send-mail.php +75 -0
- package/src/api/endpoints/public/ping.php +16 -0
- package/src/api/index.php +95 -0
- package/src/api/init.php +43 -0
- package/src/api/modules/Response.php +37 -0
- package/src/api/vendor/autoload.php +22 -0
- package/src/api/vendor/composer/ClassLoader.php +579 -0
- package/src/api/vendor/composer/InstalledVersions.php +396 -0
- package/src/api/vendor/composer/LICENSE +21 -0
- package/src/api/vendor/composer/autoload_classmap.php +15 -0
- package/src/api/vendor/composer/autoload_files.php +12 -0
- package/src/api/vendor/composer/autoload_namespaces.php +9 -0
- package/src/api/vendor/composer/autoload_psr4.php +16 -0
- package/src/api/vendor/composer/autoload_real.php +50 -0
- package/src/api/vendor/composer/autoload_static.php +86 -0
- package/src/api/vendor/composer/installed.json +582 -0
- package/src/api/vendor/composer/installed.php +86 -0
- package/src/api/vendor/composer/platform_check.php +25 -0
- package/src/api/vendor/graham-campbell/result-type/.gitattributes +9 -0
- package/src/api/vendor/graham-campbell/result-type/.github/CODE_OF_CONDUCT.md +132 -0
- package/src/api/vendor/graham-campbell/result-type/.github/CONTRIBUTING.md +31 -0
- package/src/api/vendor/graham-campbell/result-type/.github/FUNDING.yml +2 -0
- package/src/api/vendor/graham-campbell/result-type/.github/SECURITY.md +14 -0
- package/src/api/vendor/graham-campbell/result-type/.github/workflows/stale.yml +11 -0
- package/src/api/vendor/graham-campbell/result-type/.github/workflows/tests.yml +40 -0
- package/src/api/vendor/graham-campbell/result-type/CHANGELOG.md +53 -0
- package/src/api/vendor/graham-campbell/result-type/LICENSE +21 -0
- package/src/api/vendor/graham-campbell/result-type/README.md +42 -0
- package/src/api/vendor/graham-campbell/result-type/composer.json +33 -0
- package/src/api/vendor/graham-campbell/result-type/phpunit.xml.dist +13 -0
- package/src/api/vendor/graham-campbell/result-type/src/Error.php +121 -0
- package/src/api/vendor/graham-campbell/result-type/src/Result.php +69 -0
- package/src/api/vendor/graham-campbell/result-type/src/Success.php +120 -0
- package/src/api/vendor/graham-campbell/result-type/tests/ResultTest.php +95 -0
- package/src/api/vendor/phpmailer/phpmailer/.codecov.yml +21 -0
- package/src/api/vendor/phpmailer/phpmailer/.editorconfig +15 -0
- package/src/api/vendor/phpmailer/phpmailer/.gitattributes +17 -0
- package/src/api/vendor/phpmailer/phpmailer/.github/FUNDING.yml +6 -0
- package/src/api/vendor/phpmailer/phpmailer/.github/ISSUE_TEMPLATE/bug_report.md +23 -0
- package/src/api/vendor/phpmailer/phpmailer/.github/actions/build-docs/Dockerfile +15 -0
- package/src/api/vendor/phpmailer/phpmailer/.github/actions/build-docs/entrypoint.sh +5 -0
- package/src/api/vendor/phpmailer/phpmailer/.github/dependabot.yml +21 -0
- package/src/api/vendor/phpmailer/phpmailer/.github/workflows/docs.yaml +30 -0
- package/src/api/vendor/phpmailer/phpmailer/.github/workflows/scorecards.yml +61 -0
- package/src/api/vendor/phpmailer/phpmailer/.github/workflows/tests.yml +237 -0
- package/src/api/vendor/phpmailer/phpmailer/.phan/config.php +41 -0
- package/src/api/vendor/phpmailer/phpmailer/COMMITMENT +46 -0
- package/src/api/vendor/phpmailer/phpmailer/LICENSE +502 -0
- package/src/api/vendor/phpmailer/phpmailer/README.md +232 -0
- package/src/api/vendor/phpmailer/phpmailer/SECURITY.md +37 -0
- package/src/api/vendor/phpmailer/phpmailer/SMTPUTF8.md +48 -0
- package/src/api/vendor/phpmailer/phpmailer/UPGRADING.md +125 -0
- package/src/api/vendor/phpmailer/phpmailer/VERSION +1 -0
- package/src/api/vendor/phpmailer/phpmailer/changelog.md +1122 -0
- package/src/api/vendor/phpmailer/phpmailer/composer.json +84 -0
- package/src/api/vendor/phpmailer/phpmailer/docs/README.md +9 -0
- package/src/api/vendor/phpmailer/phpmailer/examples/DKIM_gen_keys.phps +81 -0
- package/src/api/vendor/phpmailer/phpmailer/examples/DKIM_sign.phps +46 -0
- package/src/api/vendor/phpmailer/phpmailer/examples/README.md +96 -0
- package/src/api/vendor/phpmailer/phpmailer/examples/azure_xoauth2.phps +126 -0
- package/src/api/vendor/phpmailer/phpmailer/examples/callback.phps +76 -0
- package/src/api/vendor/phpmailer/phpmailer/examples/contactform-ajax.phps +146 -0
- package/src/api/vendor/phpmailer/phpmailer/examples/contactform.phps +95 -0
- package/src/api/vendor/phpmailer/phpmailer/examples/contents.html +17 -0
- package/src/api/vendor/phpmailer/phpmailer/examples/contentsutf8.html +23 -0
- package/src/api/vendor/phpmailer/phpmailer/examples/exceptions.phps +40 -0
- package/src/api/vendor/phpmailer/phpmailer/examples/extending.phps +72 -0
- package/src/api/vendor/phpmailer/phpmailer/examples/gmail.phps +106 -0
- package/src/api/vendor/phpmailer/phpmailer/examples/gmail_xoauth.phps +121 -0
- package/src/api/vendor/phpmailer/phpmailer/examples/images/PHPMailer card logo.afdesign +0 -0
- package/src/api/vendor/phpmailer/phpmailer/examples/images/PHPMailer card logo.png +0 -0
- package/src/api/vendor/phpmailer/phpmailer/examples/images/PHPMailer card logo.svg +209 -0
- package/src/api/vendor/phpmailer/phpmailer/examples/images/phpmailer.png +0 -0
- package/src/api/vendor/phpmailer/phpmailer/examples/images/phpmailer_mini.png +0 -0
- package/src/api/vendor/phpmailer/phpmailer/examples/mail.phps +35 -0
- package/src/api/vendor/phpmailer/phpmailer/examples/mailing_list.phps +96 -0
- package/src/api/vendor/phpmailer/phpmailer/examples/pop_before_smtp.phps +60 -0
- package/src/api/vendor/phpmailer/phpmailer/examples/send_file_upload.phps +60 -0
- package/src/api/vendor/phpmailer/phpmailer/examples/send_multiple_file_upload.phps +60 -0
- package/src/api/vendor/phpmailer/phpmailer/examples/sendmail.phps +37 -0
- package/src/api/vendor/phpmailer/phpmailer/examples/sendoauth2.phps +100 -0
- package/src/api/vendor/phpmailer/phpmailer/examples/simple_contact_form.phps +102 -0
- package/src/api/vendor/phpmailer/phpmailer/examples/smime_signed_mail.phps +99 -0
- package/src/api/vendor/phpmailer/phpmailer/examples/smtp.phps +62 -0
- package/src/api/vendor/phpmailer/phpmailer/examples/smtp_check.phps +60 -0
- package/src/api/vendor/phpmailer/phpmailer/examples/smtp_low_memory.phps +117 -0
- package/src/api/vendor/phpmailer/phpmailer/examples/smtp_no_auth.phps +53 -0
- package/src/api/vendor/phpmailer/phpmailer/examples/ssl_options.phps +81 -0
- package/src/api/vendor/phpmailer/phpmailer/get_oauth_token.php +182 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-af.php +26 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-ar.php +27 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-as.php +35 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-az.php +27 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-ba.php +27 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-be.php +27 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-bg.php +27 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-bn.php +35 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-ca.php +27 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-cs.php +28 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-da.php +39 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-de.php +28 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-el.php +33 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-eo.php +37 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-es.php +38 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-et.php +28 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-fa.php +28 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-fi.php +27 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-fo.php +27 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-fr.php +36 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-gl.php +27 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-he.php +27 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-hi.php +35 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-hr.php +27 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-hu.php +27 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-hy.php +27 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-id.php +31 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-it.php +28 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-ja.php +37 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-ka.php +27 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-ko.php +27 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-ku.php +27 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-lt.php +27 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-lv.php +27 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-mg.php +27 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-mn.php +27 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-ms.php +27 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-nb.php +37 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-nl.php +38 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-pl.php +33 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-pt.php +34 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-pt_br.php +38 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-ro.php +33 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-ru.php +36 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-si.php +34 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-sk.php +30 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-sl.php +36 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-sr.php +28 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-sr_latn.php +28 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-sv.php +27 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-tl.php +28 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-tr.php +38 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-uk.php +28 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-ur.php +30 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-vi.php +27 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh.php +29 -0
- package/src/api/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh_cn.php +36 -0
- package/src/api/vendor/phpmailer/phpmailer/phpcs.xml.dist +52 -0
- package/src/api/vendor/phpmailer/phpmailer/phpdoc.dist.xml +20 -0
- package/src/api/vendor/phpmailer/phpmailer/phpunit.xml.dist +36 -0
- package/src/api/vendor/phpmailer/phpmailer/src/DSNConfigurator.php +245 -0
- package/src/api/vendor/phpmailer/phpmailer/src/Exception.php +40 -0
- package/src/api/vendor/phpmailer/phpmailer/src/OAuth.php +139 -0
- package/src/api/vendor/phpmailer/phpmailer/src/OAuthTokenProvider.php +44 -0
- package/src/api/vendor/phpmailer/phpmailer/src/PHPMailer.php +5525 -0
- package/src/api/vendor/phpmailer/phpmailer/src/POP3.php +470 -0
- package/src/api/vendor/phpmailer/phpmailer/src/SMTP.php +1617 -0
- package/src/api/vendor/phpmailer/phpmailer/test/DebugLogTestListener.php +47 -0
- package/src/api/vendor/phpmailer/phpmailer/test/Fixtures/FileIsAccessibleTest/accessible.txt +1 -0
- package/src/api/vendor/phpmailer/phpmailer/test/Fixtures/FileIsAccessibleTest/inaccessible.txt +1 -0
- package/src/api/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-fr.php +10 -0
- package/src/api/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-nl.php +10 -0
- package/src/api/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xa_scri_cc.php +9 -0
- package/src/api/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xb_scri.php +9 -0
- package/src/api/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xc_cc.php +9 -0
- package/src/api/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xd_cc.php +9 -0
- package/src/api/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xd_scri.php +9 -0
- package/src/api/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xe.php +9 -0
- package/src/api/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xx.php +9 -0
- package/src/api/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-yy.php +16 -0
- package/src/api/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-yz.php +16 -0
- package/src/api/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-zz.php +20 -0
- package/src/api/vendor/phpmailer/phpmailer/test/Language/TranslationCompletenessTest.php +97 -0
- package/src/api/vendor/phpmailer/phpmailer/test/OAuth/OAuthTest.php +76 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/AddEmbeddedImageTest.php +178 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/AddStringAttachmentTest.php +147 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/AddStringEmbeddedImageTest.php +161 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/AddrFormatTest.php +70 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/AuthCRAMMD5Test.php +48 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/CustomHeaderTest.php +285 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/DKIMTest.php +258 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/DKIMWithoutExceptionsTest.php +46 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/DSNConfiguratorTest.php +221 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/EncodeQTest.php +110 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/EncodeStringTest.php +135 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/FileIsAccessibleTest.php +103 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/FilenameToTypeTest.php +74 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/GenerateIdTest.php +75 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/GetLastMessageIDTest.php +110 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/HasLineLongerThanMaxTest.php +158 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/Html2TextTest.php +231 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/ICalTest.php +126 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/IsPermittedPathTest.php +108 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/IsValidHostTest.php +107 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/LocalizationTest.php +505 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/MailTransportTest.php +261 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/MbPathinfoTest.php +171 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/MimeTypesTest.php +70 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/NormalizeBreaksTest.php +111 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/PHPMailerTest.php +1388 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/ParseAddressesTest.php +321 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/PunyencodeAddressTest.php +141 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/QuotedStringTest.php +70 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/ReplyToGetSetClearTest.php +444 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/SetErrorTest.php +154 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/SetFromTest.php +202 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/SetTest.php +81 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/SetWordWrapTest.php +120 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/Utf8CharBoundaryTest.php +66 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/ValidateAddressCustomValidatorTest.php +116 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/ValidateAddressTest.php +485 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/WrapTextTest.php +125 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PHPMailer/XMailerTest.php +75 -0
- package/src/api/vendor/phpmailer/phpmailer/test/POP3/PopBeforeSmtpTest.php +139 -0
- package/src/api/vendor/phpmailer/phpmailer/test/PreSendTestCase.php +46 -0
- package/src/api/vendor/phpmailer/phpmailer/test/Security/DenialOfServiceVectorsTest.php +52 -0
- package/src/api/vendor/phpmailer/phpmailer/test/SendTestCase.php +126 -0
- package/src/api/vendor/phpmailer/phpmailer/test/TestCase.php +392 -0
- package/src/api/vendor/phpmailer/phpmailer/test/fakepopserver.sh +126 -0
- package/src/api/vendor/phpmailer/phpmailer/test/fakesendmail.sh +22 -0
- package/src/api/vendor/phpmailer/phpmailer/test/runfakepopserver.sh +12 -0
- package/src/api/vendor/phpmailer/phpmailer/test/testbootstrap-dist.php +8 -0
- package/src/api/vendor/phpmailer/phpmailer/test/validators.php +12 -0
- package/src/api/vendor/phpoption/phpoption/.gitattributes +13 -0
- package/src/api/vendor/phpoption/phpoption/.github/CODE_OF_CONDUCT.md +132 -0
- package/src/api/vendor/phpoption/phpoption/.github/CONTRIBUTING.md +30 -0
- package/src/api/vendor/phpoption/phpoption/.github/FUNDING.yml +2 -0
- package/src/api/vendor/phpoption/phpoption/.github/SECURITY.md +14 -0
- package/src/api/vendor/phpoption/phpoption/.github/workflows/static.yml +40 -0
- package/src/api/vendor/phpoption/phpoption/.github/workflows/tests.yml +40 -0
- package/src/api/vendor/phpoption/phpoption/LICENSE +201 -0
- package/src/api/vendor/phpoption/phpoption/Makefile +17 -0
- package/src/api/vendor/phpoption/phpoption/README.md +201 -0
- package/src/api/vendor/phpoption/phpoption/composer.json +50 -0
- package/src/api/vendor/phpoption/phpoption/phpstan-baseline.neon +44 -0
- package/src/api/vendor/phpoption/phpoption/phpstan.neon.dist +7 -0
- package/src/api/vendor/phpoption/phpoption/phpunit.xml.dist +13 -0
- package/src/api/vendor/phpoption/phpoption/src/PhpOption/LazyOption.php +175 -0
- package/src/api/vendor/phpoption/phpoption/src/PhpOption/None.php +136 -0
- package/src/api/vendor/phpoption/phpoption/src/PhpOption/Option.php +434 -0
- package/src/api/vendor/phpoption/phpoption/src/PhpOption/Some.php +169 -0
- package/src/api/vendor/phpoption/phpoption/tests/PhpOption/Tests/EnsureTest.php +72 -0
- package/src/api/vendor/phpoption/phpoption/tests/PhpOption/Tests/LazyOptionTest.php +357 -0
- package/src/api/vendor/phpoption/phpoption/tests/PhpOption/Tests/NoneTest.php +153 -0
- package/src/api/vendor/phpoption/phpoption/tests/PhpOption/Tests/OptionTest.php +166 -0
- package/src/api/vendor/phpoption/phpoption/tests/PhpOption/Tests/SomeTest.php +194 -0
- package/src/api/vendor/phpoption/phpoption/tests/bootstrap.php +8 -0
- package/src/api/vendor/phpoption/phpoption/vendor-bin/phpstan/composer.json +8 -0
- package/src/api/vendor/symfony/polyfill-ctype/Ctype.php +232 -0
- package/src/api/vendor/symfony/polyfill-ctype/LICENSE +19 -0
- package/src/api/vendor/symfony/polyfill-ctype/README.md +12 -0
- package/src/api/vendor/symfony/polyfill-ctype/bootstrap.php +50 -0
- package/src/api/vendor/symfony/polyfill-ctype/bootstrap80.php +46 -0
- package/src/api/vendor/symfony/polyfill-ctype/composer.json +38 -0
- package/src/api/vendor/symfony/polyfill-mbstring/LICENSE +19 -0
- package/src/api/vendor/symfony/polyfill-mbstring/Mbstring.php +1077 -0
- package/src/api/vendor/symfony/polyfill-mbstring/README.md +13 -0
- package/src/api/vendor/symfony/polyfill-mbstring/Resources/unidata/caseFolding.php +119 -0
- package/src/api/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php +1397 -0
- package/src/api/vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php +5 -0
- package/src/api/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php +1489 -0
- package/src/api/vendor/symfony/polyfill-mbstring/bootstrap.php +171 -0
- package/src/api/vendor/symfony/polyfill-mbstring/bootstrap80.php +167 -0
- package/src/api/vendor/symfony/polyfill-mbstring/composer.json +39 -0
- package/src/api/vendor/symfony/polyfill-php80/LICENSE +19 -0
- package/src/api/vendor/symfony/polyfill-php80/Php80.php +115 -0
- package/src/api/vendor/symfony/polyfill-php80/PhpToken.php +106 -0
- package/src/api/vendor/symfony/polyfill-php80/README.md +25 -0
- package/src/api/vendor/symfony/polyfill-php80/Resources/stubs/Attribute.php +31 -0
- package/src/api/vendor/symfony/polyfill-php80/Resources/stubs/PhpToken.php +16 -0
- package/src/api/vendor/symfony/polyfill-php80/Resources/stubs/Stringable.php +20 -0
- package/src/api/vendor/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php +16 -0
- package/src/api/vendor/symfony/polyfill-php80/Resources/stubs/ValueError.php +16 -0
- package/src/api/vendor/symfony/polyfill-php80/bootstrap.php +42 -0
- package/src/api/vendor/symfony/polyfill-php80/composer.json +37 -0
- package/src/api/vendor/vlucas/phpdotenv/.editorconfig +15 -0
- package/src/api/vendor/vlucas/phpdotenv/.gitattributes +15 -0
- package/src/api/vendor/vlucas/phpdotenv/.github/CODE_OF_CONDUCT.md +132 -0
- package/src/api/vendor/vlucas/phpdotenv/.github/CONTRIBUTING.md +30 -0
- package/src/api/vendor/vlucas/phpdotenv/.github/FUNDING.yml +2 -0
- package/src/api/vendor/vlucas/phpdotenv/.github/SECURITY.md +14 -0
- package/src/api/vendor/vlucas/phpdotenv/.github/workflows/static.yml +40 -0
- package/src/api/vendor/vlucas/phpdotenv/.github/workflows/tests.yml +70 -0
- package/src/api/vendor/vlucas/phpdotenv/LICENSE +30 -0
- package/src/api/vendor/vlucas/phpdotenv/Makefile +17 -0
- package/src/api/vendor/vlucas/phpdotenv/README.md +370 -0
- package/src/api/vendor/vlucas/phpdotenv/UPGRADING.md +196 -0
- package/src/api/vendor/vlucas/phpdotenv/composer.json +60 -0
- package/src/api/vendor/vlucas/phpdotenv/phpstan-baseline.neon +157 -0
- package/src/api/vendor/vlucas/phpdotenv/phpstan.neon.dist +7 -0
- package/src/api/vendor/vlucas/phpdotenv/phpunit.xml.dist +13 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Dotenv.php +267 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Exception/ExceptionInterface.php +12 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Exception/InvalidEncodingException.php +12 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Exception/InvalidFileException.php +12 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Exception/InvalidPathException.php +12 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Exception/ValidationException.php +12 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Loader/Loader.php +48 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Loader/LoaderInterface.php +20 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Loader/Resolver.php +65 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Parser/Entry.php +59 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Parser/EntryParser.php +299 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Parser/Lexer.php +58 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Parser/Lines.php +127 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Parser/Parser.php +53 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Parser/ParserInterface.php +19 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Parser/Value.php +88 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Repository/Adapter/AdapterInterface.php +15 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Repository/Adapter/ApacheAdapter.php +89 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Repository/Adapter/ArrayAdapter.php +80 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Repository/Adapter/EnvConstAdapter.php +88 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Repository/Adapter/GuardedWriter.php +85 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Repository/Adapter/ImmutableWriter.php +110 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Repository/Adapter/MultiReader.php +48 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Repository/Adapter/MultiWriter.php +64 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Repository/Adapter/PutenvAdapter.php +91 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Repository/Adapter/ReaderInterface.php +17 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Repository/Adapter/ReplacingWriter.php +104 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Repository/Adapter/ServerConstAdapter.php +88 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Repository/Adapter/WriterInterface.php +27 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Repository/AdapterRepository.php +107 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Repository/RepositoryBuilder.php +272 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Repository/RepositoryInterface.php +51 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Store/File/Paths.php +44 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Store/File/Reader.php +81 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Store/FileStore.php +72 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Store/StoreBuilder.php +141 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Store/StoreInterface.php +17 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Store/StringStore.php +37 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Util/Regex.php +112 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Util/Str.php +108 -0
- package/src/api/vendor/vlucas/phpdotenv/src/Validator.php +207 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/Dotenv/DotenvTest.php +387 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/Dotenv/Loader/LoaderTest.php +86 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/Dotenv/Parser/EntryParserTest.php +234 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/Dotenv/Parser/LexerTest.php +40 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/Dotenv/Parser/LinesTest.php +53 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/Dotenv/Parser/ParserTest.php +98 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/ArrayAdapterTest.php +57 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/EnvConstAdapterTest.php +75 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/PutenvAdapterTest.php +52 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/ServerConstAdapterTest.php +75 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/RepositoryTest.php +305 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/Dotenv/Store/StoreTest.php +141 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/Dotenv/ValidatorTest.php +479 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/fixtures/env/.env +5 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/fixtures/env/assertions.env +18 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/fixtures/env/booleans.env +33 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/fixtures/env/commented.env +15 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/fixtures/env/empty.env +1 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/fixtures/env/example.env +1 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/fixtures/env/exported.env +7 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/fixtures/env/immutable.env +1 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/fixtures/env/integers.env +17 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/fixtures/env/large.env +2 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/fixtures/env/multibyte.env +3 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/fixtures/env/multiline.env +14 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/fixtures/env/multiple.env +4 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/fixtures/env/mutable.env +1 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/fixtures/env/nested.env +15 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/fixtures/env/quoted.env +11 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/fixtures/env/specialchars.env +8 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/fixtures/env/unicodevarnames.env +2 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/fixtures/env/utf8-with-bom-encoding.env +3 -0
- package/src/api/vendor/vlucas/phpdotenv/tests/fixtures/env/windows.env +1 -0
- package/src/api/vendor/vlucas/phpdotenv/vendor-bin/phpstan/composer.json +15 -0
- package/src/api/configExample.php +0 -28
- package/src/api/sendEmail.php +0 -131
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Swedish PHPMailer language file: refer to English translation for definitive list
|
|
5
|
+
* @package PHPMailer
|
|
6
|
+
* @author Johan Linnér <johan@linner.biz>
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
$PHPMAILER_LANG['authenticate'] = 'SMTP fel: Kunde inte autentisera.';
|
|
10
|
+
$PHPMAILER_LANG['connect_host'] = 'SMTP fel: Kunde inte ansluta till SMTP-server.';
|
|
11
|
+
$PHPMAILER_LANG['data_not_accepted'] = 'SMTP fel: Data accepterades inte.';
|
|
12
|
+
//$PHPMAILER_LANG['empty_message'] = 'Message body empty';
|
|
13
|
+
$PHPMAILER_LANG['encoding'] = 'Okänt encode-format: ';
|
|
14
|
+
$PHPMAILER_LANG['execute'] = 'Kunde inte köra: ';
|
|
15
|
+
$PHPMAILER_LANG['file_access'] = 'Ingen åtkomst till fil: ';
|
|
16
|
+
$PHPMAILER_LANG['file_open'] = 'Fil fel: Kunde inte öppna fil: ';
|
|
17
|
+
$PHPMAILER_LANG['from_failed'] = 'Följande avsändaradress är felaktig: ';
|
|
18
|
+
$PHPMAILER_LANG['instantiate'] = 'Kunde inte initiera e-postfunktion.';
|
|
19
|
+
$PHPMAILER_LANG['invalid_address'] = 'Felaktig adress: ';
|
|
20
|
+
$PHPMAILER_LANG['provide_address'] = 'Du måste ange minst en mottagares e-postadress.';
|
|
21
|
+
$PHPMAILER_LANG['mailer_not_supported'] = ' mailer stöds inte.';
|
|
22
|
+
$PHPMAILER_LANG['recipients_failed'] = 'SMTP fel: Följande mottagare är felaktig: ';
|
|
23
|
+
$PHPMAILER_LANG['signing'] = 'Signeringsfel: ';
|
|
24
|
+
$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() misslyckades.';
|
|
25
|
+
$PHPMAILER_LANG['smtp_error'] = 'SMTP serverfel: ';
|
|
26
|
+
$PHPMAILER_LANG['variable_set'] = 'Kunde inte definiera eller återställa variabel: ';
|
|
27
|
+
$PHPMAILER_LANG['extension_missing'] = 'Tillägg ej tillgängligt: ';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Tagalog PHPMailer language file: refer to English translation for definitive list
|
|
5
|
+
*
|
|
6
|
+
* @package PHPMailer
|
|
7
|
+
* @author Adriane Justine Tan <eidoriantan@gmail.com>
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
$PHPMAILER_LANG['authenticate'] = 'SMTP Error: Hindi mapatotohanan.';
|
|
11
|
+
$PHPMAILER_LANG['connect_host'] = 'SMTP Error: Hindi makakonekta sa SMTP host.';
|
|
12
|
+
$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Error: Ang datos ay hindi naitanggap.';
|
|
13
|
+
$PHPMAILER_LANG['empty_message'] = 'Walang laman ang mensahe';
|
|
14
|
+
$PHPMAILER_LANG['encoding'] = 'Hindi alam ang encoding: ';
|
|
15
|
+
$PHPMAILER_LANG['execute'] = 'Hindi maisasagawa: ';
|
|
16
|
+
$PHPMAILER_LANG['file_access'] = 'Hindi ma-access ang file: ';
|
|
17
|
+
$PHPMAILER_LANG['file_open'] = 'File Error: Hindi mabuksan ang file: ';
|
|
18
|
+
$PHPMAILER_LANG['from_failed'] = 'Ang sumusunod na address ay nabigo: ';
|
|
19
|
+
$PHPMAILER_LANG['instantiate'] = 'Hindi maisimulan ang instance ng mail function.';
|
|
20
|
+
$PHPMAILER_LANG['invalid_address'] = 'Hindi wasto ang address na naibigay: ';
|
|
21
|
+
$PHPMAILER_LANG['mailer_not_supported'] = 'Ang mailer ay hindi suportado.';
|
|
22
|
+
$PHPMAILER_LANG['provide_address'] = 'Kailangan mong magbigay ng kahit isang email address na tatanggap.';
|
|
23
|
+
$PHPMAILER_LANG['recipients_failed'] = 'SMTP Error: Ang mga sumusunod na tatanggap ay nabigo: ';
|
|
24
|
+
$PHPMAILER_LANG['signing'] = 'Hindi ma-sign: ';
|
|
25
|
+
$PHPMAILER_LANG['smtp_connect_failed'] = 'Ang SMTP connect() ay nabigo.';
|
|
26
|
+
$PHPMAILER_LANG['smtp_error'] = 'Ang server ng SMTP ay nabigo: ';
|
|
27
|
+
$PHPMAILER_LANG['variable_set'] = 'Hindi matatakda o ma-reset ang mga variables: ';
|
|
28
|
+
$PHPMAILER_LANG['extension_missing'] = 'Nawawala ang extension: ';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Turkish PHPMailer language file: refer to English translation for definitive list
|
|
5
|
+
* @package PHPMailer
|
|
6
|
+
* @author Elçin Özel
|
|
7
|
+
* @author Can Yılmaz
|
|
8
|
+
* @author Mehmet Benlioğlu
|
|
9
|
+
* @author @yasinaydin
|
|
10
|
+
* @author Ogün Karakuş
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
$PHPMAILER_LANG['authenticate'] = 'SMTP Hatası: Oturum açılamadı.';
|
|
14
|
+
$PHPMAILER_LANG['buggy_php'] = 'PHP sürümünüz iletilerin bozulmasına neden olabilecek bir hatadan etkileniyor. Bunu düzeltmek için, SMTP kullanarak göndermeye geçin, mail.add_x_header seçeneğini devre dışı bırakın php.ini dosyanızdaki mail.add_x_header seçeneğini devre dışı bırakın, MacOS veya Linux geçin veya PHP sürümünü 7.0.17+ veya 7.1.3+ sürümüne yükseltin,';
|
|
15
|
+
$PHPMAILER_LANG['connect_host'] = 'SMTP Hatası: SMTP sunucusuna bağlanılamadı.';
|
|
16
|
+
$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Hatası: Veri kabul edilmedi.';
|
|
17
|
+
$PHPMAILER_LANG['empty_message'] = 'Mesajın içeriği boş';
|
|
18
|
+
$PHPMAILER_LANG['encoding'] = 'Bilinmeyen karakter kodlama: ';
|
|
19
|
+
$PHPMAILER_LANG['execute'] = 'Çalıştırılamadı: ';
|
|
20
|
+
$PHPMAILER_LANG['extension_missing'] = 'Eklenti bulunamadı: ';
|
|
21
|
+
$PHPMAILER_LANG['file_access'] = 'Dosyaya erişilemedi: ';
|
|
22
|
+
$PHPMAILER_LANG['file_open'] = 'Dosya Hatası: Dosya açılamadı: ';
|
|
23
|
+
$PHPMAILER_LANG['from_failed'] = 'Belirtilen adreslere gönderme başarısız: ';
|
|
24
|
+
$PHPMAILER_LANG['instantiate'] = 'Örnek e-posta fonksiyonu oluşturulamadı.';
|
|
25
|
+
$PHPMAILER_LANG['invalid_address'] = 'Geçersiz e-posta adresi: ';
|
|
26
|
+
$PHPMAILER_LANG['invalid_header'] = 'Geçersiz başlık adı veya değeri: ';
|
|
27
|
+
$PHPMAILER_LANG['invalid_hostentry'] = 'Geçersiz ana bilgisayar girişi: ';
|
|
28
|
+
$PHPMAILER_LANG['invalid_host'] = 'Geçersiz ana bilgisayar: ';
|
|
29
|
+
$PHPMAILER_LANG['mailer_not_supported'] = ' e-posta kütüphanesi desteklenmiyor.';
|
|
30
|
+
$PHPMAILER_LANG['provide_address'] = 'En az bir alıcı e-posta adresi belirtmelisiniz.';
|
|
31
|
+
$PHPMAILER_LANG['recipients_failed'] = 'SMTP Hatası: Belirtilen alıcılara ulaşılamadı: ';
|
|
32
|
+
$PHPMAILER_LANG['signing'] = 'İmzalama hatası: ';
|
|
33
|
+
$PHPMAILER_LANG['smtp_code'] = 'SMTP kodu: ';
|
|
34
|
+
$PHPMAILER_LANG['smtp_code_ex'] = 'ek SMTP bilgileri: ';
|
|
35
|
+
$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP connect() fonksiyonu başarısız.';
|
|
36
|
+
$PHPMAILER_LANG['smtp_detail'] = 'SMTP SMTP Detayı: ';
|
|
37
|
+
$PHPMAILER_LANG['smtp_error'] = 'SMTP sunucu hatası: ';
|
|
38
|
+
$PHPMAILER_LANG['variable_set'] = 'Değişken ayarlanamadı ya da sıfırlanamadı: ';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Ukrainian PHPMailer language file: refer to English translation for definitive list
|
|
5
|
+
* @package PHPMailer
|
|
6
|
+
* @author Yuriy Rudyy <yrudyy@prs.net.ua>
|
|
7
|
+
* @fixed by Boris Yurchenko <boris@yurchenko.pp.ua>
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
$PHPMAILER_LANG['authenticate'] = 'Помилка SMTP: помилка авторизації.';
|
|
11
|
+
$PHPMAILER_LANG['connect_host'] = 'Помилка SMTP: не вдається під\'єднатися до SMTP-серверу.';
|
|
12
|
+
$PHPMAILER_LANG['data_not_accepted'] = 'Помилка SMTP: дані не прийнято.';
|
|
13
|
+
$PHPMAILER_LANG['encoding'] = 'Невідоме кодування: ';
|
|
14
|
+
$PHPMAILER_LANG['execute'] = 'Неможливо виконати команду: ';
|
|
15
|
+
$PHPMAILER_LANG['file_access'] = 'Немає доступу до файлу: ';
|
|
16
|
+
$PHPMAILER_LANG['file_open'] = 'Помилка файлової системи: не вдається відкрити файл: ';
|
|
17
|
+
$PHPMAILER_LANG['from_failed'] = 'Невірна адреса відправника: ';
|
|
18
|
+
$PHPMAILER_LANG['instantiate'] = 'Неможливо запустити функцію mail().';
|
|
19
|
+
$PHPMAILER_LANG['provide_address'] = 'Будь ласка, введіть хоча б одну email-адресу отримувача.';
|
|
20
|
+
$PHPMAILER_LANG['mailer_not_supported'] = ' - поштовий сервер не підтримується.';
|
|
21
|
+
$PHPMAILER_LANG['recipients_failed'] = 'Помилка SMTP: не вдалося відправлення для таких отримувачів: ';
|
|
22
|
+
$PHPMAILER_LANG['empty_message'] = 'Пусте повідомлення';
|
|
23
|
+
$PHPMAILER_LANG['invalid_address'] = 'Не відправлено через неправильний формат email-адреси: ';
|
|
24
|
+
$PHPMAILER_LANG['signing'] = 'Помилка підпису: ';
|
|
25
|
+
$PHPMAILER_LANG['smtp_connect_failed'] = 'Помилка з\'єднання з SMTP-сервером';
|
|
26
|
+
$PHPMAILER_LANG['smtp_error'] = 'Помилка SMTP-сервера: ';
|
|
27
|
+
$PHPMAILER_LANG['variable_set'] = 'Неможливо встановити або скинути змінну: ';
|
|
28
|
+
$PHPMAILER_LANG['extension_missing'] = 'Розширення відсутнє: ';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Urdu PHPMailer language file: refer to English translation for definitive list
|
|
5
|
+
* @package PHPMailer
|
|
6
|
+
* @author Saqib Ali Siddiqui <saqibsra@gmail.com>
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
$PHPMAILER_LANG['authenticate'] = 'SMTP خرابی: تصدیق کرنے سے قاصر۔';
|
|
10
|
+
$PHPMAILER_LANG['connect_host'] = 'SMTP خرابی: سرور سے منسلک ہونے سے قاصر۔';
|
|
11
|
+
$PHPMAILER_LANG['data_not_accepted'] = 'SMTP خرابی: ڈیٹا قبول نہیں کیا گیا۔';
|
|
12
|
+
$PHPMAILER_LANG['empty_message'] = 'پیغام کی باڈی خالی ہے۔';
|
|
13
|
+
$PHPMAILER_LANG['encoding'] = 'نامعلوم انکوڈنگ: ';
|
|
14
|
+
$PHPMAILER_LANG['execute'] = 'عمل کرنے کے قابل نہیں ';
|
|
15
|
+
$PHPMAILER_LANG['file_access'] = 'فائل تک رسائی سے قاصر:';
|
|
16
|
+
$PHPMAILER_LANG['file_open'] = 'فائل کی خرابی: فائل کو کھولنے سے قاصر:';
|
|
17
|
+
$PHPMAILER_LANG['from_failed'] = 'درج ذیل بھیجنے والے کا پتہ ناکام ہو گیا:';
|
|
18
|
+
$PHPMAILER_LANG['instantiate'] = 'میل فنکشن کی مثال بنانے سے قاصر۔';
|
|
19
|
+
$PHPMAILER_LANG['invalid_address'] = 'بھیجنے سے قاصر: غلط ای میل پتہ:';
|
|
20
|
+
$PHPMAILER_LANG['mailer_not_supported'] = ' میلر تعاون یافتہ نہیں ہے۔';
|
|
21
|
+
$PHPMAILER_LANG['provide_address'] = 'آپ کو کم از کم ایک منزل کا ای میل پتہ فراہم کرنا چاہیے۔';
|
|
22
|
+
$PHPMAILER_LANG['recipients_failed'] = 'SMTP خرابی: درج ذیل پتہ پر نہیں بھیجا جاسکا: ';
|
|
23
|
+
$PHPMAILER_LANG['signing'] = 'دستخط کی خرابی: ';
|
|
24
|
+
$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP ملنا ناکام ہوا';
|
|
25
|
+
$PHPMAILER_LANG['smtp_error'] = 'SMTP سرور کی خرابی: ';
|
|
26
|
+
$PHPMAILER_LANG['variable_set'] = 'متغیر سیٹ نہیں کیا جا سکا: ';
|
|
27
|
+
$PHPMAILER_LANG['extension_missing'] = 'ایکٹینشن موجود نہیں ہے۔ ';
|
|
28
|
+
$PHPMAILER_LANG['smtp_code'] = 'SMTP سرور کوڈ: ';
|
|
29
|
+
$PHPMAILER_LANG['smtp_code_ex'] = 'اضافی SMTP سرور کی معلومات:';
|
|
30
|
+
$PHPMAILER_LANG['invalid_header'] = 'غلط ہیڈر کا نام یا قدر';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Vietnamese (Tiếng Việt) PHPMailer language file: refer to English translation for definitive list.
|
|
5
|
+
* @package PHPMailer
|
|
6
|
+
* @author VINADES.,JSC <contact@vinades.vn>
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
$PHPMAILER_LANG['authenticate'] = 'Lỗi SMTP: Không thể xác thực.';
|
|
10
|
+
$PHPMAILER_LANG['connect_host'] = 'Lỗi SMTP: Không thể kết nối máy chủ SMTP.';
|
|
11
|
+
$PHPMAILER_LANG['data_not_accepted'] = 'Lỗi SMTP: Dữ liệu không được chấp nhận.';
|
|
12
|
+
$PHPMAILER_LANG['empty_message'] = 'Không có nội dung';
|
|
13
|
+
$PHPMAILER_LANG['encoding'] = 'Mã hóa không xác định: ';
|
|
14
|
+
$PHPMAILER_LANG['execute'] = 'Không thực hiện được: ';
|
|
15
|
+
$PHPMAILER_LANG['file_access'] = 'Không thể truy cập tệp tin ';
|
|
16
|
+
$PHPMAILER_LANG['file_open'] = 'Lỗi Tập tin: Không thể mở tệp tin: ';
|
|
17
|
+
$PHPMAILER_LANG['from_failed'] = 'Lỗi địa chỉ gửi đi: ';
|
|
18
|
+
$PHPMAILER_LANG['instantiate'] = 'Không dùng được các hàm gửi thư.';
|
|
19
|
+
$PHPMAILER_LANG['invalid_address'] = 'Đại chỉ emai không đúng: ';
|
|
20
|
+
$PHPMAILER_LANG['mailer_not_supported'] = ' trình gửi thư không được hỗ trợ.';
|
|
21
|
+
$PHPMAILER_LANG['provide_address'] = 'Bạn phải cung cấp ít nhất một địa chỉ người nhận.';
|
|
22
|
+
$PHPMAILER_LANG['recipients_failed'] = 'Lỗi SMTP: lỗi địa chỉ người nhận: ';
|
|
23
|
+
$PHPMAILER_LANG['signing'] = 'Lỗi đăng nhập: ';
|
|
24
|
+
$PHPMAILER_LANG['smtp_connect_failed'] = 'Lỗi kết nối với SMTP';
|
|
25
|
+
$PHPMAILER_LANG['smtp_error'] = 'Lỗi máy chủ smtp ';
|
|
26
|
+
$PHPMAILER_LANG['variable_set'] = 'Không thể thiết lập hoặc thiết lập lại biến: ';
|
|
27
|
+
//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: ';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Traditional Chinese PHPMailer language file: refer to English translation for definitive list
|
|
5
|
+
* @package PHPMailer
|
|
6
|
+
* @author liqwei <liqwei@liqwei.com>
|
|
7
|
+
* @author Peter Dave Hello <@PeterDaveHello/>
|
|
8
|
+
* @author Jason Chiang <xcojad@gmail.com>
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
$PHPMAILER_LANG['authenticate'] = 'SMTP 錯誤:登入失敗。';
|
|
12
|
+
$PHPMAILER_LANG['connect_host'] = 'SMTP 錯誤:無法連線到 SMTP 主機。';
|
|
13
|
+
$PHPMAILER_LANG['data_not_accepted'] = 'SMTP 錯誤:無法接受的資料。';
|
|
14
|
+
$PHPMAILER_LANG['empty_message'] = '郵件內容為空';
|
|
15
|
+
$PHPMAILER_LANG['encoding'] = '未知編碼: ';
|
|
16
|
+
$PHPMAILER_LANG['execute'] = '無法執行:';
|
|
17
|
+
$PHPMAILER_LANG['file_access'] = '無法存取檔案:';
|
|
18
|
+
$PHPMAILER_LANG['file_open'] = '檔案錯誤:無法開啟檔案:';
|
|
19
|
+
$PHPMAILER_LANG['from_failed'] = '發送地址錯誤:';
|
|
20
|
+
$PHPMAILER_LANG['instantiate'] = '未知函數呼叫。';
|
|
21
|
+
$PHPMAILER_LANG['invalid_address'] = '因為電子郵件地址無效,無法傳送: ';
|
|
22
|
+
$PHPMAILER_LANG['mailer_not_supported'] = '不支援的發信客戶端。';
|
|
23
|
+
$PHPMAILER_LANG['provide_address'] = '必須提供至少一個收件人地址。';
|
|
24
|
+
$PHPMAILER_LANG['recipients_failed'] = 'SMTP 錯誤:以下收件人地址錯誤:';
|
|
25
|
+
$PHPMAILER_LANG['signing'] = '電子簽章錯誤: ';
|
|
26
|
+
$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP 連線失敗';
|
|
27
|
+
$PHPMAILER_LANG['smtp_error'] = 'SMTP 伺服器錯誤: ';
|
|
28
|
+
$PHPMAILER_LANG['variable_set'] = '無法設定或重設變數: ';
|
|
29
|
+
$PHPMAILER_LANG['extension_missing'] = '遺失模組 Extension: ';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Simplified Chinese PHPMailer language file: refer to English translation for definitive list
|
|
5
|
+
* @package PHPMailer
|
|
6
|
+
* @author liqwei <liqwei@liqwei.com>
|
|
7
|
+
* @author young <masxy@foxmail.com>
|
|
8
|
+
* @author Teddysun <i@teddysun.com>
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
$PHPMAILER_LANG['authenticate'] = 'SMTP 错误:登录失败。';
|
|
12
|
+
$PHPMAILER_LANG['buggy_php'] = '您的 PHP 版本存在漏洞,可能会导致消息损坏。为修复此问题,请切换到使用 SMTP 发送,在您的 php.ini 中禁用 mail.add_x_header 选项。切换到 MacOS 或 Linux,或将您的 PHP 升级到 7.0.17+ 或 7.1.3+ 版本。';
|
|
13
|
+
$PHPMAILER_LANG['connect_host'] = 'SMTP 错误:无法连接到 SMTP 主机。';
|
|
14
|
+
$PHPMAILER_LANG['data_not_accepted'] = 'SMTP 错误:数据不被接受。';
|
|
15
|
+
$PHPMAILER_LANG['empty_message'] = '邮件正文为空。';
|
|
16
|
+
$PHPMAILER_LANG['encoding'] = '未知编码:';
|
|
17
|
+
$PHPMAILER_LANG['execute'] = '无法执行:';
|
|
18
|
+
$PHPMAILER_LANG['extension_missing'] = '缺少扩展名:';
|
|
19
|
+
$PHPMAILER_LANG['file_access'] = '无法访问文件:';
|
|
20
|
+
$PHPMAILER_LANG['file_open'] = '文件错误:无法打开文件:';
|
|
21
|
+
$PHPMAILER_LANG['from_failed'] = '发送地址错误:';
|
|
22
|
+
$PHPMAILER_LANG['instantiate'] = '未知函数调用。';
|
|
23
|
+
$PHPMAILER_LANG['invalid_address'] = '发送失败,电子邮箱地址是无效的:';
|
|
24
|
+
$PHPMAILER_LANG['mailer_not_supported'] = '发信客户端不被支持。';
|
|
25
|
+
$PHPMAILER_LANG['provide_address'] = '必须提供至少一个收件人地址。';
|
|
26
|
+
$PHPMAILER_LANG['recipients_failed'] = 'SMTP 错误:收件人地址错误:';
|
|
27
|
+
$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP服务器连接失败。';
|
|
28
|
+
$PHPMAILER_LANG['smtp_error'] = 'SMTP服务器出错:';
|
|
29
|
+
$PHPMAILER_LANG['variable_set'] = '无法设置或重置变量:';
|
|
30
|
+
$PHPMAILER_LANG['invalid_header'] = '无效的标题名称或值';
|
|
31
|
+
$PHPMAILER_LANG['invalid_hostentry'] = '无效的hostentry: ';
|
|
32
|
+
$PHPMAILER_LANG['invalid_host'] = '无效的主机:';
|
|
33
|
+
$PHPMAILER_LANG['signing'] = '签名错误:';
|
|
34
|
+
$PHPMAILER_LANG['smtp_code'] = 'SMTP代码: ';
|
|
35
|
+
$PHPMAILER_LANG['smtp_code_ex'] = '附加SMTP信息: ';
|
|
36
|
+
$PHPMAILER_LANG['smtp_detail'] = '详情:';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
3
|
+
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
|
|
4
|
+
|
|
5
|
+
<config name="testVersion" value="5.5-"/>
|
|
6
|
+
|
|
7
|
+
<arg name="basepath" value="."/>
|
|
8
|
+
<arg name="cache" value=".phpcs-cache"/>
|
|
9
|
+
<arg name="colors"/>
|
|
10
|
+
<arg name="extensions" value="php,phps"/>
|
|
11
|
+
<arg name="parallel" value="10"/>
|
|
12
|
+
<!-- Show progress -->
|
|
13
|
+
<arg value="p"/>
|
|
14
|
+
|
|
15
|
+
<file>get_oauth_token.php</file>
|
|
16
|
+
<file>src</file>
|
|
17
|
+
<file>test</file>
|
|
18
|
+
<file>examples</file>
|
|
19
|
+
<file>language</file>
|
|
20
|
+
|
|
21
|
+
<rule ref="PSR12">
|
|
22
|
+
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
|
|
23
|
+
<exclude name="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
|
|
24
|
+
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols"/>
|
|
25
|
+
<exclude name="PSR1.Methods.CamelCapsMethodName"/>
|
|
26
|
+
<exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"/>
|
|
27
|
+
<exclude name="PSR2.Methods.MethodDeclaration.Underscore"/>
|
|
28
|
+
<exclude name="PSR12.Properties.ConstantVisibility.NotFound"/>
|
|
29
|
+
</rule>
|
|
30
|
+
<rule ref="PHPCompatibility"/>
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
<!--
|
|
34
|
+
#############################################################################
|
|
35
|
+
SELECTIVE EXCLUSIONS
|
|
36
|
+
Exclude specific files for specific sniffs and/or exclude sub-groups in sniffs.
|
|
37
|
+
#############################################################################
|
|
38
|
+
-->
|
|
39
|
+
|
|
40
|
+
<rule ref="Generic.Files.LineLength.TooLong">
|
|
41
|
+
<exclude-pattern>*/language/phpmailer\.lang*\.php$</exclude-pattern>
|
|
42
|
+
</rule>
|
|
43
|
+
|
|
44
|
+
<!-- Excludes related to linting ignore comment for one specific test file. -->
|
|
45
|
+
<rule ref="PSR12.Files.OpenTag.NotAlone">
|
|
46
|
+
<exclude-pattern>*/test/Fixtures/LocalizationTest/phpmailer.lang-yz\.php</exclude-pattern>
|
|
47
|
+
</rule>
|
|
48
|
+
<rule ref="PSR12.Files.FileHeader.SpacingAfterBlock">
|
|
49
|
+
<exclude-pattern>*/test/Fixtures/LocalizationTest/phpmailer.lang-yz\.php</exclude-pattern>
|
|
50
|
+
</rule>
|
|
51
|
+
|
|
52
|
+
</ruleset>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" ?>
|
|
2
|
+
<phpdoc>
|
|
3
|
+
<title>PHPMailer</title>
|
|
4
|
+
<parser>
|
|
5
|
+
<target>docs</target>
|
|
6
|
+
<encoding>utf8</encoding>
|
|
7
|
+
<markers>
|
|
8
|
+
<item>TODO</item>
|
|
9
|
+
</markers>
|
|
10
|
+
</parser>
|
|
11
|
+
<transformer>
|
|
12
|
+
<target>docs</target>
|
|
13
|
+
</transformer>
|
|
14
|
+
<transformations>
|
|
15
|
+
<template name="clean"/>
|
|
16
|
+
</transformations>
|
|
17
|
+
<files>
|
|
18
|
+
<directory>src</directory>
|
|
19
|
+
</files>
|
|
20
|
+
</phpdoc>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<phpunit
|
|
3
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
4
|
+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/8.5/phpunit.xsd"
|
|
5
|
+
backupGlobals="true"
|
|
6
|
+
bootstrap="vendor/autoload.php"
|
|
7
|
+
convertDeprecationsToExceptions="true"
|
|
8
|
+
verbose="true"
|
|
9
|
+
colors="true"
|
|
10
|
+
forceCoversAnnotation="false"
|
|
11
|
+
>
|
|
12
|
+
<testsuites>
|
|
13
|
+
<testsuite name="PHPMailerTests">
|
|
14
|
+
<directory>./test/</directory>
|
|
15
|
+
</testsuite>
|
|
16
|
+
</testsuites>
|
|
17
|
+
<listeners>
|
|
18
|
+
<listener class="PHPMailer\Test\DebugLogTestListener" />
|
|
19
|
+
</listeners>
|
|
20
|
+
<groups>
|
|
21
|
+
<exclude>
|
|
22
|
+
<group>languages</group>
|
|
23
|
+
<group>pop3</group>
|
|
24
|
+
</exclude>
|
|
25
|
+
</groups>
|
|
26
|
+
<filter>
|
|
27
|
+
<whitelist addUncoveredFilesFromWhitelist="true">
|
|
28
|
+
<directory suffix=".php">./src</directory>
|
|
29
|
+
</whitelist>
|
|
30
|
+
</filter>
|
|
31
|
+
<logging>
|
|
32
|
+
<log type="coverage-text" target="php://stdout" showUncoveredFiles="true"/>
|
|
33
|
+
<log type="coverage-clover" target="build/logs/clover.xml"/>
|
|
34
|
+
<log type="junit" target="build/logs/junit.xml"/>
|
|
35
|
+
</logging>
|
|
36
|
+
</phpunit>
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* PHPMailer - PHP email creation and transport class.
|
|
5
|
+
* PHP Version 5.5.
|
|
6
|
+
*
|
|
7
|
+
* @see https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
|
|
8
|
+
*
|
|
9
|
+
* @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
|
|
10
|
+
* @author Jim Jagielski (jimjag) <jimjag@gmail.com>
|
|
11
|
+
* @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
|
|
12
|
+
* @author Brent R. Matzelle (original founder)
|
|
13
|
+
* @copyright 2012 - 2023 Marcus Bointon
|
|
14
|
+
* @copyright 2010 - 2012 Jim Jagielski
|
|
15
|
+
* @copyright 2004 - 2009 Andy Prevost
|
|
16
|
+
* @license https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html GNU Lesser General Public License
|
|
17
|
+
* @note This program is distributed in the hope that it will be useful - WITHOUT
|
|
18
|
+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
19
|
+
* FITNESS FOR A PARTICULAR PURPOSE.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
namespace PHPMailer\PHPMailer;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Configure PHPMailer with DSN string.
|
|
26
|
+
*
|
|
27
|
+
* @see https://en.wikipedia.org/wiki/Data_source_name
|
|
28
|
+
*
|
|
29
|
+
* @author Oleg Voronkovich <oleg-voronkovich@yandex.ru>
|
|
30
|
+
*/
|
|
31
|
+
class DSNConfigurator
|
|
32
|
+
{
|
|
33
|
+
/**
|
|
34
|
+
* Create new PHPMailer instance configured by DSN.
|
|
35
|
+
*
|
|
36
|
+
* @param string $dsn DSN
|
|
37
|
+
* @param bool $exceptions Should we throw external exceptions?
|
|
38
|
+
*
|
|
39
|
+
* @return PHPMailer
|
|
40
|
+
*/
|
|
41
|
+
public static function mailer($dsn, $exceptions = null)
|
|
42
|
+
{
|
|
43
|
+
static $configurator = null;
|
|
44
|
+
|
|
45
|
+
if (null === $configurator) {
|
|
46
|
+
$configurator = new DSNConfigurator();
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return $configurator->configure(new PHPMailer($exceptions), $dsn);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Configure PHPMailer instance with DSN string.
|
|
54
|
+
*
|
|
55
|
+
* @param PHPMailer $mailer PHPMailer instance
|
|
56
|
+
* @param string $dsn DSN
|
|
57
|
+
*
|
|
58
|
+
* @return PHPMailer
|
|
59
|
+
*/
|
|
60
|
+
public function configure(PHPMailer $mailer, $dsn)
|
|
61
|
+
{
|
|
62
|
+
$config = $this->parseDSN($dsn);
|
|
63
|
+
|
|
64
|
+
$this->applyConfig($mailer, $config);
|
|
65
|
+
|
|
66
|
+
return $mailer;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Parse DSN string.
|
|
71
|
+
*
|
|
72
|
+
* @param string $dsn DSN
|
|
73
|
+
*
|
|
74
|
+
* @throws Exception If DSN is malformed
|
|
75
|
+
*
|
|
76
|
+
* @return array Configuration
|
|
77
|
+
*/
|
|
78
|
+
private function parseDSN($dsn)
|
|
79
|
+
{
|
|
80
|
+
$config = $this->parseUrl($dsn);
|
|
81
|
+
|
|
82
|
+
if (false === $config || !isset($config['scheme']) || !isset($config['host'])) {
|
|
83
|
+
throw new Exception('Malformed DSN');
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (isset($config['query'])) {
|
|
87
|
+
parse_str($config['query'], $config['query']);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return $config;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Apply configuration to mailer.
|
|
95
|
+
*
|
|
96
|
+
* @param PHPMailer $mailer PHPMailer instance
|
|
97
|
+
* @param array $config Configuration
|
|
98
|
+
*
|
|
99
|
+
* @throws Exception If scheme is invalid
|
|
100
|
+
*/
|
|
101
|
+
private function applyConfig(PHPMailer $mailer, $config)
|
|
102
|
+
{
|
|
103
|
+
switch ($config['scheme']) {
|
|
104
|
+
case 'mail':
|
|
105
|
+
$mailer->isMail();
|
|
106
|
+
break;
|
|
107
|
+
case 'sendmail':
|
|
108
|
+
$mailer->isSendmail();
|
|
109
|
+
break;
|
|
110
|
+
case 'qmail':
|
|
111
|
+
$mailer->isQmail();
|
|
112
|
+
break;
|
|
113
|
+
case 'smtp':
|
|
114
|
+
case 'smtps':
|
|
115
|
+
$mailer->isSMTP();
|
|
116
|
+
$this->configureSMTP($mailer, $config);
|
|
117
|
+
break;
|
|
118
|
+
default:
|
|
119
|
+
throw new Exception(
|
|
120
|
+
sprintf(
|
|
121
|
+
'Invalid scheme: "%s". Allowed values: "mail", "sendmail", "qmail", "smtp", "smtps".',
|
|
122
|
+
$config['scheme']
|
|
123
|
+
)
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
if (isset($config['query'])) {
|
|
128
|
+
$this->configureOptions($mailer, $config['query']);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Configure SMTP.
|
|
134
|
+
*
|
|
135
|
+
* @param PHPMailer $mailer PHPMailer instance
|
|
136
|
+
* @param array $config Configuration
|
|
137
|
+
*/
|
|
138
|
+
private function configureSMTP($mailer, $config)
|
|
139
|
+
{
|
|
140
|
+
$isSMTPS = 'smtps' === $config['scheme'];
|
|
141
|
+
|
|
142
|
+
if ($isSMTPS) {
|
|
143
|
+
$mailer->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
$mailer->Host = $config['host'];
|
|
147
|
+
|
|
148
|
+
if (isset($config['port'])) {
|
|
149
|
+
$mailer->Port = $config['port'];
|
|
150
|
+
} elseif ($isSMTPS) {
|
|
151
|
+
$mailer->Port = SMTP::DEFAULT_SECURE_PORT;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
$mailer->SMTPAuth = isset($config['user']) || isset($config['pass']);
|
|
155
|
+
|
|
156
|
+
if (isset($config['user'])) {
|
|
157
|
+
$mailer->Username = $config['user'];
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
if (isset($config['pass'])) {
|
|
161
|
+
$mailer->Password = $config['pass'];
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Configure options.
|
|
167
|
+
*
|
|
168
|
+
* @param PHPMailer $mailer PHPMailer instance
|
|
169
|
+
* @param array $options Options
|
|
170
|
+
*
|
|
171
|
+
* @throws Exception If option is unknown
|
|
172
|
+
*/
|
|
173
|
+
private function configureOptions(PHPMailer $mailer, $options)
|
|
174
|
+
{
|
|
175
|
+
$allowedOptions = get_object_vars($mailer);
|
|
176
|
+
|
|
177
|
+
unset($allowedOptions['Mailer']);
|
|
178
|
+
unset($allowedOptions['SMTPAuth']);
|
|
179
|
+
unset($allowedOptions['Username']);
|
|
180
|
+
unset($allowedOptions['Password']);
|
|
181
|
+
unset($allowedOptions['Hostname']);
|
|
182
|
+
unset($allowedOptions['Port']);
|
|
183
|
+
unset($allowedOptions['ErrorInfo']);
|
|
184
|
+
|
|
185
|
+
$allowedOptions = \array_keys($allowedOptions);
|
|
186
|
+
|
|
187
|
+
foreach ($options as $key => $value) {
|
|
188
|
+
if (!in_array($key, $allowedOptions)) {
|
|
189
|
+
throw new Exception(
|
|
190
|
+
sprintf(
|
|
191
|
+
'Unknown option: "%s". Allowed values: "%s"',
|
|
192
|
+
$key,
|
|
193
|
+
implode('", "', $allowedOptions)
|
|
194
|
+
)
|
|
195
|
+
);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
switch ($key) {
|
|
199
|
+
case 'AllowEmpty':
|
|
200
|
+
case 'SMTPAutoTLS':
|
|
201
|
+
case 'SMTPKeepAlive':
|
|
202
|
+
case 'SingleTo':
|
|
203
|
+
case 'UseSendmailOptions':
|
|
204
|
+
case 'do_verp':
|
|
205
|
+
case 'DKIM_copyHeaderFields':
|
|
206
|
+
$mailer->$key = (bool) $value;
|
|
207
|
+
break;
|
|
208
|
+
case 'Priority':
|
|
209
|
+
case 'SMTPDebug':
|
|
210
|
+
case 'WordWrap':
|
|
211
|
+
$mailer->$key = (int) $value;
|
|
212
|
+
break;
|
|
213
|
+
default:
|
|
214
|
+
$mailer->$key = $value;
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Parse a URL.
|
|
222
|
+
* Wrapper for the built-in parse_url function to work around a bug in PHP 5.5.
|
|
223
|
+
*
|
|
224
|
+
* @param string $url URL
|
|
225
|
+
*
|
|
226
|
+
* @return array|false
|
|
227
|
+
*/
|
|
228
|
+
protected function parseUrl($url)
|
|
229
|
+
{
|
|
230
|
+
if (\PHP_VERSION_ID >= 50600 || false === strpos($url, '?')) {
|
|
231
|
+
return parse_url($url);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
$chunks = explode('?', $url);
|
|
235
|
+
if (is_array($chunks)) {
|
|
236
|
+
$result = parse_url($chunks[0]);
|
|
237
|
+
if (is_array($result)) {
|
|
238
|
+
$result['query'] = $chunks[1];
|
|
239
|
+
}
|
|
240
|
+
return $result;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
return false;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* PHPMailer Exception class.
|
|
5
|
+
* PHP Version 5.5.
|
|
6
|
+
*
|
|
7
|
+
* @see https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
|
|
8
|
+
*
|
|
9
|
+
* @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
|
|
10
|
+
* @author Jim Jagielski (jimjag) <jimjag@gmail.com>
|
|
11
|
+
* @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
|
|
12
|
+
* @author Brent R. Matzelle (original founder)
|
|
13
|
+
* @copyright 2012 - 2020 Marcus Bointon
|
|
14
|
+
* @copyright 2010 - 2012 Jim Jagielski
|
|
15
|
+
* @copyright 2004 - 2009 Andy Prevost
|
|
16
|
+
* @license https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html GNU Lesser General Public License
|
|
17
|
+
* @note This program is distributed in the hope that it will be useful - WITHOUT
|
|
18
|
+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
19
|
+
* FITNESS FOR A PARTICULAR PURPOSE.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
namespace PHPMailer\PHPMailer;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* PHPMailer exception handler.
|
|
26
|
+
*
|
|
27
|
+
* @author Marcus Bointon <phpmailer@synchromedia.co.uk>
|
|
28
|
+
*/
|
|
29
|
+
class Exception extends \Exception
|
|
30
|
+
{
|
|
31
|
+
/**
|
|
32
|
+
* Prettify error message output.
|
|
33
|
+
*
|
|
34
|
+
* @return string
|
|
35
|
+
*/
|
|
36
|
+
public function errorMessage()
|
|
37
|
+
{
|
|
38
|
+
return '<strong>' . htmlspecialchars($this->getMessage(), ENT_COMPAT | ENT_HTML401) . "</strong><br />\n";
|
|
39
|
+
}
|
|
40
|
+
}
|