- -
- - - - -- -
-
-
-
-
-
diff --git a/wp-content/plugins/wp-mail-smtp/assets/css/admin-bar.min.css b/wp-content/plugins/wp-mail-smtp/assets/css/admin-bar.min.css deleted file mode 100644 index 8dbf2af..0000000 --- a/wp-content/plugins/wp-mail-smtp/assets/css/admin-bar.min.css +++ /dev/null @@ -1 +0,0 @@ -#wpadminbar .wp-mail-smtp-admin-bar-menu-notification-counter,#wpadminbar .wp-mail-smtp-admin-bar-menu-error{display:inline-block !important;vertical-align:top !important;box-sizing:border-box !important;margin:7px 0 0 2px !important;padding:0 5px !important;min-width:18px !important;height:18px !important;border-radius:9px !important;background-color:#ca4a1f !important;color:#fff !important;font-size:11px !important;line-height:1.6 !important;text-align:center !important}#wpadminbar .wp-mail-smtp-admin-bar-menu-notification-counter span,#wpadminbar .wp-mail-smtp-admin-bar-menu-error span{line-height:1 !important;font-size:11px !important} diff --git a/wp-content/plugins/wp-mail-smtp/assets/css/admin-notifications.min.css b/wp-content/plugins/wp-mail-smtp/assets/css/admin-notifications.min.css deleted file mode 100644 index faf09fb..0000000 --- a/wp-content/plugins/wp-mail-smtp/assets/css/admin-notifications.min.css +++ /dev/null @@ -1 +0,0 @@ -#wp-mail-smtp-notifications{position:relative;background:#FFFFFF 0 0 no-repeat padding-box;box-shadow:0 5px 15px #0000000D;border-radius:6px;opacity:1;min-height:48px;padding:15px 102px 15px 72px;margin:0 0 14px 0}#wp-mail-smtp-notifications *{box-sizing:border-box}#wp-mail-smtp-notifications .bell{position:absolute;top:15px;left:15px;width:42px;height:48px}#wp-mail-smtp-notifications .messages .message{display:none}#wp-mail-smtp-notifications .messages .message.current{display:block}#wp-mail-smtp-notifications .messages .message .title{font-weight:bold;font-size:17px;line-height:20px;margin:0;color:#444}#wp-mail-smtp-notifications .messages .message .content{font-weight:normal;font-size:13px;line-height:20px;margin:6px 0 40px 0}#wp-mail-smtp-notifications .messages .message .buttons{margin:-30px 80px 0 0}#wp-mail-smtp-notifications .messages .message .buttons a{margin:0 6px 0 0;padding:8px 10px;line-height:13px;font-size:13px;min-height:unset}#wp-mail-smtp-notifications .messages .message .buttons .button-secondary{border:1px solid #0071A1}#wp-mail-smtp-notifications .dismiss{position:absolute;top:15px;right:15px;width:16px;height:16px;color:#72777C;font-size:16px;cursor:pointer;text-align:center;vertical-align:middle;line-height:16px}#wp-mail-smtp-notifications .dismiss:hover{color:#dc3232}#wp-mail-smtp-notifications .navigation{position:absolute;bottom:15px;right:15px;width:63px;height:30px}#wp-mail-smtp-notifications .navigation a{display:block;width:30px;height:30px;border:1px solid #7E8993;border-radius:3px;font-size:8px;text-align:center;vertical-align:middle;line-height:30px;cursor:pointer;background-color:#ffffff;color:#41454A}#wp-mail-smtp-notifications .navigation a:hover{background-color:#f1f1f1}#wp-mail-smtp-notifications .navigation a .dashicons{margin-top:8px;font-size:12px}#wp-mail-smtp-notifications .navigation .prev{float:left}#wp-mail-smtp-notifications .navigation .next{float:right}#wp-mail-smtp-notifications .navigation .disabled{border-color:#dddddd;color:#A0A5AA;cursor:default}#wp-mail-smtp-notifications .navigation .disabled:hover{background-color:#ffffff}@media screen and (max-width: 768px){#wp-mail-smtp-notifications{padding:15px 15px 15px 72px}#wp-mail-smtp-notifications .messages .message .title{margin:0 30px 0 0}#wp-mail-smtp-notifications .messages .message .content{font-size:16px;line-height:24px}#wp-mail-smtp-notifications .messages .message .buttons{margin:-30px 80px 0 0}#wp-mail-smtp-notifications .messages .message .buttons a{margin:0;display:table}#wp-mail-smtp-notifications .messages .message .buttons .button-secondary{margin-top:6px}} diff --git a/wp-content/plugins/wp-mail-smtp/assets/css/smtp-about.min.css b/wp-content/plugins/wp-mail-smtp/assets/css/smtp-about.min.css deleted file mode 100644 index b8936a1..0000000 --- a/wp-content/plugins/wp-mail-smtp/assets/css/smtp-about.min.css +++ /dev/null @@ -1 +0,0 @@ -.wp-mail-smtp-page-about{padding:0 !important}.wp-mail-smtp-page-about *,.wp-mail-smtp-page-about *::before,.wp-mail-smtp-page-about *::after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins{padding:0 10px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container{margin-left:-20px;margin-right:-20px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-container{padding:0 10px;float:left;width:33.333333%;margin-bottom:20px}@media (max-width: 1249px){.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-container{width:50%}}@media (max-width: 781px){.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-container{width:100%;margin-bottom:20px}}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container h5{font-size:17px;font-weight:700}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item{background-color:#fff;border:1px solid #ddd;border-radius:3px;margin:0}@media (max-width: 781px){.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item{margin:0 0}}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item img{border:1px solid #eee;float:left;max-width:75px;padding:10px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item img[src*="-mi"]{padding:13px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item h5{margin:0 0 10px 100px;font-size:16px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item p{margin:0 0 0 100px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .details{padding:20px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .actions{background-color:#f7f7f7;border-top:1px solid #ddd;padding:20px;position:relative}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .actions .msg{background-color:#f7f7f7;position:absolute;text-align:center;font-weight:600;top:0;left:0;height:100%;width:100%;z-index:99;padding:20px;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-align-items:center;-ms-align-items:center;align-items:center;justify-content:center}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .actions .msg.success{color:#2a9b39}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .actions .msg.error{color:red}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .status{float:left;padding-top:8px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .status .status-inactive{color:red}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .status .status-download{color:#666}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .status .status-active{color:#2a9b39}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button{float:right}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button{background:none;cursor:pointer;width:140px;text-align:center;display:inline-block;text-decoration:none;font-size:13px;line-height:26px;height:28px;margin:0;padding:0 10px 1px;-webkit-appearance:none;border-radius:3px;border:1px solid #cccccc;background:#f7f7f7;box-shadow:0 1px 0 #cccccc;font-weight:normal}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button:hover,.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button:focus,.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.loading{background:#fafafa;border-color:#999;color:#23282d}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button .fa{margin-right:8px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button .fa.fa-spinner{margin-right:0}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-primary{background:#0085ba;border-color:#0073aa #006799 #006799;box-shadow:0 1px 0 #006799;color:#fff;text-shadow:0 -1px 1px #006799, 1px 0 1px #006799, 0 1px 1px #006799, -1px 0 1px #006799}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-primary:hover,.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-primary:focus{background:#008ec2;border-color:#006799;color:#fff}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-primary .fa-spinner{color:#fff}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-secondary{color:#555;border-color:#cccccc;background:#f7f7f7;box-shadow:0 1px 0 #cccccc}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-secondary:hover,.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-secondary:focus{background:#fafafa;border-color:#999;color:#23282d}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.status-active .fa{color:#2a9b39}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.status-inactive .fa{color:red}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.status-download .fa{color:#999}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.loading .fa{color:#666}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.disabled{cursor:default}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section{margin:0 0 20px;padding:30px;background:#fff;border:1px solid #E5E6E6;line-height:2}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h1,.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h2,.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h3,.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h4,.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h5{margin-top:0;padding-top:0;line-height:1.6}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h2{font-size:24px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h3{font-size:18px;margin-bottom:30px;color:#23282C}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section ul,.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section p{font-size:16px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section p{margin-bottom:20px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section p.bigger{font-size:18px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section p.smaller{font-size:14px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section p:last-child{margin-bottom:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section hr{margin:30px 0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section figure{margin:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section figure img{width:100%}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section figure figcaption{font-size:14px;color:#888888;margin-top:5px;text-align:center;line-height:initial}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .wp-mail-smtp-admin-column-40{padding-left:15px}@media (max-width: 781px){.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .wp-mail-smtp-admin-column-40{width:100%;padding-left:0;padding-top:20px}}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .wp-mail-smtp-admin-column-60{padding-right:15px}@media (max-width: 781px){.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .wp-mail-smtp-admin-column-60{width:100%;padding-right:0}}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section ul.list-plain{margin-top:0;margin-bottom:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section ul.list-plain li{margin-bottom:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section ul.list-features li .fa{color:#2a9b39;margin:0 8px 0 0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .fa-star{color:gold}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .no-margin{margin:0 !important}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .no-padding{padding:0 !important}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .centered{text-align:center !important}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero{padding:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-main,.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-extra{padding:30px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-extra table{width:100%}@media (max-width: 781px){.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-extra .wp-mail-smtp-admin-column-50{float:none;width:100%}}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-main{background-color:#FAFAFA;border-bottom:1px solid #E5E6E6}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-main.no-border{border-bottom:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-main p{color:#666}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero h3.call-to-action{margin-bottom:-10px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero span.price-off{color:#6AB255}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-squashed{margin-bottom:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-squashed:not(:last-of-type){border-bottom:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post h2{margin-bottom:-10px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post h3{margin-bottom:15px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post p:last-of-type{margin-bottom:30px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-column-20{padding-right:20px;width:auto}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-column-20 img{width:270px}@media (max-width: 781px){.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-column-20{width:20%}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-column-20 img{width:auto;max-width:100%}}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-column-80{padding-left:20px;width:calc(100% - 20px - 270px)}@media (max-width: 781px){.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-column-80{width:80%}}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-about-section-post-link{padding:10px 15px;background-color:#DF7739;color:#fff;border-radius:3px;text-decoration:none;margin-top:15px;font-size:14px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-about-section-post-link:hover{background-color:#B85A1B}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-about-section-post-link .fa{color:#EDBA9E;vertical-align:middle;margin-left:8px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table{border-collapse:collapse}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table tr td{border-bottom:1px solid #E5E6E6;border-right:1px solid #E5E6E6;padding:30px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table tr td:last-of-type{border-right:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table tr:last-child td{border-bottom:none}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table p{background-repeat:no-repeat;background-size:15px auto;background-position:0 6px;margin:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table p.features-full{padding-left:30px;background-image:url(../images/about/icon-full.svg)}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table p.features-none{padding-left:30px;background-image:url(../images/about/icon-none.svg)}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table p.features-partial{padding-left:30px;background-position:-3px 0;background-size:23px auto;background-image:url(../images/about/icon-partial.svg)}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table .wp-mail-smtp-admin-about-section-hero-main{padding:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table .wp-mail-smtp-admin-about-section-hero-main h3{padding:30px 30px 30px 60px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table .wp-mail-smtp-admin-about-section-hero-main .wp-mail-smtp-admin-column-33:first-child h3{padding:30px} diff --git a/wp-content/plugins/wp-mail-smtp/assets/css/smtp-admin.min.css b/wp-content/plugins/wp-mail-smtp/assets/css/smtp-admin.min.css deleted file mode 100644 index d42e207..0000000 --- a/wp-content/plugins/wp-mail-smtp/assets/css/smtp-admin.min.css +++ /dev/null @@ -1 +0,0 @@ -#wpcontent{padding-left:0 !important;position:relative}@media (max-width: 600px){#wpcontent{padding-top:46px}}@media (max-width: 600px){#wpbody{padding-top:0}}@-webkit-keyframes wp-mail-smtp-fade-in-stop-out{0%,100%{opacity:0}35%{opacity:1}65%{opacity:1}}@keyframes wp-mail-smtp-fade-in-stop-out{0%,100%{opacity:0}35%{opacity:1}65%{opacity:1}}body.toplevel_page_wp-mail-smtp div.jconfirm *,body.toplevel_page_wp-mail-smtp div.jconfirm *::before,body.toplevel_page_wp-mail-smtp div.jconfirm *::after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box-container div.jconfirm-box{border-radius:0;box-shadow:0 2px 6px rgba(0,0,0,0.2)}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box-container div.jconfirm-box div.jconfirm-closeIcon{color:rgba(0,0,0,0.4);top:8px;right:8px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box-container div.jconfirm-box div.jconfirm-closeIcon:hover{color:rgba(0,0,0,0.8)}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-title-c{margin:0 0 26px 0 !important;padding:0 !important}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-title-c .jconfirm-icon-c{margin:0 !important;color:#c4c4c4 !important;-webkit-transition:none !important;transition:none !important;-webkit-transform:none !important;-ms-transform:none !important;transform:none !important;font-size:45px !important}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-title-c .jconfirm-icon-c i:empty{display:none}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-title-c .jconfirm-icon-c svg{height:35px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-title-c .jconfirm-title{display:block;color:#444}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-title-c .jconfirm-icon-c+span.jconfirm-title{margin-top:20px !important}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content-pane{margin-bottom:0;display:block}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content-pane .jconfirm-content{overflow:inherit}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content{font-size:16px;color:#777;line-height:1.4}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content.lite-upgrade p{font-size:18px;padding:0 20px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content p{margin:0 0 20px;font-size:16px;line-height:1.5}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content p:last-of-type{margin:0}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content p.large{font-size:18px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content p.small{font-size:14px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .already-purchased{font-size:12px;color:#ccc;text-decoration:none}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .already-purchased:hover{text-decoration:underline}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-btn{font-weight:bold;text-transform:uppercase;-webkit-transition:background .1s;transition:background .1s;padding:10px 20px;outline:none;display:inline-block;font-size:14px;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:4px;min-height:1em;-webkit-tap-highlight-color:transparent;border:0;background-image:none}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-btn.with-loader{padding:12px 12px 7px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-providers-amazonses-txt-record{display:flex;justify-content:space-evenly;align-items:center}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-providers-amazonses-txt-record-label{color:#444}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-providers-amazonses-txt-record input[type="text"]{display:inline-block;width:340px;color:#777;background-color:#f8f8f8;border:1px solid #ddd;border-radius:3px;margin:0;padding:10px 0 10px 12px;font-size:16px;line-height:18px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-providers-amazonses-txt-record input[type="text"][readonly]{background-color:#f9f9f9}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-providers-amazonses-txt-record input[type="text"]:focus{border-color:#bbb}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-providers-amazonses-txt-record input[type="text"]:disabled{opacity:0.6}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-providers-amazonses-txt-record button{padding:9px 11px;background-color:#fff;border:1px solid #ddd;border-radius:3px;cursor:pointer;outline:none}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-providers-amazonses-txt-record button:hover{background-color:#ddd}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-providers-amazonses-txt-record button:active{background-color:#aaa;border-color:#aaa}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-providers-amazonses-txt-record .dashicons-yes-alt{color:#46b450}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-buttons .already-purchased{display:block;font-size:12px;color:#aaa;text-decoration:none;padding-top:20px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-buttons .already-purchased:hover{color:#999;text-decoration:underline}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-buttons .btn-hide{display:none}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .discount-note{text-align:center;margin:30px 0 0}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .discount-note p{background-color:#faffac;margin:0 -30px;padding:24px 60px 20px;font-size:15px;color:#4d4d4d;position:relative}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .discount-note p:after{content:url(../images/font-awesome/check-circle-solid-green.svg);width:40px;height:40px;background-color:#fff;border-radius:50%;padding:5px 6px;position:absolute;top:-20px;right:50%;margin-right:-18px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .discount-note span{font-weight:700;color:#3abc01}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .discount-note a{color:#aaa;display:block;margin-top:12px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box input[type=text]{display:block;width:99%;border:1px solid #d6d6d6;padding:10px;box-shadow:none;margin:20px auto 0 auto}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button.btn-confirm{background-color:#FF982D;color:#fff;outline:none}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button.btn-confirm:hover{background-color:#f97f00;border-color:#f97f00}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button,body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button.btn-default{color:#666}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button.wp-mail-smtp-btn-orange{color:#fff}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button.btn-block{display:block;text-align:center;width:100%;margin:0 0 10px 0 !important}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button.btn-normal-case{text-transform:none !important}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .error{display:none;color:red}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .wpforms-error{border:1px solid #ebccd1 !important}@media screen and (max-width: 1023px){#wp-mail-smtp-notice-bar{display:none !important}}#wp-mail-smtp-notice-bar{max-height:35px;position:relative;margin-bottom:-3px;transition:all .3s ease-out;overflow:hidden}#wp-mail-smtp-notice-bar.out{max-height:3px}#wp-mail-smtp-notice-bar .wp-mail-smtp-notice-bar-container{background-color:#DDDDDD;border-top:3px solid #FF982D;color:#777777;text-align:center;padding:7px}#wp-mail-smtp-notice-bar a{color:#FF982D}#wp-mail-smtp-notice-bar a:hover{color:#f97f00}#wp-mail-smtp-notice-bar .dismiss{position:absolute;top:0;right:0;border:none;padding:5px;margin-top:4px;background:0 0;color:#72777c;cursor:pointer}#wp-mail-smtp-notice-bar .dismiss:before{background:0 0;color:#72777c;content:"\f335";display:block;font:normal 20px/20px dashicons;speak:none;height:20px;text-align:center;width:20px;-webkit-font-smoothing:antialiased}#screen-meta-links .screen-meta-toggle{position:absolute;right:20px;top:auto}#screen-meta-links,#screen-meta{display:none}#wp-mail-smtp-header-temp{position:absolute;margin:0;top:-1px;left:20px;right:20px;z-index:99}#wp-mail-smtp-header{border-top:3px solid #FF982D;padding:20px}#wp-mail-smtp-header img{display:block;margin:0;max-width:242px}@media (max-width: 782px){#wp-mail-smtp-header img{max-width:200px}}#wp-mail-smtp{margin:0}#wp-mail-smtp .wp-mail-smtp-hide{display:none}#wp-mail-smtp .wp-mail-smtp-page-title{height:58px;background-color:#fff;font-size:14px;margin:0 0 20px 0;padding:0 20px}#wp-mail-smtp .wp-mail-smtp-page-title a.tab{border-bottom:2px solid #fff;box-shadow:none;color:#666;display:inline-block;margin-right:30px;padding:20px 0 18px 0;text-decoration:none}#wp-mail-smtp .wp-mail-smtp-page-title a.tab.active{border-bottom:2px solid #FF982D}#wp-mail-smtp .wp-mail-smtp-page-title a.tab:hover{border-color:#999}#wp-mail-smtp .wp-mail-smtp-page-title a.action{padding:5px;border:0;min-height:auto;color:#fff;margin:-10px 0 0 20px}#wp-mail-smtp .wp-mail-smtp-page-title .page-title{background-color:#fff;display:inline-block;font-size:23px;margin:0;padding:20px 20px 20px 0}#wp-mail-smtp .wp-mail-smtp-page-content{padding:0 20px}#wp-mail-smtp .wp-mail-smtp-page-content *,#wp-mail-smtp .wp-mail-smtp-page-content *::before,#wp-mail-smtp .wp-mail-smtp-page-content *::after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-clear:before{content:" ";display:table}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-clear:after{clear:both;content:" ";display:table}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row{border-bottom:1px solid #e4e4e4;padding:30px 0;font-size:14px;line-height:1.3}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row:first-of-type{padding-top:10px !important}@media (max-width: 781px){#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row{padding:20px 0}}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.inactive{display:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row .wp-mail-smtp-setting-mid-row-sep{background:#e4e4e4;height:1px;border:0;margin:15px 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.section-heading{padding:20px 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.section-heading.no-desc h2,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.section-heading.no-desc h4{margin:0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.section-heading .wp-mail-smtp-setting-field{margin:0;max-width:1005px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox input[type=checkbox]{float:left;margin:1px 0 0 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox input[type=checkbox]+label{margin:0 0 0 8px;vertical-align:baseline}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox .desc{margin:0 0 0 30px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox input[type=checkbox]+label+.desc{margin:8px 0 0 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-text .wp-mail-smtp-setting-label,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-password .wp-mail-smtp-setting-label,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-number .wp-mail-smtp-setting-label,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-email .wp-mail-smtp-setting-label{padding-top:8px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-select .wp-mail-smtp-setting-label{padding-top:8px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-radio .wp-mail-smtp-setting-field input[type=radio]{margin:-3px 10px 0 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-radio .wp-mail-smtp-setting-field label{margin-right:30px;display:inline-block}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field label{vertical-align:middle;display:inline-block}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]{position:absolute;top:auto;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;white-space:nowrap}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:checked+.wp-mail-smtp-setting-toggle-switch{background-color:#46B450}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:checked+.wp-mail-smtp-setting-toggle-switch:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:disabled:checked:hover+.wp-mail-smtp-setting-toggle-switch,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:disabled:not(:checked):hover+.wp-mail-smtp-setting-toggle-switch{box-shadow:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:disabled:not(:checked):hover+.wp-mail-smtp-setting-toggle-switch{background-color:#ddd}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:disabled+.wp-mail-smtp-setting-toggle-switch{background-color:#ddd;cursor:default}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:disabled:checked+.wp-mail-smtp-setting-toggle-switch{background-color:#a0daa5;cursor:default}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:checked+.wp-mail-smtp-setting-toggle-switch+.wp-mail-smtp-setting-toggle-checked-label{display:inline-block}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:checked+.wp-mail-smtp-setting-toggle-switch+.wp-mail-smtp-setting-toggle-checked-label+.wp-mail-smtp-setting-toggle-unchecked-label{display:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:disabled+.wp-mail-smtp-setting-toggle-switch+.wp-mail-smtp-setting-toggle-checked-label,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:disabled+.wp-mail-smtp-setting-toggle-switch+.wp-mail-smtp-setting-toggle-unchecked-label{color:#aaaaaa}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:checked:hover+.wp-mail-smtp-setting-toggle-switch,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:checked:focus+.wp-mail-smtp-setting-toggle-switch{box-shadow:0 0 0 1px #fff, 0 0 0 3px #46B450}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:not(:checked):hover+.wp-mail-smtp-setting-toggle-switch,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:not(:checked):focus+.wp-mail-smtp-setting-toggle-switch{background-color:#999;box-shadow:0 0 0 1px #fff, 0 0 0 3px #999}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field .wp-mail-smtp-setting-toggle-unchecked-label,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field .wp-mail-smtp-setting-toggle-checked-label{text-transform:uppercase;font-weight:400;color:#777;font-size:13px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field .wp-mail-smtp-setting-toggle-checked-label{display:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field .wp-mail-smtp-setting-toggle-switch{position:relative;cursor:pointer;background-color:#ccc;border-radius:15px;-webkit-transition:all 0.2s ease-in-out;-moz-transition:all 0.2s ease-in-out;-ms-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out;vertical-align:middle;display:inline-block;margin:0 5px 0 0;width:36px;height:20px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field .wp-mail-smtp-setting-toggle-switch:before{position:absolute;content:"";height:16px;width:16px;left:2px;top:2px;background-color:#fff;border-radius:50%;-webkit-transition:all 0.2s ease-in-out;-moz-transition:all 0.2s ease-in-out;-ms-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer{padding-bottom:20px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer{display:inline-block;width:140px;margin-right:12px;margin-bottom:12px;position:relative}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer .wp-mail-smtp-mailer-image{background:#fff;text-align:center;border:2px solid #E5E5E5;border-radius:4px;cursor:pointer;height:76px;position:relative;margin-bottom:10px;-webkit-transition:all 0.2s ease-in-out;-moz-transition:all 0.2s ease-in-out;-ms-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer .wp-mail-smtp-mailer-image.is-recommended{background-image:url(../images/recommended.svg);background-repeat:no-repeat;background-size:60%;background-position:top right -2px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer .wp-mail-smtp-mailer-image img{max-width:90%;max-height:40px;display:block;position:relative;top:50%;left:50%;transform:translate(-50%, -50%);opacity:0.6;-webkit-transition:all 0.2s ease-in-out;-moz-transition:all 0.2s ease-in-out;-ms-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer.wp-mail-smtp-mailer-smtp .wp-mail-smtp-mailer-image img{max-height:30px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer.active .wp-mail-smtp-mailer-image{border-color:#FF982D}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer.active .wp-mail-smtp-mailer-image img{opacity:1}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer:hover .wp-mail-smtp-mailer-image{border-color:#ccc}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer:hover .wp-mail-smtp-mailer-image img{opacity:1}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row h2,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row h4{color:#444;font-size:20px;font-weight:700;margin:0 0 6px 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row h2{margin-bottom:15px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row h3{color:#444;font-size:24px;font-weight:600;margin:0 0 20px 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p{margin:12px 0 0;font-size:14px;line-height:1.5em}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p:first-of-type{margin:8px 0 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.desc{font-style:italic;color:#777}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.buttonned{margin-top:30px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.inline-notice{margin:5px 0 15px;box-sizing:border-box;background:#fff;border-left:4px solid transparent;box-shadow:0 1px 1px 0 rgba(0,0,0,0.1)}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.inline-notice.inline-error{border-color:#dc3232;margin-bottom:5px;padding:10px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.inline-notice.inline-edu-notice{border-color:#809EB0;line-height:1.5em;padding:10px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.inline-notice a.wp-mail-smtp-mailer-notice-dismiss{float:right;color:#999DA1;margin:0 0 10px 10px;text-decoration:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.inline-notice a.wp-mail-smtp-mailer-notice-dismiss:hover{color:#666a6e}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row ul{margin:8px 0 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row ul.list li{margin-left:20px;list-style-type:disc}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list th{padding:5px 5px 5px 0;text-align:left}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.email{padding-right:2em}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.status{width:100px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a{border-bottom:1px solid;display:inline-block;margin-right:5px;text-decoration:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a[class*=delete],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a[class*=error]{color:#a00}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a[class*=delete]:hover,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a[class*=delete]:active,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a[class*=delete]:focus,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a[class*=error]:hover,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a[class*=error]:active,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a[class*=error]:focus{color:#440000}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=text],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=email],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=number],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=password],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row select{background-color:#fff;border:1px solid #ddd;border-radius:4px;box-shadow:none;color:#333;display:inline-block;vertical-align:middle;padding:7px 12px;margin:0 10px 0 0;width:400px;min-height:35px;line-height:1.3}@media (max-width: 959px){#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=text],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=email],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=number],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=password],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row select{width:300px}}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=text][readonly],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=email][readonly],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=number][readonly],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=password][readonly],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row select[readonly]{background-color:#f9f9f9}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=text].small-text,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=email].small-text,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=number].small-text,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=password].small-text,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row select.small-text{width:75px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=text]:focus,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=email]:focus,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=number]:focus,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=password]:focus,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row select:focus{border:1px solid #016AAB;box-shadow:0 0 0 1px #016AAB;outline:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=text]:disabled,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=email]:disabled,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=number]:disabled,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=password]:disabled,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row select:disabled{opacity:0.6}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=checkbox]:focus,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=radio]:focus{border:1px solid #016AAB;box-shadow:0 0 0 1px #016AAB;outline:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row .dashicons-yes-alt.wp-mail-smtp-animate{-webkit-animation:wp-mail-smtp-fade-in-stop-out 1s linear;animation:wp-mail-smtp-fade-in-stop-out 1s linear}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row .dashicons-yes-alt.wp-mail-smtp-success{color:#46b450}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-label{display:block;float:left;width:205px;padding:0 20px 0 0}@media (max-width: 781px){#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-label{float:none;width:100%;padding-bottom:15px}}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-label label{display:block;font-weight:600}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-field{display:block;margin:0 0 0 205px;max-width:800px}@media (max-width: 781px){#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-field{margin:0}}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-submit{margin:0;padding:25px 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-submit .help-text{margin-left:10px;vertical-align:middle}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-mailer-options .wp-mail-smtp-mailer-option .wp-mail-smtp-setting-row.section-heading{padding:20px 0 !important}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-mailer-options .wp-mail-smtp-mailer-option blockquote{background:#E5E5E5;border-radius:4px;color:#666;font-size:14px;margin:20px 0;padding:15px;width:1005px}#wp-mail-smtp .wp-mail-smtp-page-content.wp-mail-smtp-page-general p{margin:0}#wp-mail-smtp .wp-mail-smtp-page-content .notice-inline{background:#fff;border-left:4px solid #fff;box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);margin:5px 0 15px;padding:1px 12px}#wp-mail-smtp .wp-mail-smtp-page-content .notice-inline.notice-success{border-left-color:#46b450}#wp-mail-smtp .wp-mail-smtp-page-content .notice-inline.notice-warning{border-left-color:#ffb900}#wp-mail-smtp .wp-mail-smtp-page-content .notice-inline.notice-error{border-left-color:#dc3232}#wp-mail-smtp .wp-mail-smtp-page-content .notice-inline.notice-info{border-left-color:#00a0d2}#wp-mail-smtp .wp-mail-smtp-page-content .notice p,#wp-mail-smtp .wp-mail-smtp-page-content .notice-inline p{margin:0.5em 0;padding:2px}#wp-mail-smtp .wp-mail-smtp-page-content pre{white-space:pre-line}#wp-mail-smtp .wp-mail-smtp-page-content.active{display:block}#wp-mail-smtp .wp-mail-smtp-page-content .connected-as{margin-left:30px}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug{background-color:#fff;padding:25px 20px 1px 25px}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug h2{color:#444;margin:1.4em 0 0.8em;font-size:16px;font-weight:700}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug p{font-size:14px;color:#555;margin-bottom:1.1em}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ul,#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ol{font-size:14px;color:#555;margin:0 0 1.1em 1.8em}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ul li,#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ol li{margin:0 0 8px 0;line-height:1.5}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ul li:last-of-type,#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ol li:last-of-type{margin:0}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ul li ul,#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ol li ul{list-style-type:disc}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug a{color:#FF982D}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug a:hover{color:#f97f00}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .dashicons-star-filled{color:#FF982D;width:16px;height:16px;font-size:16px;vertical-align:text-top}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .price-off{color:green;font-weight:bold}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .error-log-toggle{text-decoration:none;color:#444}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .error-log-toggle:hover{color:#FF982D}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .error-log-toggle .dashicons{font-size:15px;height:15px;width:15px;padding-top:3px;border:0;outline:0}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .error-log{border-left:3px solid #ffb900;padding:0 0 0 20px;margin:0 0 10px 0;font-size:12px;display:none}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .error-log pre{margin:0}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .error-log-note{display:none}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner{background-color:#fff;padding:25px 20px;border:1px solid #dadada;margin:10px 0 0 0;position:relative}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .wp-mail-smtp-pro-banner-dismiss{position:absolute;right:10px;top:10px}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .wp-mail-smtp-pro-banner-dismiss button{background:none;border:none;color:#A9A9A9;cursor:pointer;margin:0;padding:0}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner h2{color:#444;margin-top:0;font-size:16px;font-weight:700}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner p{font-size:14px;color:#555;margin-bottom:1.1em}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner p:last-of-type{margin:0}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .benefits{margin:0 0 16px 0;overflow:auto;max-width:1000px}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .benefits ul{margin:0;padding:0;width:50%;float:left}@media (max-width: 600px){#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .benefits ul{width:100%;float:none}}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .benefits ul li{margin:0;padding:0 0 2px 16px;color:#555;font-size:14px;position:relative}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .benefits ul li:before{content:'+';position:absolute;top:-1px;left:0}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .benefits ul li.arrow-right:before{content:'→'}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner a{color:#FF982D}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner a:hover,#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner a:active,#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner a:focus{color:#f97f00}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .stars{text-decoration:none}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .stars .dashicons{width:16px;height:16px;font-size:16px;vertical-align:text-top}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .price-off{color:green;font-weight:bold}#wp-mail-smtp .wp-mail-smtp-admin-columns>div[class*="-column-"]{float:left}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-20{width:20%}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-33{width:33.33333%}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-40{width:40%}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-50{width:50%}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-60{width:60%}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-80{width:80%}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-last{float:right !important}#wp-mail-smtp .wp-mail-smtp-admin-columns:after{content:"";display:table;clear:both}#wp-mail-smtp .wp-mail-smtp-page-upsell{display:flex;align-items:center;justify-content:center;height:auto;flex-direction:column}#wp-mail-smtp .wp-mail-smtp-page-upsell>*{width:800px}#wp-mail-smtp .wp-mail-smtp-page-upsell *,#wp-mail-smtp .wp-mail-smtp-page-upsell *::before,#wp-mail-smtp .wp-mail-smtp-page-upsell *::after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#wp-mail-smtp .wp-mail-smtp-page-upsell h2{font-size:24px;color:#444444;text-align:center}#wp-mail-smtp .wp-mail-smtp-page-upsell h3{font-size:16px;font-weight:normal;color:#72777C;line-height:1.5em;margin-top:0;margin-bottom:6px;text-align:center}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features{margin-bottom:40px;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:stretch;align-content:flex-start}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature{display:flex;flex-direction:row;width:360px;align-items:flex-start;align-content:flex-start;margin-right:60px;margin-top:40px}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature:nth-of-type(1){margin-top:20px}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature:nth-of-type(2){margin-top:20px}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature:nth-of-type(even){margin-right:0}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-image{display:flex;align-items:center}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-image svg{height:64px;width:64px}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-image .st0{fill:#C3D0D7}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-image .st1{fill:#809DB0}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-content{margin-left:20px}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-content h4{font-size:15px;margin:0 0 0.5em}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-content p{color:#72777C;margin:0}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-images{margin-top:20px;margin-bottom:30px;text-align:center}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-images img{width:380px;height:auto;margin-right:30px;border:5px solid #fff;border-radius:5px;box-shadow:0 5px 15px rgba(0,0,0,0.1);float:left}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-images img:last-child{margin-right:0}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-button{text-align:center}#wp-mail-smtp .wp-mail-smtp-page-nw-product-edu h2{display:inline-block;vertical-align:middle}#wp-mail-smtp .wp-mail-smtp-page-nw-product-edu .badge{margin:0 0 2px 7px;vertical-align:middle;width:40px;height:17px}#wp-mail-smtp .wp-mail-smtp-page-nw-product-edu .wp-mail-smtp-setting-row-multisite{color:#9a9a9a}#wp-mail-smtp .wp-mail-smtp-page-nw-product-edu .wp-mail-smtp-setting-row-multisite p.desc{color:#bababa}#wp-mail-smtp .wp-mail-smtp-page-nw-product-edu .wp-mail-smtp-setting-row-multisite input[type=checkbox]:disabled{border-color:#aaa}#wp-mail-smtp .wp-mail-smtp-page-nw-product-edu .wp-mail-smtp-setting-row-no-setting{margin-top:30px}.wp-mail-smtp-btn{border:0;border-radius:3px;cursor:pointer;display:inline-block;margin:0;text-decoration:none;text-align:center;vertical-align:middle;white-space:nowrap;text-shadow:none;box-shadow:none;outline:none}.wp-mail-smtp-btn .dashicons{font-size:16px;width:16px;height:16px}.wp-mail-smtp-btn:disabled{opacity:0.5;cursor:not-allowed}.wp-mail-smtp-btn.wp-mail-smtp-btn-md{font-size:13px;font-weight:600;padding:8px 12px;min-height:35px}.wp-mail-smtp-btn.wp-mail-smtp-btn-lg{font-size:16px;font-weight:600;padding:16px 28px}.wp-mail-smtp-btn.wp-mail-smtp-btn-orange{background-color:#FF982D;border-color:#FF982D;color:#fff}.wp-mail-smtp-btn.wp-mail-smtp-btn-orange:hover,.wp-mail-smtp-btn.wp-mail-smtp-btn-orange:active,.wp-mail-smtp-btn.wp-mail-smtp-btn-orange:focus{background-color:#f97f00;border-color:#f97f00}.wp-mail-smtp-btn.wp-mail-smtp-btn-orange:focus{box-shadow:0 0 0 1px #fff, 0 0 0 3px #f97f00}.wp-mail-smtp-btn.wp-mail-smtp-btn-red{background-color:#DC3232;border-color:#DC3232;color:#fff}.wp-mail-smtp-btn.wp-mail-smtp-btn-red:hover,.wp-mail-smtp-btn.wp-mail-smtp-btn-red:active,.wp-mail-smtp-btn.wp-mail-smtp-btn-red:focus{background-color:darkred;border-color:darkred}.wp-mail-smtp-btn.wp-mail-smtp-btn-red:focus{box-shadow:0 0 0 1px #fff, 0 0 0 3px darkred}.wp-mail-smtp-btn.wp-mail-smtp-btn-grey{background-color:#f5f5f5;border:1px solid #ccc;color:#666}.wp-mail-smtp-btn.wp-mail-smtp-btn-grey:hover,.wp-mail-smtp-btn.wp-mail-smtp-btn-grey:active,.wp-mail-smtp-btn.wp-mail-smtp-btn-grey:focus{background-color:#d7d7d7;border-color:#ccc;color:#444}.wp-mail-smtp-btn.wp-mail-smtp-btn-light-grey{background-color:#f5f5f5;border:1px solid #ccc;color:#666}.wp-mail-smtp-btn.wp-mail-smtp-btn-light-grey:hover,.wp-mail-smtp-btn.wp-mail-smtp-btn-light-grey:active,.wp-mail-smtp-btn.wp-mail-smtp-btn-light-grey:focus{background-color:#eee;color:#444}.wp-mail-smtp-btn.wp-mail-smtp-btn-blueish{background-color:#738e9e;border:1px solid #738e9e;color:#fff}.wp-mail-smtp-btn.wp-mail-smtp-btn-blueish:hover,.wp-mail-smtp-btn.wp-mail-smtp-btn-blueish:active,.wp-mail-smtp-btn.wp-mail-smtp-btn-blueish:focus{background-color:#395360;border-color:#395360;color:#fff}.wp-mail-smtp-btn.wp-mail-smtp-btn-blueish:focus{box-shadow:0 0 0 1px #fff, 0 0 0 3px #395360} diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/about/icon-full.svg b/wp-content/plugins/wp-mail-smtp/assets/images/about/icon-full.svg deleted file mode 100644 index 1ced70e..0000000 --- a/wp-content/plugins/wp-mail-smtp/assets/images/about/icon-full.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/about/icon-none.svg b/wp-content/plugins/wp-mail-smtp/assets/images/about/icon-none.svg deleted file mode 100644 index 9f06b39..0000000 --- a/wp-content/plugins/wp-mail-smtp/assets/images/about/icon-none.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/about/icon-partial.svg b/wp-content/plugins/wp-mail-smtp/assets/images/about/icon-partial.svg deleted file mode 100644 index 66de81d..0000000 --- a/wp-content/plugins/wp-mail-smtp/assets/images/about/icon-partial.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/about/plugin-mi.png b/wp-content/plugins/wp-mail-smtp/assets/images/about/plugin-mi.png deleted file mode 100644 index b9e4bed..0000000 Binary files a/wp-content/plugins/wp-mail-smtp/assets/images/about/plugin-mi.png and /dev/null differ diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/about/plugin-om.png b/wp-content/plugins/wp-mail-smtp/assets/images/about/plugin-om.png deleted file mode 100644 index 4c1232e..0000000 Binary files a/wp-content/plugins/wp-mail-smtp/assets/images/about/plugin-om.png and /dev/null differ diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/about/plugin-rp.png b/wp-content/plugins/wp-mail-smtp/assets/images/about/plugin-rp.png deleted file mode 100644 index 2c85a21..0000000 Binary files a/wp-content/plugins/wp-mail-smtp/assets/images/about/plugin-rp.png and /dev/null differ diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/about/plugin-wpf.png b/wp-content/plugins/wp-mail-smtp/assets/images/about/plugin-wpf.png deleted file mode 100644 index b1a3d12..0000000 Binary files a/wp-content/plugins/wp-mail-smtp/assets/images/about/plugin-wpf.png and /dev/null differ diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/about/team.jpg b/wp-content/plugins/wp-mail-smtp/assets/images/about/team.jpg deleted file mode 100644 index fae1b31..0000000 Binary files a/wp-content/plugins/wp-mail-smtp/assets/images/about/team.jpg and /dev/null differ diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/email/icon-check.png b/wp-content/plugins/wp-mail-smtp/assets/images/email/icon-check.png deleted file mode 100644 index aeeec4c..0000000 Binary files a/wp-content/plugins/wp-mail-smtp/assets/images/email/icon-check.png and /dev/null differ diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/email/signature.png b/wp-content/plugins/wp-mail-smtp/assets/images/email/signature.png deleted file mode 100644 index 2cc8db0..0000000 Binary files a/wp-content/plugins/wp-mail-smtp/assets/images/email/signature.png and /dev/null differ diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/email/wp-mail-smtp-whitelabel.png b/wp-content/plugins/wp-mail-smtp/assets/images/email/wp-mail-smtp-whitelabel.png deleted file mode 100644 index 88f48b0..0000000 Binary files a/wp-content/plugins/wp-mail-smtp/assets/images/email/wp-mail-smtp-whitelabel.png and /dev/null differ diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/email/wp-mail-smtp.png b/wp-content/plugins/wp-mail-smtp/assets/images/email/wp-mail-smtp.png deleted file mode 100644 index 9c42a35..0000000 Binary files a/wp-content/plugins/wp-mail-smtp/assets/images/email/wp-mail-smtp.png and /dev/null differ diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/font-awesome/check-circle-solid-green.svg b/wp-content/plugins/wp-mail-smtp/assets/images/font-awesome/check-circle-solid-green.svg deleted file mode 100644 index 765cc8d..0000000 --- a/wp-content/plugins/wp-mail-smtp/assets/images/font-awesome/check-circle-solid-green.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/font-awesome/exclamation-circle-regular-red.svg b/wp-content/plugins/wp-mail-smtp/assets/images/font-awesome/exclamation-circle-regular-red.svg deleted file mode 100644 index f063fb5..0000000 --- a/wp-content/plugins/wp-mail-smtp/assets/images/font-awesome/exclamation-circle-regular-red.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/font-awesome/exclamation-circle-solid-orange.svg b/wp-content/plugins/wp-mail-smtp/assets/images/font-awesome/exclamation-circle-solid-orange.svg deleted file mode 100644 index 95d713a..0000000 --- a/wp-content/plugins/wp-mail-smtp/assets/images/font-awesome/exclamation-circle-solid-orange.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/font-awesome/exclamation-circle-solid-red.svg b/wp-content/plugins/wp-mail-smtp/assets/images/font-awesome/exclamation-circle-solid-red.svg deleted file mode 100644 index 70e91bc..0000000 --- a/wp-content/plugins/wp-mail-smtp/assets/images/font-awesome/exclamation-circle-solid-red.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/loaders/loading-blue.svg b/wp-content/plugins/wp-mail-smtp/assets/images/loaders/loading-blue.svg deleted file mode 100644 index 5519045..0000000 --- a/wp-content/plugins/wp-mail-smtp/assets/images/loaders/loading-blue.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/loaders/loading-white.svg b/wp-content/plugins/wp-mail-smtp/assets/images/loaders/loading-white.svg deleted file mode 100644 index ae6fe14..0000000 --- a/wp-content/plugins/wp-mail-smtp/assets/images/loaders/loading-white.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/loaders/loading.svg b/wp-content/plugins/wp-mail-smtp/assets/images/loaders/loading.svg deleted file mode 100644 index 0be46bd..0000000 --- a/wp-content/plugins/wp-mail-smtp/assets/images/loaders/loading.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/logo-whitelabel.svg b/wp-content/plugins/wp-mail-smtp/assets/images/logo-whitelabel.svg deleted file mode 100644 index 8cbda20..0000000 --- a/wp-content/plugins/wp-mail-smtp/assets/images/logo-whitelabel.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/logo.svg b/wp-content/plugins/wp-mail-smtp/assets/images/logo.svg deleted file mode 100644 index 8ac5386..0000000 --- a/wp-content/plugins/wp-mail-smtp/assets/images/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/logs/archive.png b/wp-content/plugins/wp-mail-smtp/assets/images/logs/archive.png deleted file mode 100644 index 97a9772..0000000 Binary files a/wp-content/plugins/wp-mail-smtp/assets/images/logs/archive.png and /dev/null differ diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/logs/single.png b/wp-content/plugins/wp-mail-smtp/assets/images/logs/single.png deleted file mode 100644 index b14cfbe..0000000 Binary files a/wp-content/plugins/wp-mail-smtp/assets/images/logs/single.png and /dev/null differ diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/menu-icon.svg b/wp-content/plugins/wp-mail-smtp/assets/images/menu-icon.svg deleted file mode 100644 index b0ddb05..0000000 --- a/wp-content/plugins/wp-mail-smtp/assets/images/menu-icon.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/pro-badge.svg b/wp-content/plugins/wp-mail-smtp/assets/images/pro-badge.svg deleted file mode 100644 index c4d1fa4..0000000 --- a/wp-content/plugins/wp-mail-smtp/assets/images/pro-badge.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/providers/aws.svg b/wp-content/plugins/wp-mail-smtp/assets/images/providers/aws.svg deleted file mode 100644 index 3c9979d..0000000 --- a/wp-content/plugins/wp-mail-smtp/assets/images/providers/aws.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/providers/google.svg b/wp-content/plugins/wp-mail-smtp/assets/images/providers/google.svg deleted file mode 100644 index 3b5294e..0000000 --- a/wp-content/plugins/wp-mail-smtp/assets/images/providers/google.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/providers/mailgun.svg b/wp-content/plugins/wp-mail-smtp/assets/images/providers/mailgun.svg deleted file mode 100644 index db84d95..0000000 --- a/wp-content/plugins/wp-mail-smtp/assets/images/providers/mailgun.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/providers/microsoft.svg b/wp-content/plugins/wp-mail-smtp/assets/images/providers/microsoft.svg deleted file mode 100644 index 45ebbda..0000000 --- a/wp-content/plugins/wp-mail-smtp/assets/images/providers/microsoft.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/providers/pepipost-smtp.png b/wp-content/plugins/wp-mail-smtp/assets/images/providers/pepipost-smtp.png deleted file mode 100644 index 6f67bcd..0000000 Binary files a/wp-content/plugins/wp-mail-smtp/assets/images/providers/pepipost-smtp.png and /dev/null differ diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/providers/pepipost.png b/wp-content/plugins/wp-mail-smtp/assets/images/providers/pepipost.png deleted file mode 100644 index 2ef2002..0000000 Binary files a/wp-content/plugins/wp-mail-smtp/assets/images/providers/pepipost.png and /dev/null differ diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/providers/php.svg b/wp-content/plugins/wp-mail-smtp/assets/images/providers/php.svg deleted file mode 100644 index c4cb621..0000000 --- a/wp-content/plugins/wp-mail-smtp/assets/images/providers/php.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/providers/sendgrid.svg b/wp-content/plugins/wp-mail-smtp/assets/images/providers/sendgrid.svg deleted file mode 100644 index a0693d8..0000000 --- a/wp-content/plugins/wp-mail-smtp/assets/images/providers/sendgrid.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/providers/sendinblue.svg b/wp-content/plugins/wp-mail-smtp/assets/images/providers/sendinblue.svg deleted file mode 100644 index 4e4adcc..0000000 --- a/wp-content/plugins/wp-mail-smtp/assets/images/providers/sendinblue.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/providers/smtp-com.svg b/wp-content/plugins/wp-mail-smtp/assets/images/providers/smtp-com.svg deleted file mode 100644 index fdfb5d1..0000000 --- a/wp-content/plugins/wp-mail-smtp/assets/images/providers/smtp-com.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/providers/smtp.svg b/wp-content/plugins/wp-mail-smtp/assets/images/providers/smtp.svg deleted file mode 100644 index 2f31c7e..0000000 --- a/wp-content/plugins/wp-mail-smtp/assets/images/providers/smtp.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/providers/zoho.svg b/wp-content/plugins/wp-mail-smtp/assets/images/providers/zoho.svg deleted file mode 100644 index 4217c48..0000000 --- a/wp-content/plugins/wp-mail-smtp/assets/images/providers/zoho.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/recommended.svg b/wp-content/plugins/wp-mail-smtp/assets/images/recommended.svg deleted file mode 100644 index dc9871e..0000000 --- a/wp-content/plugins/wp-mail-smtp/assets/images/recommended.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/wp-content/plugins/wp-mail-smtp/assets/js/smtp-about.js b/wp-content/plugins/wp-mail-smtp/assets/js/smtp-about.js deleted file mode 100644 index a57c4af..0000000 --- a/wp-content/plugins/wp-mail-smtp/assets/js/smtp-about.js +++ /dev/null @@ -1,181 +0,0 @@ -/* eslint-disable no-prototype-builtins */ -/* global wp_mail_smtp_about */ -'use strict'; - -var WPMailSMTP = window.WPMailSMTP || {}; -WPMailSMTP.Admin = WPMailSMTP.Admin || {}; - -/** - * WP Mail SMTP Admin area About module. - * - * @since 1.5.0 - */ -WPMailSMTP.Admin.About = WPMailSMTP.Admin.About || ( function( document, window, $ ) { - - /** - * Public functions and properties. - * - * @since 1.5.0 - * - * @type {object} - */ - var app = { - - /** - * Start the engine. DOM is not ready yet, use only to init something. - * - * @since 1.5.0 - */ - init: function() { - - // Do that when DOM is ready. - $( document ).ready( app.ready ); - }, - - /** - * DOM is fully loaded. - * - * @since 1.5.0 - */ - ready: function() { - - app.pageHolder = $( '.wp-mail-smtp-page-about' ); - - app.bindActions(); - - $( '.wp-mail-smtp-page' ).trigger( 'WPMailSMTP.Admin.About.ready' ); - }, - - /** - * Process all generic actions/events, mostly custom that were fired by our API. - * - * @since 1.5.0 - */ - bindActions: function() { - - /* - * Make plugins description the same height. - */ - jQuery( '.wp-mail-smtp-admin-about-plugins .plugin-item .details' ).matchHeight(); - - /* - * Install/Active the plugins. - */ - $( document ).on( 'click', '.wp-mail-smtp-admin-about-plugins .plugin-item .action-button .button', function( e ) { - e.preventDefault(); - - var $btn = $( this ); - - if ( $btn.hasClass( 'disabled' ) || $btn.hasClass( 'loading' ) ) { - return false; - } - - var $plugin = $btn.closest( '.plugin-item' ), - plugin = $btn.attr( 'data-plugin' ), - task, - cssClass, - statusText, - buttonText, - successText; - - $btn.addClass( 'loading disabled' ); - $btn.text( wp_mail_smtp_about.plugin_processing ); - - if ( $btn.hasClass( 'status-inactive' ) ) { - - // Activate. - task = 'about_plugin_activate'; - cssClass = 'status-active button button-secondary disabled'; - statusText = wp_mail_smtp_about.plugin_active; - buttonText = wp_mail_smtp_about.plugin_activated; - - } else if ( $btn.hasClass( 'status-download' ) ) { - - // Install & Activate. - task = 'about_plugin_install'; - cssClass = 'status-active button disabled'; - statusText = wp_mail_smtp_about.plugin_active; - buttonText = wp_mail_smtp_about.plugin_activated; - - } else { - return; - } - - // Setup ajax POST data. - var data = { - action: 'wp_mail_smtp_ajax', - task: task, - nonce : wp_mail_smtp_about.nonce, - plugin: plugin - }; - - $.post( wp_mail_smtp_about.ajax_url, data, function( res ) { - var isInstallSuccessful; - - if ( res.success ) { - isInstallSuccessful = true; - if ( 'about_plugin_install' === task ) { - $btn.attr( 'data-plugin', res.data.basename ); - successText = res.data.msg; - if ( ! res.data.is_activated ) { - cssClass = 'button'; - statusText = wp_mail_smtp_about.plugin_inactive; - buttonText = wp_mail_smtp_about.plugin_activate; - } - } else { - successText = res.data; - } - $plugin.find( '.actions' ).append( '
wp_mail()
function to use Gmail/Mailgun/SendGrid/SMTP instead of the default mail()
and creates an options page to manage the settings."
-msgstr ""
-
-#. Author of the plugin
-msgid "WPForms"
-msgstr ""
-
-#. Author URI of the plugin
-msgid "https://wpforms.com/"
-msgstr ""
-
-#. translators: %s - error code, returned by Google API.
-#: src/Admin/Area.php:129
-msgid "There was an error while processing the authentication request: %s. Please try again."
-msgstr ""
-
-#: src/Admin/Area.php:136
-msgid "There was an error while processing the authentication request. Please try again."
-msgstr ""
-
-#: src/Admin/Area.php:143
-msgid "There was an error while processing the authentication request. Please make sure that you have Client ID and Client Secret both valid and saved."
-msgstr ""
-
-#: src/Admin/Area.php:152
-msgid "You have successfully linked the current site with your Google API project. Now you can start sending emails through Gmail."
-msgstr ""
-
-#. translators: %s - Mailer anchor link.
-#: src/Admin/Area.php:183
-msgid "Thanks for using WP Mail SMTP! To complete the plugin setup and start sending emails, please select and configure your Mailer."
-msgstr ""
-
-#: src/Admin/Area.php:217
-#: src/Admin/Area.php:218
-#: src/Admin/Area.php:956
-msgid "Settings"
-msgstr ""
-
-#: src/Admin/Area.php:225
-#: src/Admin/Area.php:226
-#: src/Admin/Pages/About.php:653
-#: src/Admin/Pages/Logs.php:48
-#: src/Admin/Pages/LogsTab.php:30
-msgid "Email Log"
-msgstr ""
-
-#: src/Admin/Area.php:235
-#: src/Admin/Area.php:236
-#: src/Admin/Pages/About.php:106
-msgid "About Us"
-msgstr ""
-
-#: src/Admin/Area.php:280
-#: src/Admin/Area.php:286
-#: src/Admin/Pages/SettingsTab.php:37
-msgid "General"
-msgstr ""
-
-#: src/Admin/Area.php:294
-msgid "Multisite"
-msgstr ""
-
-#: src/Admin/Area.php:295
-msgid "Pro+ badge icon"
-msgstr ""
-
-#: src/Admin/Area.php:298
-msgid "Simply enable network-wide settings and every site on your network will inherit the same SMTP settings. Save time and only configure your SMTP provider once."
-msgstr ""
-
-#: src/Admin/Area.php:305
-msgid "Settings control"
-msgstr ""
-
-#: src/Admin/Area.php:311
-msgid "Make the plugin settings global network-wide"
-msgstr ""
-
-#: src/Admin/Area.php:315
-msgid "If disabled, each subsite of this multisite will have its own WP Mail SMTP settings page that has to be configured separately."
-msgstr ""
-
-#: src/Admin/Area.php:317
-msgid "If enabled, these global settings will manage email sending for all subsites of this multisite."
-msgstr ""
-
-#: src/Admin/Area.php:324
-#: src/Admin/Pages/ControlTab.php:119
-#: src/Admin/Pages/LogsTab.php:68
-msgid "Upgrade to WP Mail SMTP Pro"
-msgstr ""
-
-#: src/Admin/Area.php:390
-msgid "Are you sure you want to reset the current provider connection? You will need to immediately create a new one to be able to send emails."
-msgstr ""
-
-#: src/Admin/Area.php:391
-msgid "Changes that you made to the settings are not saved!"
-msgstr ""
-
-#: src/Admin/Area.php:393
-msgid "Heads up!"
-msgstr ""
-
-#: src/Admin/Area.php:395
-msgid "The Default (PHP) mailer is currently selected, but is not recommended because in most cases it does not resolve email delivery issues.
Please consider selecting and configuring one of the other mailers.
" -msgstr "" - -#: src/Admin/Area.php:398 -#: src/Admin/PageAbstract.php:83 -msgid "Save Settings" -msgstr "" - -#: src/Admin/Area.php:399 -msgid "Cancel" -msgstr "" - -#: src/Admin/Area.php:400 -msgid "Warning icon" -msgstr "" - -#: src/Admin/Area.php:405 -msgid "%name% is a PRO Feature" -msgstr "" - -#: src/Admin/Area.php:406 -msgid "Upgrade to Pro" -msgstr "" - -#: src/Admin/Area.php:410 -msgid "Bonus: WP Mail SMTP users get $50 off regular price,wp_mail()
function to send emails."
-msgstr ""
-
-#: src/Admin/Pages/MiscTab.php:80
-msgid "You will need to consult with their documentation to switch them to use default WordPress email delivery."
-msgstr ""
-
-#: src/Admin/Pages/MiscTab.php:82
-msgid "Test emails are allowed to be sent, regardless of this option."
-msgstr ""
-
-#. translators: %1$s - constant that was used; %2$s - file where it was used.
-#: src/Admin/Pages/MiscTab.php:87
-#: src/Providers/OptionsAbstract.php:480
-msgid "The value of this field was set using a constant %1$s most likely inside %2$s of your WordPress installation."
-msgstr ""
-
-#. translators: %s - The URL to the constants support article.
-#: src/Admin/Pages/MiscTab.php:94
-msgid "Please read this support article if you want to enable this option using constants."
-msgstr ""
-
-#: src/Admin/Pages/MiscTab.php:115
-msgid "Hide Announcements"
-msgstr ""
-
-#: src/Admin/Pages/MiscTab.php:124
-msgid "Check this if you would like to hide plugin announcements and update details."
-msgstr ""
-
-#: src/Admin/Pages/MiscTab.php:134
-msgid "Hide Email Delivery Errors"
-msgstr ""
-
-#: src/Admin/Pages/MiscTab.php:150
-msgid "Check this if you would like to hide warnings alerting of email delivery errors."
-msgstr ""
-
-#. translators: %s - filter that was used to disabled.
-#: src/Admin/Pages/MiscTab.php:157
-msgid "Email Delivery Errors were disabled using a %s filter."
-msgstr ""
-
-#: src/Admin/Pages/MiscTab.php:166
-msgid "This is not recommended and should only be done for staging or development sites."
-msgstr ""
-
-#: src/Admin/Pages/MiscTab.php:181
-msgid "Uninstall WP Mail SMTP"
-msgstr ""
-
-#: src/Admin/Pages/MiscTab.php:189
-msgid "Check this if you would like to remove ALL WP Mail SMTP data upon plugin deletion. All settings will be unrecoverable."
-msgstr ""
-
-#: src/Admin/Pages/MiscTab.php:199
-msgid "Allow Usage Tracking"
-msgstr ""
-
-#: src/Admin/Pages/MiscTab.php:207
-msgid "By allowing us to track usage data we can better help you because we know with which WordPress configurations, themes and plugins we should test."
-msgstr ""
-
-#: src/Admin/Pages/MiscTab.php:255
-#: src/Admin/Pages/SettingsTab.php:604
-msgid "Settings were successfully saved."
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:73
-msgid "License"
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:76
-msgid "Your license key provides access to updates and support."
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:84
-msgid "License Key"
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:94
-msgid "Mail"
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:101
-msgid "From Email"
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:120
-msgid "Please first authorize the Gmail mailer below"
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:134
-msgid "The email address which emails are sent from."
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:135
-msgid "If you're using an email provider (Yahoo, Outlook.com, etc) this should be your email address for that account."
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:138
-msgid "Please note that other plugins can change this, to prevent this use the setting below."
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:158
-msgid "Force From Email"
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:165
-msgid "Current provider will automatically force From Email to be the email address that you use to set up the connection below."
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:167
-msgid "Gmail mailer will automatically force From Email to be the email address that you selected above."
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:173
-msgid "If checked, the From Email setting above will be used for all emails, ignoring values set by other plugins."
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:183
-msgid "From Name"
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:195
-msgid "The name which emails are sent from."
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:209
-msgid "Force From Name"
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:214
-msgid "Current provider doesn't support setting and forcing From Name. Emails will be sent on behalf of the account name used to setup the connection below."
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:218
-msgid "If checked, the From Name setting above will be used for all emails, ignoring values set by other plugins."
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:228
-msgid "Return Path"
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:237
-msgid "Set the return-path to match the From Email"
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:241
-msgid "Return Path indicates where non-delivery receipts - or bounce messages - are to be sent."
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:242
-msgid "If unchecked, bounce messages may be lost. Some providers may ignore this option."
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:250
-msgid "Mailer"
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:292
-msgid "Don't see what you're looking for?"
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:294
-msgid "Suggest a Mailer"
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:322
-msgid "Dismiss this notice"
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:369
-msgid "You're using WP Mail SMTP Lite - no license needed. Enjoy!"
-msgstr ""
-
-#. translators: %s - WPMailSMTP.com upgrade URL.
-#: src/Admin/Pages/SettingsTab.php:375
-msgid "To unlock more features consider upgrading to PRO."
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:394
-msgid "As a valued WP Mail SMTP Lite user you receive $50 off, automatically applied at checkout!"
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:455
-msgid "Get WP Mail SMTP Pro and Unlock all the Powerful Features"
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:459
-msgid "Thanks for being a loyal WP Mail SMTP user. Upgrade to WP Mail SMTP Pro to unlock more awesome features and experience why WP Mail SMTP is the most popular SMTP plugin."
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:463
-msgid "We know that you will truly love WP Mail SMTP. It's used by over 1,000,000 websites."
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:466
-msgid "Pro Features:"
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:470
-msgid "Manage Notifications - control which emails your site sends"
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:471
-msgid "Email Logging - keep track of every email sent from your site"
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:472
-msgid "Office 365 - send emails using your Office 365 account"
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:473
-msgid "Amazon SES - harness the power of AWS"
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:474
-msgid "Outlook.com - send emails using your Outlook.com account"
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:475
-msgid "Access to our world class support team"
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:478
-msgid "White Glove Setup - sit back and relax while we handle everything for you"
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:479
-msgid "Install WP Mail SMTP Pro plugin"
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:480
-msgid "Set up domain name verification (DNS)"
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:481
-msgid "Configure Mailgun service"
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:482
-msgid "Set up WP Mail SMTP Pro plugin"
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:483
-msgid "Test and verify email delivery"
-msgstr ""
-
-#. translators: %s - WPMailSMTP.com URL.
-#: src/Admin/Pages/SettingsTab.php:491
-msgid "Get WP Mail SMTP Pro Today and Unlock all the Powerful Features »"
-msgstr ""
-
-#: src/Admin/Pages/SettingsTab.php:509
-msgid "Bonus: WP Mail SMTP users get $50 off regular price, automatically applied at checkout."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:37
-msgid "Email Test"
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:59
-msgid "Send a Test Email"
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:66
-msgid "Send To"
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:72
-msgid "Enter email address where test email will be sent."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:80
-msgid "HTML"
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:86
-#: src/Providers/OptionsAbstract.php:276
-#: src/Providers/OptionsAbstract.php:298
-msgid "On"
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:87
-#: src/Providers/OptionsAbstract.php:277
-#: src/Providers/OptionsAbstract.php:299
-msgid "Off"
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:90
-msgid "Send this email in HTML or in plain text format."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:110
-msgid "You cannot send an email. Mailer is not properly configured. Please check your settings."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:114
-msgid "Send Email"
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:142
-msgid "Test failed. Please use a valid email address and try to resend the test email."
-msgstr ""
-
-#. translators: %s - email address a test email will be sent to.
-#: src/Admin/Pages/TestTab.php:154
-#: src/Admin/Pages/TestTab.php:160
-msgid "Test email to %s"
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:186
-msgid "Test plain text email was sent successfully!"
-msgstr ""
-
-#. translators: %s - "HTML" in bold.
-#: src/Admin/Pages/TestTab.php:190
-msgid "Test %s email was sent successfully! Please check your inbox to make sure it is delivered."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:510
-msgid "SSL certificate issue."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:511
-msgid "This means your web server cannot reliably make secure connections (make requests to HTTPS sites)."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:512
-#: src/Admin/Pages/TestTab.php:560
-msgid "Typically this error is returned when web server is not configured properly."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:515
-msgid "Contact your web hosting provider and inform them your site has an issue with SSL certificates."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:516
-#: src/Admin/Pages/TestTab.php:564
-msgid "The exact error you can provide them is in the Error log, available at the bottom of this page."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:517
-#: src/Admin/Pages/TestTab.php:565
-msgid "Ask them to resolve the issue then try again."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:528
-msgid "Could not connect to host."
-msgstr ""
-
-#. translators: %s - SMTP host address.
-#: src/Admin/Pages/TestTab.php:531
-#: src/Admin/Pages/TestTab.php:556
-#: src/Admin/Pages/TestTab.php:658
-msgid "This means your web server was unable to connect to %s."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:534
-#: src/Admin/Pages/TestTab.php:559
-#: src/Admin/Pages/TestTab.php:661
-msgid "This means your web server was unable to connect to the host server."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:535
-msgid "Typically this error is returned your web server is blocking the connections or the SMTP host denying the request."
-msgstr ""
-
-#. translators: %s - SMTP host address.
-#: src/Admin/Pages/TestTab.php:539
-msgid "Contact your web hosting provider and ask them to verify your server can connect to %s. Additionally, ask them if a firewall or security policy may be preventing the connection."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:542
-msgid "If using \"Other SMTP\" Mailer, triple check your SMTP settings including host address, email, and password."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:543
-msgid "If using \"Other SMTP\" Mailer, contact your SMTP host to confirm they are accepting outside connections with the settings you have configured (address, username, port, security, etc)."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:553
-msgid "Could not connect to your host."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:563
-msgid "Contact your web hosting provider and inform them you are having issues making outbound connections."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:575
-msgid "Could not authenticate your SMTP account."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:576
-msgid "This means we were able to connect to your SMTP host, but were not able to proceed using the email/password in the settings."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:577
-msgid "Typically this error is returned when the email or password is not correct or is not what the SMTP host is expecting."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:580
-msgid "Triple check your SMTP settings including host address, email, and password. If you have recently reset your password you will need to update the settings."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:581
-#: src/Admin/Pages/TestTab.php:686
-msgid "Contact your SMTP host to confirm you are using the correct username and password."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:582
-#: src/Admin/Pages/TestTab.php:687
-msgid "Verify with your SMTP host that your account has permissions to send emails using outside connections."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:592
-msgid "Error due to unsolicited and/or bulk e-mail."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:593
-msgid "This means the connection to your SMTP host was made successfully, but the host rejected the email."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:594
-msgid "Typically this error is returned when you are sending too many e-mails or e-mails that have been identified as spam."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:597
-msgid "Check the emails that are sending are sending individually. Example: email is not sending to 30 recipients. You can install any WordPress e-mail logging plugin to do that."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:598
-msgid "Contact your SMTP host to ask about sending/rate limits."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:599
-msgid "Verify with them your SMTP account is in good standing and your account has not been flagged."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:609
-msgid "Unauthenticated senders are not allowed."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:610
-msgid "This means the connection to your SMTP host was made successfully, but you should enable Authentication and provide correct Username and Password."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:613
-msgid "Go to WP Mail SMTP plugin Settings page."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:614
-msgid "Enable Authentication"
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:615
-msgid "Enter correct SMTP Username (usually this is an email address) and Password in the appropriate fields."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:627
-msgid "Misconfigured server certificate."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:628
-msgid "This means OpenSSL on your server isn't able to verify the host certificate."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:629
-msgid "There are a few reasons why this is happening. It could be that the host certificate is misconfigured, or this server's OpenSSL is using an outdated CA bundle."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:632
-msgid "Verify that the host's SSL certificate is valid."
-msgstr ""
-
-#. translators: %s - URL to the PHP openssl manual
-#: src/Admin/Pages/TestTab.php:635
-msgid "Contact your hosting support, show them the \"full Error Log for debugging\" below and share this link with them."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:655
-msgid "Could not connect to the SMTP host."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:662
-#: src/Admin/Pages/TestTab.php:1050
-msgid "Typically this error is returned for one of the following reasons:"
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:663
-msgid "SMTP settings are incorrect (wrong port, security setting, incorrect host)."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:664
-#: src/Admin/Pages/TestTab.php:1052
-msgid "Your web server is blocking the connection."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:665
-msgid "Your SMTP host is rejecting the connection."
-msgstr ""
-
-#: src/Admin/Pages/TestTab.php:668
-msgid "Triple check your SMTP settings including host address, email, and password, port, and security."
-msgstr ""
-
-#. translators: %1$s - SMTP host address, %2$s - SMTP port, %3$s - SMTP encryption.
-#: src/Admin/Pages/TestTab.php:671
-msgid "Contact your web hosting provider and ask them to verify your server can connect to %1$s on port %2$s using %3$s encryption. Additionally, ask them if a firewall or security policy may be preventing the connection - many shared hosts block certain ports.' . $error . '
' ),
- WP::ADMIN_NOTICE_ERROR
- );
- break;
-
- case 'google_no_code_scope':
- WP::add_admin_notice(
- esc_html__( 'There was an error while processing the authentication request. Please try again.', 'wp-mail-smtp' ),
- WP::ADMIN_NOTICE_ERROR
- );
- break;
-
- case 'google_no_clients':
- WP::add_admin_notice(
- esc_html__( 'There was an error while processing the authentication request. Please make sure that you have Client ID and Client Secret both valid and saved.', 'wp-mail-smtp' ),
- WP::ADMIN_NOTICE_ERROR
- );
- break;
- }
-
- switch ( $success ) {
- case 'google_site_linked':
- WP::add_admin_notice(
- esc_html__( 'You have successfully linked the current site with your Google API project. Now you can start sending emails through Gmail.', 'wp-mail-smtp' ),
- WP::ADMIN_NOTICE_SUCCESS
- );
- break;
- }
- }
-
- /**
- * Display notice instructing the user to complete plugin setup.
- *
- * @since 1.3.0
- */
- public function display_setup_notice() {
-
- // Bail if we're not on a plugin page.
- if ( ! $this->is_admin_page( 'general' ) ) {
- return;
- }
-
- $default_options = wp_json_encode( Options::get_defaults() );
- $current_options = wp_json_encode( Options::init()->get_all() );
-
- // Check if the current settings are the same as the default settings.
- if ( $current_options !== $default_options ) {
- return;
- }
-
- // Display notice informing user further action is needed.
- WP::add_admin_notice(
- sprintf(
- wp_kses( /* translators: %s - Mailer anchor link. */
- __( 'Thanks for using WP Mail SMTP! To complete the plugin setup and start sending emails, please select and configure your Mailer.', 'wp-mail-smtp' ),
- [
- 'a' => [
- 'href' => [],
- ],
- 'strong' => [],
- ]
- ),
- wp_mail_smtp()->get_admin()->get_admin_page_url( self::SLUG . '#wp-mail-smtp-setting-row-mailer' )
- ),
- WP::ADMIN_NOTICE_INFO
- );
- }
-
- /**
- * Add admin area menu item.
- *
- * @since 1.0.0
- * @since 1.5.0 Moved the menu to the top level. Added several more pages.
- */
- public function add_admin_options_page() {
-
- $this->hook = \add_menu_page(
- \esc_html__( 'WP Mail SMTP', 'wp-mail-smtp' ),
- \esc_html__( 'WP Mail SMTP', 'wp-mail-smtp' ),
- 'manage_options',
- self::SLUG,
- array( $this, 'display' ),
- 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiM5ZWEzYTgiIHdpZHRoPSI2NCIgaGVpZ2h0PSI2NCIgdmlld0JveD0iMCAwIDQzIDM0Ij48cGF0aCBkPSJNMC4wMDcsMy41ODVWMjAuNDIxcTAsMy41ODYsMy43NTEsMy41ODVMMjAsMjRWMTlIMzBWMTQuMDE0bDAuOTkxLTFMMzQsMTNWMy41ODVRMzQsMCwzMC4yNDksMEgzLjc1OFEwLjAwNywwLC4wMDcsMy41ODVoMFpNMy41MjQsNi4xNTdhMS40OSwxLjQ5LDAsMCwxLS41MDgtMC45MzUsMS41ODEsMS41ODEsMCwwLDEsLjI3NC0xLjIwOCwxLjQ0OSwxLjQ0OSwwLDAsMSwxLjA5NC0uNjYzLDEuNzU2LDEuNzU2LDAsMCwxLDEuMjUuMzEybDExLjQwOSw3LjcxNkwyOC4zNzQsMy42NjNhMS45NiwxLjk2LDAsMCwxLDEuMjg5LS4zMTIsMS41NDYsMS41NDYsMCwwLDEsMS4wOTQuNjYzLDEuNCwxLjQsMCwwLDEsLjI3MywxLjIwOCwxLjY3LDEuNjcsMCwwLDEtLjU0Ny45MzVMMTcuMDQzLDE3LjIyNVoiLz48cGF0aCBkPSJNMjIsMjhIMzJsLTAuMDA5LDQuNjI0YTEuMTI2LDEuMTI2LDAsMCwwLDEuOTIyLjhsOC4yNS04LjIzNmExLjEyNiwxLjEyNiwwLDAsMCwwLTEuNTk0bC04LjI1LTguMjQxYTEuMTI2LDEuMTI2LDAsMCwwLTEuOTIyLjh2NC44NjZMMjIsMjF2N1oiLz48L3N2Zz4=',
- 98
- );
-
- \add_submenu_page(
- self::SLUG,
- $this->get_current_tab_title() . ' ‹ ' . \esc_html__( 'Settings', 'wp-mail-smtp' ),
- \esc_html__( 'Settings', 'wp-mail-smtp' ),
- 'manage_options',
- self::SLUG,
- array( $this, 'display' )
- );
- \add_submenu_page(
- self::SLUG,
- \esc_html__( 'Email Log', 'wp-mail-smtp' ),
- \esc_html__( 'Email Log', 'wp-mail-smtp' ),
- 'manage_options',
- self::SLUG . '-logs',
- array( $this, 'display' )
- );
-
- if ( ! wp_mail_smtp()->is_white_labeled() ) {
- \add_submenu_page(
- self::SLUG,
- \esc_html__( 'About Us', 'wp-mail-smtp' ),
- \esc_html__( 'About Us', 'wp-mail-smtp' ),
- 'manage_options',
- self::SLUG . '-about',
- array( $this, 'display' )
- );
- }
- }
-
- /**
- * Add network admin settings page for the WPMS product education.
- *
- * @since 2.5.0
- */
- public function add_wpms_network_wide_setting_product_education_page() {
-
- add_menu_page(
- esc_html__( 'WP Mail SMTP', 'wp-mail-smtp' ),
- esc_html__( 'WP Mail SMTP', 'wp-mail-smtp' ),
- 'manage_options',
- self::SLUG,
- [ $this, 'display_network_product_education_page' ],
- 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiM5ZWEzYTgiIHdpZHRoPSI2NCIgaGVpZ2h0PSI2NCIgdmlld0JveD0iMCAwIDQzIDM0Ij48cGF0aCBkPSJNMC4wMDcsMy41ODVWMjAuNDIxcTAsMy41ODYsMy43NTEsMy41ODVMMjAsMjRWMTlIMzBWMTQuMDE0bDAuOTkxLTFMMzQsMTNWMy41ODVRMzQsMCwzMC4yNDksMEgzLjc1OFEwLjAwNywwLC4wMDcsMy41ODVoMFpNMy41MjQsNi4xNTdhMS40OSwxLjQ5LDAsMCwxLS41MDgtMC45MzUsMS41ODEsMS41ODEsMCwwLDEsLjI3NC0xLjIwOCwxLjQ0OSwxLjQ0OSwwLDAsMSwxLjA5NC0uNjYzLDEuNzU2LDEuNzU2LDAsMCwxLDEuMjUuMzEybDExLjQwOSw3LjcxNkwyOC4zNzQsMy42NjNhMS45NiwxLjk2LDAsMCwxLDEuMjg5LS4zMTIsMS41NDYsMS41NDYsMCwwLDEsMS4wOTQuNjYzLDEuNCwxLjQsMCwwLDEsLjI3MywxLjIwOCwxLjY3LDEuNjcsMCwwLDEtLjU0Ny45MzVMMTcuMDQzLDE3LjIyNVoiLz48cGF0aCBkPSJNMjIsMjhIMzJsLTAuMDA5LDQuNjI0YTEuMTI2LDEuMTI2LDAsMCwwLDEuOTIyLjhsOC4yNS04LjIzNmExLjEyNiwxLjEyNiwwLDAsMCwwLTEuNTk0bC04LjI1LTguMjQxYTEuMTI2LDEuMTI2LDAsMCwwLTEuOTIyLjh2NC44NjZMMjIsMjF2N1oiLz48L3N2Zz4=',
- 98
- );
- }
-
- /**
- * HTML output for the network admin settings page (for the WPMS product education).
- *
- * @since 2.5.0
- */
- public function display_network_product_education_page() {
-
- // Skip if not on multisite and not on network admin site.
- if ( ! is_multisite() || ! is_network_admin() ) {
- return;
- }
-
- ?>
-
- The Default (PHP) mailer is currently selected, but is not recommended because in most cases it does not resolve email delivery issues.
Please consider selecting and configuring one of the other mailers.
', 'wp-mail-smtp' ), - [ 'p' => [] ] - ), - 'save_button' => esc_html__( 'Save Settings', 'wp-mail-smtp' ), - 'cancel_button' => esc_html__( 'Cancel', 'wp-mail-smtp' ), - 'icon_alt' => esc_html__( 'Warning icon', 'wp-mail-smtp' ), - ), - 'plugin_url' => wp_mail_smtp()->plugin_url, - 'education' => array( - 'upgrade_icon_lock' => '', - 'upgrade_title' => esc_html__( '%name% is a PRO Feature', 'wp-mail-smtp' ), - 'upgrade_button' => esc_html__( 'Upgrade to Pro', 'wp-mail-smtp' ), - 'upgrade_url' => add_query_arg( 'discount', 'SMTPLITEUPGRADE', wp_mail_smtp()->get_upgrade_link( '' ) ), - 'upgrade_bonus' => '' .
- wp_kses(
- __( 'Bonus: WP Mail SMTP users get $50 off regular price,
applied at checkout.', 'wp-mail-smtp' ),
- [
- 'strong' => [],
- 'span' => [],
- 'br' => [],
- ]
- )
- . '
- -
- - get_defined_tab( $tab ), - WP::admin_url( 'admin.php?page=' . Area::SLUG . '-' . $this->slug ) - ); - } - - /** - * Get the current tab. - * - * @since 1.5.0 - * - * @return string Current tab. - */ - public function get_current_tab() { - - if ( empty( $_GET['tab'] ) ) { // phpcs:ignore - return $this->slug; - } - - return $this->get_defined_tab( $_GET['tab'] ); // phpcs:ignore - } - - /** - * Get the defined or default tab. - * - * @since 1.5.0 - * - * @param string $tab Tab to check. - * - * @return string Defined tab. Fallback to default one if it doesn't exist. - */ - protected function get_defined_tab( $tab ) { - - $tab = \sanitize_key( $tab ); - - return \in_array( $tab, $this->tabs, true ) ? $tab : $this->slug; - } - - /** - * Get label for a tab. - * Process only those that exists. - * Defaults to "About Us". - * - * @since 1.5.0 - * - * @param string $tab Tab to get label for. - * - * @return string - */ - public function get_label( $tab = '' ) { - - switch ( $this->get_defined_tab( $tab ) ) { - case 'versus': - $label = \sprintf( - /* translators: %s - plugin current license type. */ - \esc_html__( '%s vs Pro', 'wp-mail-smtp' ), - \ucfirst( \wp_mail_smtp()->get_license_type() ) - ); - break; - - case 'about': - default: - $label = \esc_html__( 'About Us', 'wp-mail-smtp' ); - break; - } - - return $label; - } - - /** - * @inheritdoc - */ - public function get_title() { - return $this->get_label( $this->get_current_tab() ); - } - - /** - * Display About page content based on the current tab. - * - * @since 1.5.0 - */ - public function display() { - ?> - -- -
-- -
-- WPForms, the largest WordPress resource site, WPBeginner, the most popular lead-generation software, OptinMonster, the best WordPress analytics plugin, MonsterInsights, and the most powerful WordPress contest plugin, RafflePress.', 'wp-mail-smtp' ), - array( - 'a' => array( - 'href' => array(), - 'rel' => array(), - 'target' => array(), - ), - ) - ), - 'https://wpforms.com/?utm_source=wpmailsmtpplugin&utm_medium=pluginaboutpage&utm_campaign=aboutwpmailsmtp', - 'https://www.wpbeginner.com/?utm_source=wpmailsmtpplugin&utm_medium=pluginaboutpage&utm_campaign=aboutwpmailsmtp', - 'https://optinmonster.com/?utm_source=wpmailsmtpplugin&utm_medium=pluginaboutpage&utm_campaign=aboutwpmailsmtp', - 'https://www.monsterinsights.com/?utm_source=wpmailsmtpplugin&utm_medium=pluginaboutpage&utm_campaign=aboutwpmailsmtp', - 'https://rafflepress.com/?utm_source=wpmailsmtpplugin&utm_medium=pluginaboutpage&utm_campaign=aboutwpmailsmtp' - ); - ?> -
-- -
-- -
-- -
-- - | -
- - ', $current['text'] ); ?> - - |
-
- - ', $pro['text'] ); ?> - - |
-
- $50 off regular price, automatically applied at checkout.', 'wp-mail-smtp' ), - array( - 'span' => array( - 'class' => array(), - ), - ) - ); - ?> -
-🙂
- -- upgrading to PRO.', 'wp-mail-smtp' ), - array( - 'a' => array( - 'href' => array(), - 'class' => array(), - 'target' => array(), - 'rel' => array(), - ), - 'strong' => array(), - ) - ), - esc_url( wp_mail_smtp()->get_upgrade_link( 'general-license-key' ) ) - ); - ?> -
- -- $50 off, automatically applied at checkout!', 'wp-mail-smtp' ), - array( - 'strong' => array(), - 'br' => array(), - ) - ); - ?> -
- - is_pro() ) { - return; - } - - $is_dismissed = get_user_meta( get_current_user_id(), 'wp_mail_smtp_pro_banner_dismissed', true ); - - // Do not display if user dismissed. - if ( (bool) $is_dismissed === true ) { - return; - } - ?> - - - - check_admin_referer(); - - $options = new Options(); - $old_opt = $options->get_all(); - - // When checkbox is unchecked - it's not submitted at all, so we need to define its default false value. - if ( ! isset( $data['mail']['from_email_force'] ) ) { - $data['mail']['from_email_force'] = false; - } - if ( ! isset( $data['mail']['from_name_force'] ) ) { - $data['mail']['from_name_force'] = false; - } - if ( ! isset( $data['mail']['return_path'] ) ) { - $data['mail']['return_path'] = false; - } - if ( ! isset( $data['smtp']['autotls'] ) ) { - $data['smtp']['autotls'] = false; - } - if ( ! isset( $data['smtp']['auth'] ) ) { - $data['smtp']['auth'] = false; - } - - // When switching mailers. - if ( - ! empty( $old_opt['mail']['mailer'] ) && - ! empty( $data['mail']['mailer'] ) && - $old_opt['mail']['mailer'] !== $data['mail']['mailer'] - ) { - - // Remove all debug messages when switching mailers. - Debug::clear(); - - // Save correct from email address if Zoho or Outlook mailers are already configured. - if ( - in_array( $data['mail']['mailer'], [ 'zoho', 'outlook' ], true ) && - ! empty( $old_opt[ $data['mail']['mailer'] ]['user_details']['email'] ) - ) { - $data['mail']['from_email'] = $old_opt[ $data['mail']['mailer'] ]['user_details']['email']; - } - } - - $to_redirect = false; - - // Old and new Gmail client id/secret values are different - we need to invalidate tokens and scroll to Auth button. - if ( - $options->get( 'mail', 'mailer' ) === 'gmail' && - ! empty( $data['gmail']['client_id'] ) && - ! empty( $data['gmail']['client_secret'] ) && - ( - $options->get( 'gmail', 'client_id' ) !== $data['gmail']['client_id'] || - $options->get( 'gmail', 'client_secret' ) !== $data['gmail']['client_secret'] - ) - ) { - unset( $old_opt['gmail'] ); - - if ( - ! empty( $data['gmail']['client_id'] ) && - ! empty( $data['gmail']['client_secret'] ) - ) { - $to_redirect = true; - } - } - - $data = apply_filters( 'wp_mail_smtp_settings_tab_process_post', $data ); - - // All the sanitization is done in Options class. - $options->set( $data, false, false ); - - if ( $to_redirect ) { - wp_redirect( $_POST['_wp_http_referer'] . '#wp-mail-smtp-setting-row-gmail-authorize' ); - exit; - } - - WP::add_admin_notice( - esc_html__( 'Settings were successfully saved.', 'wp-mail-smtp' ), - WP::ADMIN_NOTICE_SUCCESS - ); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/src/Admin/Pages/TestTab.php b/wp-content/plugins/wp-mail-smtp/src/Admin/Pages/TestTab.php deleted file mode 100644 index 1d467c7..0000000 --- a/wp-content/plugins/wp-mail-smtp/src/Admin/Pages/TestTab.php +++ /dev/null @@ -1,1205 +0,0 @@ -get_label(); - } - - /** - * @inheritdoc - */ - public function display() { - ?> - - - - display_debug_details(); - } - - /** - * @inheritdoc - */ - public function process_post( $data ) { - - $this->check_admin_referer(); - - if ( ! empty( $data['test']['email'] ) ) { - $data['test']['email'] = filter_var( $data['test']['email'], FILTER_VALIDATE_EMAIL ); - } - - $is_html = true; - if ( empty( $data['test']['html'] ) ) { - $is_html = false; - } - - if ( empty( $data['test']['email'] ) ) { - WP::add_admin_notice( - esc_html__( 'Test failed. Please use a valid email address and try to resend the test email.', 'wp-mail-smtp' ), - WP::ADMIN_NOTICE_WARNING - ); - return; - } - - $phpmailer = wp_mail_smtp()->get_processor()->get_phpmailer(); - - // Set SMTPDebug level, default is 3 (commands + data + connection status). - $phpmailer->SMTPDebug = apply_filters( 'wp_mail_smtp_admin_test_email_smtp_debug', 3 ); - - /* translators: %s - email address a test email will be sent to. */ - $subject = 'WP Mail SMTP: ' . sprintf( esc_html__( 'Test email to %s', 'wp-mail-smtp' ), $data['test']['email'] ); - - if ( $is_html ) { - add_filter( 'wp_mail_content_type', array( __CLASS__, 'set_test_html_content_type' ) ); - - /* translators: %s - email address a test email will be sent to. */ - $subject = 'WP Mail SMTP: HTML ' . sprintf( esc_html__( 'Test email to %s', 'wp-mail-smtp' ), $data['test']['email'] ); - } - - // Start output buffering to grab smtp debugging output. - ob_start(); - - // Send the test mail. - $result = wp_mail( - $data['test']['email'], - $subject, - $this->get_email_message( $is_html ), - array( - 'X-Mailer-Type:WPMailSMTP/Admin/Test', - ) - ); - - $smtp_debug = ob_get_clean(); - - if ( $is_html ) { - remove_filter( 'wp_mail_content_type', array( __NAMESPACE__, 'set_test_html_content_type' ) ); - } - - /* - * Notify a user about the results. - */ - if ( $result ) { - $result_message = esc_html__( 'Test plain text email was sent successfully!', 'wp-mail-smtp' ); - if ( $is_html ) { - $result_message = sprintf( - /* translators: %s - "HTML" in bold. */ - esc_html__( 'Test %s email was sent successfully! Please check your inbox to make sure it is delivered.', 'wp-mail-smtp' ), - 'HTML' - ); - } - WP::add_admin_notice( - $result_message, - WP::ADMIN_NOTICE_SUCCESS - ); - } else { - // Grab the smtp debugging output. - $this->debug['smtp_debug'] = $smtp_debug; - $this->debug['smtp_error'] = wp_strip_all_tags( $phpmailer->ErrorInfo ); - $this->debug['error_log'] = $this->get_debug_messages( $phpmailer, $smtp_debug ); - } - } - - /** - * Get the email message that should be sent. - * - * @since 1.4.0 - * - * @param bool $is_html Whether to send an HTML email or plain text. - * - * @return string - */ - private function get_email_message( $is_html = true ) { - - // Default plain text version of the email. - $message = $this->get_email_message_text(); - - if ( $is_html ) { - $message = $this->get_email_message_html(); - } - - return $message; - } - - /** - * Get the HTML prepared message for test email. - * - * @since 1.4.0 - * - * @return string - */ - private function get_email_message_html() { - - ob_start(); - ?> - - - - - - -
-
-
|
-
' . $smtp_debug . ''; - } else { - $smtp_text .= '[empty]'; - } - } - - $errors = apply_filters( - 'wp_mail_smtp_admin_test_get_debug_messages', - array( - $versions_text, - $mailer_text, - $debug_text, - $smtp_text, - ) - ); - - return '
' . implode( ''; - } - - /** - * Returns debug information for detection, processing, and display. - * - * @since 1.3.0 - * - * @return array - */ - protected function get_debug_details() { - - $options = new Options(); - $smtp_host = $options->get( 'smtp', 'host' ); - $smtp_port = $options->get( 'smtp', 'port' ); - $smtp_encryption = $options->get( 'smtp', 'encryption' ); - - $details = [ - // [any] - cURL error 60/77. - [ - 'mailer' => 'any', - 'errors' => [ - [ 'cURL error 60' ], - [ 'cURL error 77' ], - ], - 'description' => [ - '' . esc_html__( 'SSL certificate issue.', 'wp-mail-smtp' ) . '', - esc_html__( 'This means your web server cannot reliably make secure connections (make requests to HTTPS sites).', 'wp-mail-smtp' ), - esc_html__( 'Typically this error is returned when web server is not configured properly.', 'wp-mail-smtp' ), - ], - 'steps' => [ - esc_html__( 'Contact your web hosting provider and inform them your site has an issue with SSL certificates.', 'wp-mail-smtp' ), - esc_html__( 'The exact error you can provide them is in the Error log, available at the bottom of this page.', 'wp-mail-smtp' ), - esc_html__( 'Ask them to resolve the issue then try again.', 'wp-mail-smtp' ), - ], - ], - // [any] - cURL error 6/7. - [ - 'mailer' => 'any', - 'errors' => [ - [ 'cURL error 6' ], - [ 'cURL error 7' ], - ], - 'description' => [ - '' . esc_html__( 'Could not connect to host.', 'wp-mail-smtp' ) . '', - ! empty( $smtp_host ) - ? sprintf( /* translators: %s - SMTP host address. */ - esc_html__( 'This means your web server was unable to connect to %s.', 'wp-mail-smtp' ), - $smtp_host - ) - : esc_html__( 'This means your web server was unable to connect to the host server.', 'wp-mail-smtp' ), - esc_html__( 'Typically this error is returned your web server is blocking the connections or the SMTP host denying the request.', 'wp-mail-smtp' ), - ], - 'steps' => [ - sprintf( /* translators: %s - SMTP host address. */ - esc_html__( 'Contact your web hosting provider and ask them to verify your server can connect to %s. Additionally, ask them if a firewall or security policy may be preventing the connection.', 'wp-mail-smtp' ), - $smtp_host - ), - esc_html__( 'If using "Other SMTP" Mailer, triple check your SMTP settings including host address, email, and password.', 'wp-mail-smtp' ), - esc_html__( 'If using "Other SMTP" Mailer, contact your SMTP host to confirm they are accepting outside connections with the settings you have configured (address, username, port, security, etc).', 'wp-mail-smtp' ), - ], - ], - // [any] - cURL error XX (other). - [ - 'mailer' => 'any', - 'errors' => [ - [ 'cURL error' ], - ], - 'description' => [ - '' . esc_html__( 'Could not connect to your host.', 'wp-mail-smtp' ) . '', - ! empty( $smtp_host ) - ? sprintf( /* translators: %s - SMTP host address. */ - esc_html__( 'This means your web server was unable to connect to %s.', 'wp-mail-smtp' ), - $smtp_host - ) - : esc_html__( 'This means your web server was unable to connect to the host server.', 'wp-mail-smtp' ), - esc_html__( 'Typically this error is returned when web server is not configured properly.', 'wp-mail-smtp' ), - ], - 'steps' => [ - esc_html__( 'Contact your web hosting provider and inform them you are having issues making outbound connections.', 'wp-mail-smtp' ), - esc_html__( 'The exact error you can provide them is in the Error log, available at the bottom of this page.', 'wp-mail-smtp' ), - esc_html__( 'Ask them to resolve the issue then try again.', 'wp-mail-smtp' ), - ], - ], - // [smtp] - SMTP Error: Count not authenticate. - [ - 'mailer' => 'smtp', - 'errors' => [ - [ 'SMTP Error: Could not authenticate.' ], - ], - 'description' => [ - '' . esc_html__( 'Could not authenticate your SMTP account.', 'wp-mail-smtp' ) . '', - esc_html__( 'This means we were able to connect to your SMTP host, but were not able to proceed using the email/password in the settings.', 'wp-mail-smtp' ), - esc_html__( 'Typically this error is returned when the email or password is not correct or is not what the SMTP host is expecting.', 'wp-mail-smtp' ), - ], - 'steps' => [ - esc_html__( 'Triple check your SMTP settings including host address, email, and password. If you have recently reset your password you will need to update the settings.', 'wp-mail-smtp' ), - esc_html__( 'Contact your SMTP host to confirm you are using the correct username and password.', 'wp-mail-smtp' ), - esc_html__( 'Verify with your SMTP host that your account has permissions to send emails using outside connections.', 'wp-mail-smtp' ), - ], - ], - // [smtp] - Sending bulk email, hitting rate limit. - [ - 'mailer' => 'smtp', - 'errors' => [ - [ 'We do not authorize the use of this system to transport unsolicited' ], - ], - 'description' => [ - '' . esc_html__( 'Error due to unsolicited and/or bulk e-mail.', 'wp-mail-smtp' ) . '', - esc_html__( 'This means the connection to your SMTP host was made successfully, but the host rejected the email.', 'wp-mail-smtp' ), - esc_html__( 'Typically this error is returned when you are sending too many e-mails or e-mails that have been identified as spam.', 'wp-mail-smtp' ), - ], - 'steps' => [ - esc_html__( 'Check the emails that are sending are sending individually. Example: email is not sending to 30 recipients. You can install any WordPress e-mail logging plugin to do that.', 'wp-mail-smtp' ), - esc_html__( 'Contact your SMTP host to ask about sending/rate limits.', 'wp-mail-smtp' ), - esc_html__( 'Verify with them your SMTP account is in good standing and your account has not been flagged.', 'wp-mail-smtp' ), - ], - ], - // [smtp] - Unauthenticated senders not allowed. - [ - 'mailer' => 'smtp', - 'errors' => [ - [ 'Unauthenticated senders not allowed' ], - ], - 'description' => [ - '' . esc_html__( 'Unauthenticated senders are not allowed.', 'wp-mail-smtp' ) . '', - esc_html__( 'This means the connection to your SMTP host was made successfully, but you should enable Authentication and provide correct Username and Password.', 'wp-mail-smtp' ), - ], - 'steps' => [ - esc_html__( 'Go to WP Mail SMTP plugin Settings page.', 'wp-mail-smtp' ), - esc_html__( 'Enable Authentication', 'wp-mail-smtp' ), - esc_html__( 'Enter correct SMTP Username (usually this is an email address) and Password in the appropriate fields.', 'wp-mail-smtp' ), - ], - ], - // [smtp] - certificate verify failed. - // Has to be defined before "SMTP connect() failed" error, since this is a more specific error, - // which contains the "SMTP connect() failed" error message as well. - [ - 'mailer' => 'smtp', - 'errors' => [ - [ 'certificate verify failed' ], - ], - 'description' => [ - '' . esc_html__( 'Misconfigured server certificate.', 'wp-mail-smtp' ) . '', - esc_html__( 'This means OpenSSL on your server isn\'t able to verify the host certificate.', 'wp-mail-smtp' ), - esc_html__( 'There are a few reasons why this is happening. It could be that the host certificate is misconfigured, or this server\'s OpenSSL is using an outdated CA bundle.', 'wp-mail-smtp' ), - ], - 'steps' => [ - esc_html__( 'Verify that the host\'s SSL certificate is valid.', 'wp-mail-smtp' ), - sprintf( - wp_kses( /* translators: %s - URL to the PHP openssl manual */ - __( 'Contact your hosting support, show them the "full Error Log for debugging" below and share this link with them.', 'wp-mail-smtp' ), - [ - 'a' => [ - 'href' => [], - 'target' => [], - 'rel' => [], - ], - ] - ), - 'https://www.php.net/manual/en/migration56.openssl.php' - ), - ], - ], - // [smtp] - SMTP connect() failed. - [ - 'mailer' => 'smtp', - 'errors' => [ - [ 'SMTP connect() failed' ], - ], - 'description' => [ - '' . esc_html__( 'Could not connect to the SMTP host.', 'wp-mail-smtp' ) . '', - ! empty( $smtp_host ) - ? sprintf( /* translators: %s - SMTP host address. */ - esc_html__( 'This means your web server was unable to connect to %s.', 'wp-mail-smtp' ), - $smtp_host - ) - : esc_html__( 'This means your web server was unable to connect to the host server.', 'wp-mail-smtp' ), - esc_html__( 'Typically this error is returned for one of the following reasons:', 'wp-mail-smtp' ), - '-' . esc_html__( 'SMTP settings are incorrect (wrong port, security setting, incorrect host).', 'wp-mail-smtp' ) . '
', array_filter( $errors ) ) . '
info@example.com
',
- 'info@localhost
, info@192.168.1.1
'
- ),
- esc_html__( 'Make sure that the generated email has a TO header, useful when you are responsible for email creation.', 'wp-mail-smtp' ),
- ],
- ],
- // [gmail] - Token has been expired or revoked.
- [
- 'mailer' => 'gmail',
- 'errors' => [
- [ 'invalid_grant', 'Token has been expired or revoked' ],
- ],
- 'description' => [
- '' . esc_html__( 'Google API Error.', 'wp-mail-smtp' ) . '',
- esc_html__( 'Unfortunately, this error can be due to many different reasons.', 'wp-mail-smtp' ),
- sprintf(
- wp_kses( /* translators: %s - Blog article URL. */
- __( 'Please read this article to learn more about what can cause this error and follow the steps below.', 'wp-mail-smtp' ),
- [
- 'a' => [
- 'href' => [],
- 'target' => [],
- 'rel' => [],
- ],
- ]
- ),
- 'https://blog.timekit.io/google-oauth-invalid-grant-nightmare-and-how-to-fix-it-9f4efaf1da35'
- ),
- ],
- 'steps' => [
- esc_html__( 'Go to WP Mail SMTP plugin settings page. Click the “Remove Connection” button.', 'wp-mail-smtp' ),
- esc_html__( 'Then click the “Allow plugin to send emails using your Google account” button and re-enable access.', 'wp-mail-smtp' ),
- ],
- ],
- // [gmail] - Code was already redeemed.
- [
- 'mailer' => 'gmail',
- 'errors' => [
- [ 'invalid_grant', 'Code was already redeemed' ],
- ],
- 'description' => [
- '' . esc_html__( 'Google API Error.', 'wp-mail-smtp' ) . '',
- esc_html__( 'Authentication code that Google returned to you has already been used on your previous auth attempt.', 'wp-mail-smtp' ),
- ],
- 'steps' => [
- esc_html__( 'Make sure that you are not trying to manually clean up the plugin options to retry the "Allow..." step.', 'wp-mail-smtp' ),
- esc_html__( 'Reinstall the plugin with clean plugin data turned on on Misc page. This will remove all the plugin options and you will be safe to retry.', 'wp-mail-smtp' ),
- esc_html__( 'Make sure there is no aggressive caching on site admin area pages or try to clean cache between attempts.', 'wp-mail-smtp' ),
- ],
- ],
- // [gmail] - 400: Mail service not enabled.
- [
- 'mailer' => 'gmail',
- 'errors' => [
- [ '400', 'Mail service not enabled' ],
- ],
- 'description' => [
- '' . esc_html__( 'Google API Error.', 'wp-mail-smtp' ) . '',
- esc_html__( 'There are various reasons for that, please review the steps below.', 'wp-mail-smtp' ),
- ],
- 'steps' => [
- sprintf(
- wp_kses( /* translators: %s - Google G Suite Admin area URL. */
- __( 'Make sure that your G Suite trial period has not expired. You can check the status here.', 'wp-mail-smtp' ),
- [
- 'a' => [
- 'href' => [],
- 'rel' => [],
- 'target' => [],
- ],
- ]
- ),
- 'https://admin.google.com'
- ),
- sprintf(
- wp_kses( /* translators: %s - Google G Suite Admin area URL. */
- __( 'Make sure that Gmail app in your G Suite is actually enabled. You can check that in Apps list in G Suite Admin area.', 'wp-mail-smtp' ),
- [
- 'a' => [
- 'href' => [],
- 'rel' => [],
- 'target' => [],
- ],
- ]
- ),
- 'https://admin.google.com'
- ),
- sprintf(
- wp_kses( /* translators: %s - Google Developers Console URL. */
- __( 'Make sure that you have Gmail API enabled, and you can do that here.', 'wp-mail-smtp' ),
- [
- 'a' => [
- 'href' => [],
- 'rel' => [],
- 'target' => [],
- ],
- ]
- ),
- 'https://console.developers.google.com/'
- ),
- ],
- ],
- // [gmail] - 403: Project X is not found and cannot be used for API calls.
- [
- 'mailer' => 'gmail',
- 'errors' => [
- [ '403', 'is not found and cannot be used for API calls' ],
- ],
- 'description' => [
- '' . esc_html__( 'Google API Error.', 'wp-mail-smtp' ) . '',
- ],
- 'steps' => [
- esc_html__( 'Make sure that the used Client ID/Secret correspond to a proper project that has Gmail API enabled.', 'wp-mail-smtp' ),
- sprintf(
- wp_kses( /* translators: %s - Gmail documentation URL. */
- esc_html__( 'Please follow our Gmail tutorial to be sure that all the correct project and data is applied.', 'wp-mail-smtp' ),
- [
- 'a' => [
- 'href' => [],
- 'rel' => [],
- 'target' => [],
- ],
- ]
- ),
- 'https://wpmailsmtp.com/docs/how-to-set-up-the-gmail-mailer-in-wp-mail-smtp/'
- ),
- ],
- ],
- // [gmail] - The OAuth client was disabled.
- [
- 'mailer' => 'gmail',
- 'errors' => [
- [ 'disabled_client', 'The OAuth client was disabled' ],
- ],
- 'description' => [
- '' . esc_html__( 'Google API Error.', 'wp-mail-smtp' ) . '',
- esc_html__( 'You may have added a new API to a project', 'wp-mail-smtp' ),
- ],
- 'steps' => [
- esc_html__( 'Make sure that the used Client ID/Secret correspond to a proper project that has Gmail API enabled.', 'wp-mail-smtp' ),
- esc_html__( 'Try to use a separate project for your emails, so the project has only 1 Gmail API in it enabled. You will need to remove the old project and create a new one from scratch.', 'wp-mail-smtp' ),
- ],
- ],
- // [SMTP.com] - The "channel - not found" issue.
- [
- 'mailer' => 'smtpcom',
- 'errors' => [
- [ 'channel - not found' ],
- ],
- 'description' => [
- '' . esc_html__( 'SMTP.com API Error.', 'wp-mail-smtp' ) . '',
- esc_html__( 'Your Sender Name option is incorrect.', 'wp-mail-smtp' ),
- ],
- 'steps' => [
- esc_html__( 'Please make sure you entered an accurate Sender Name in WP Mail SMTP plugin settings.', 'wp-mail-smtp' ),
- ],
- ],
- // [gmail] - GuzzleHttp requires cURL, the allow_url_fopen ini setting, or a custom HTTP handler.
- [
- 'mailer' => 'gmail',
- 'errors' => [
- [ 'GuzzleHttp requires cURL, the allow_url_fopen ini setting, or a custom HTTP handler' ],
- ],
- 'description' => [
- '' . esc_html__( 'GuzzleHttp requirements.', 'wp-mail-smtp' ) . '',
- esc_html__( 'GuzzleHttp requires cURL, the allow_url_fopen ini setting, or a custom HTTP handler.', 'wp-mail-smtp' ),
- ],
- 'steps' => [
- esc_html__( 'Edit your php.ini file on your hosting server.', 'wp-mail-smtp' ),
- esc_html__( '(Recommended) Enable PHP extension: cURL, by adding "extension=curl" to the php.ini file (without the quotation marks) OR', 'wp-mail-smtp' ),
- esc_html__( '(If cURL can\'t be enabled on your hosting server) Enable PHP setting: allow_url_fopen, by adding "allow_url_fopen = On" to the php.ini file (without the quotation marks)', 'wp-mail-smtp' ),
- esc_html__( 'If you don\'t know how to do the above we strongly suggest contacting your hosting support and provide them the "full Error Log for debugging" below and these steps. They should be able to fix this issue for you.', 'wp-mail-smtp' ),
- ],
- ],
- ];
-
- /**
- * [any] - PHP 7.4.x and PCRE library issues.
- *
- * @see https://wordpress.org/support/topic/cant-send-emails-using-php-7-4/
- */
- if (
- version_compare( phpversion(), '7.4', '>=' ) &&
- defined( 'PCRE_VERSION' ) &&
- version_compare( PCRE_VERSION, '10.0', '>' ) &&
- version_compare( PCRE_VERSION, '10.32', '<=' )
- ) {
- $details[] = [
- 'mailer' => 'any',
- 'errors' => [
- [ 'Invalid address: (setFrom)' ],
- ],
- 'description' => [
- '' . esc_html__( 'PCRE library issue', 'wp-mail-smtp' ) . '',
- esc_html__( 'It looks like your server is running PHP version 7.4.x with an outdated PCRE library (libpcre2) that has a known issue with email address validation.', 'wp-mail-smtp' ),
- esc_html__( 'There is a known issue with PHP version 7.4.x, when using libpcre2 library version lower than 10.33.', 'wp-mail-smtp' ),
- ],
- 'steps' => [
- esc_html__( 'Contact your web hosting provider and inform them you are having issues with libpcre2 library on PHP 7.4.', 'wp-mail-smtp' ),
- esc_html__( 'They should be able to resolve this issue for you.', 'wp-mail-smtp' ),
- esc_html__( 'For a quick fix, until your web hosting resolves this, you can downgrade to PHP version 7.3 on your server.', 'wp-mail-smtp' ),
- ],
- ];
- }
-
- // Error detection logic.
- foreach ( $details as $data ) {
-
- // Check for appropriate mailer.
- if ( 'any' !== $data['mailer'] && $this->debug['mailer'] !== $data['mailer'] ) {
- continue;
- }
-
- $match = false;
-
- // Attempt to detect errors.
- foreach ( $data['errors'] as $error_group ) {
- foreach ( $error_group as $error_code => $error_message ) {
- $match = ( false !== strpos( $this->debug['error_log'], $error_message ) || false !== strpos( $this->debug['error_log'], $error_message ) );
- if ( ! $match ) {
- break;
- }
- }
- if ( $match ) {
- break;
- }
- }
-
- if ( $match ) {
- return $data;
- }
- }
-
- // Return defaults.
- return [
- 'description' => [
- '' . esc_html__( 'An issue was detected.', 'wp-mail-smtp' ) . '',
- esc_html__( 'This means your test email was unable to be sent.', 'wp-mail-smtp' ),
- esc_html__( 'Typically this error is returned for one of the following reasons:', 'wp-mail-smtp' ),
- '- ' . esc_html__( 'Plugin settings are incorrect (wrong SMTP settings, invalid Mailer configuration, etc).', 'wp-mail-smtp' ) . '-
- submit a support ticket.', 'wp-mail-smtp' ), - array( - 'a' => array( - 'href' => array(), - 'rel' => array(), - 'target' => array(), - ), - ) - ), - 'https://wpmailsmtp.com/account/support/' - ); - ?> -
- - - -- -
- -- upgrade to WP Mail SMTP Pro. Along with getting expert support, you will also get Notification controls, Email Logging, and integrations for Amazon SES, Office 365, and Outlook.com.', 'wp-mail-smtp' ), - array( - 'a' => array( - 'href' => array(), - 'target' => array(), - 'rel' => array(), - ), - ) - ), - esc_url( wp_mail_smtp()->get_upgrade_link( 'email-test-fail' ) ) - ) - ?> -
- -- -
- -- $50 off regular pricing, automatically applied at checkout!', 'wp-mail-smtp' ), - array( - 'span' => array( - 'class' => array(), - ), - ) - ); - ?> -
- -- limited support on the WordPress.org support forums. You can create a support thread there, but please understand that free support is not guaranteed and is limited to simple issues. If you have an urgent or complex issue, then please consider upgrading to WP Mail SMTP Pro to access our priority support ticket system.', 'wp-mail-smtp' ), - array( - 'a' => array( - 'href' => array(), - 'rel' => array(), - 'target' => array(), - ), - ) - ), - 'https://wordpress.org/support/topic/wp-mail-smtp-support-policy/', - 'https://wordpress.org/support/plugin/wp-mail-smtp/', - esc_url( wp_mail_smtp()->get_upgrade_link( 'email-test-fail' ) ) - ); - ?> -
- - - -- - - - -
- -- -
-
- EMAILING DISABLED: The %s is currently blocking all emails from being sent.', 'wp-mail-smtp' ),
- array(
- 'strong' => true,
- )
- ),
- esc_html( 'WP Mail SMTP v' . WPMS_PLUGIN_VER )
- );
-
- if ( Options::init()->is_const_defined( 'general', 'do_not_send' ) ) {
- $notices[] = sprintf(
- wp_kses( /* translators: %1$s - constant name; %2$s - constant value. */
- __( 'To send emails, change the value of the %1$s constant to %2$s.', 'wp-mail-smtp' ),
- array(
- 'code' => true,
- )
- ),
- 'WPMS_DO_NOT_SEND
',
- 'false
'
- );
- } else {
- $notices[] = sprintf(
- wp_kses( /* translators: %s - plugin Misc settings page URL. */
- __( 'To send emails, go to plugin Misc settings and disable the "Do Not Send" option.', 'wp-mail-smtp' ),
- array(
- 'a' => array(
- 'href' => true,
- ),
- )
- ),
- esc_url( add_query_arg( 'tab', 'misc', wp_mail_smtp()->get_admin()->get_admin_page_url() ) )
- );
- }
-
- echo implode( ' ', $notices );
- ?>
-
- EMAIL DELIVERY ERROR: the plugin %s logged this error during the last time it tried to send an email:', 'wp-mail-smtp' ), - array( - 'strong' => array(), - ) - ), - esc_html( 'WP Mail SMTP v' . WPMS_PLUGIN_VER ) - ); - ?> -
- -- -- -
- get_admin()->is_admin_page() ) { - printf( - wp_kses( /* translators: %s - plugin admin page URL. */ - __( 'Please review your WP Mail SMTP settings in plugin admin area.' ) . ' ', - array( - 'a' => array( - 'href' => array(), - ), - ) - ), - esc_url( wp_mail_smtp()->get_admin()->get_admin_page_url() ) - ); - } - - esc_html_e( 'Consider running an email test after fixing it.', 'wp-mail-smtp' ); - ?> -
-';
-
- if ( is_bool( $var ) || empty( $var ) ) {
- var_dump( $var );
- } else {
- print_r( $var );
- }
-
- echo '
';
-
- $output = ob_get_clean();
-
- return str_replace( array( "\r\n", "\r", "\n" ), '', $output );
- }
-}
diff --git a/wp-content/plugins/wp-mail-smtp/src/Geo.php b/wp-content/plugins/wp-mail-smtp/src/Geo.php
deleted file mode 100644
index 5d953f1..0000000
--- a/wp-content/plugins/wp-mail-smtp/src/Geo.php
+++ /dev/null
@@ -1,164 +0,0 @@
- sanitize_text_field( $request['latitude'] ),
- 'longitude' => sanitize_text_field( $request['longitude'] ),
- 'city' => isset( $request['city'] ) ? sanitize_text_field( $request['city'] ) : '',
- 'region' => isset( $request['region_name'] ) ? sanitize_text_field( $request['region_name'] ) : '',
- 'country' => isset( $request['country_iso'] ) ? sanitize_text_field( $request['country_iso'] ) : '',
- 'postal' => isset( $request['zip_code'] ) ? sanitize_text_field( $request['zip_code'] ) : '',
- ];
-
- return $data;
- }
- }
-
- $request = wp_remote_get( 'https://ipapi.co/' . $ip . '/json' );
-
- if ( ! is_wp_error( $request ) ) {
-
- $request = json_decode( wp_remote_retrieve_body( $request ), true );
-
- if ( ! empty( $request['latitude'] ) && ! empty( $request['longitude'] ) ) {
-
- $data = [
- 'latitude' => sanitize_text_field( $request['latitude'] ),
- 'longitude' => sanitize_text_field( $request['longitude'] ),
- 'city' => isset( $request['city'] ) ? sanitize_text_field( $request['city'] ) : '',
- 'region' => isset( $request['region'] ) ? sanitize_text_field( $request['region'] ) : '',
- 'country' => isset( $request['country'] ) ? sanitize_text_field( $request['country'] ) : '',
- 'postal' => isset( $request['postal'] ) ? sanitize_text_field( $request['postal'] ) : '',
- ];
-
- return $data;
- }
- }
-
- $request = wp_remote_get( 'https://tools.keycdn.com/geo.json?host=' . $ip );
-
- if ( ! is_wp_error( $request ) ) {
-
- $request = json_decode( wp_remote_retrieve_body( $request ), true );
-
- if ( ! empty( $request['data']['geo']['latitude'] ) && ! empty( $request['data']['geo']['longitude'] ) ) {
-
- $data = [
- 'latitude' => sanitize_text_field( $request['data']['geo']['latitude'] ),
- 'longitude' => sanitize_text_field( $request['data']['geo']['longitude'] ),
- 'city' => isset( $request['data']['geo']['city'] ) ? sanitize_text_field( $request['data']['geo']['city'] ) : '',
- 'region' => isset( $request['data']['geo']['region_name'] ) ? sanitize_text_field( $request['data']['geo']['region_name'] ) : '',
- 'country' => isset( $request['data']['geo']['country_code'] ) ? sanitize_text_field( $request['data']['geo']['country_code'] ) : '',
- 'postal' => isset( $request['data']['geo']['postal_code'] ) ? sanitize_text_field( $request['data']['geo']['postal_code'] ) : '',
- ];
-
- return $data;
- }
- }
-
- return [];
- }
-
- /**
- * This routine calculates the distance between two points (given the latitude/longitude of those points).
- * Definitions: South latitudes are negative, east longitudes are positive.
- *
- * @see https://www.geodatasource.com/developers/php
- *
- * @since 1.5.0
- *
- * @param float $lat1 Latitude of point 1 (in decimal degrees).
- * @param float $lon1 Longitude of point 1 (in decimal degrees).
- * @param float $lat2 Latitude of point 2 (in decimal degrees).
- * @param float $lon2 Longitude of point 2 (in decimal degrees).
- * @param string $unit Supported values: M, K, N. Miles by default.
- *
- * @return float|int
- */
- public static function get_distance_between( $lat1, $lon1, $lat2, $lon2, $unit = 'M' ) {
-
- if ( ( $lat1 === $lat2 ) && ( $lon1 === $lon2 ) ) {
- return 0;
- }
-
- $theta = $lon1 - $lon2;
- $dist = sin( deg2rad( $lat1 ) ) * sin( deg2rad( $lat2 ) ) + cos( deg2rad( $lat1 ) ) * cos( deg2rad( $lat2 ) ) * cos( deg2rad( $theta ) );
- $dist = acos( $dist );
- $dist = rad2deg( $dist );
- $miles = $dist * 60 * 1.1515;
- $unit = strtoupper( $unit );
-
- if ( $unit === 'K' ) {
- return ( $miles * 1.609344 );
- } elseif ( $unit === 'N' ) {
- return ( $miles * 0.8684 );
- }
-
- return $miles;
- }
-}
diff --git a/wp-content/plugins/wp-mail-smtp/src/Helpers/Crypto.php b/wp-content/plugins/wp-mail-smtp/src/Helpers/Crypto.php
deleted file mode 100644
index 41545dc..0000000
--- a/wp-content/plugins/wp-mail-smtp/src/Helpers/Crypto.php
+++ /dev/null
@@ -1,162 +0,0 @@
-=' ) && ! function_exists( 'sodium_crypto_box' ) ) {
- require_once dirname( WPMS_PLUGIN_FILE ) . '/vendor/paragonie/sodium_compat/autoload.php';
-}
-
-/**
- * Class for encryption functionality.
- *
- * @since 2.5.0
- *
- * @link https://www.php.net/manual/en/intro.sodium.php
- */
-class Crypto {
-
- /**
- * Get a secret key for encrypt/decrypt.
- *
- * @since 2.5.0
- *
- * @param bool $create Should the key be created, if it does not exist yet.
- *
- * @return string|bool
- */
- public static function get_secret_key( $create = false ) {
-
- if ( defined( 'WPMS_CRYPTO_KEY' ) ) {
- return WPMS_CRYPTO_KEY;
- }
-
- $secret_key = get_option( 'wp_mail_smtp_mail_key' );
-
- // If we already have the secret, send it back.
- if ( false !== $secret_key ) {
- return base64_decode( $secret_key ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_decode
- }
-
- if ( $create ) {
- // We don't have a secret, so let's generate one.
- try {
- $secret_key = sodium_crypto_secretbox_keygen(); // phpcs:ignore
- } catch ( \Exception $e ) {
- $secret_key = wp_generate_password( SODIUM_CRYPTO_SECRETBOX_KEYBYTES ); // phpcs:ignore
- }
-
- add_option( 'wp_mail_smtp_mail_key', base64_encode( $secret_key ) ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode
-
- return $secret_key;
- }
-
- return false;
- }
-
- /**
- * Encrypt a message.
- *
- * @since 2.5.0
- *
- * @param string $message Message to encrypt.
- * @param string $key Encryption key.
- *
- * @return string
- * @throws \Exception The exception object.
- */
- public static function encrypt( $message, $key = '' ) {
-
- if ( apply_filters( 'wp_mail_smtp_helpers_crypto_stop', false ) ) {
- return $message;
- }
-
- // Create a nonce for this operation. It will be stored and recovered in the message itself.
- $nonce = random_bytes( SODIUM_CRYPTO_SECRETBOX_NONCEBYTES ); // phpcs:ignore
-
- if ( empty( $key ) ) {
- $key = self::get_secret_key( true );
- }
-
- // Encrypt message and combine with nonce.
- $cipher = base64_encode( // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode
- $nonce .
- sodium_crypto_secretbox( // phpcs:ignore
- $message,
- $nonce,
- $key
- )
- );
-
- try {
- sodium_memzero( $message ); // phpcs:ignore
- sodium_memzero( $key ); // phpcs:ignore
- } catch ( \Exception $e ) {
- return $cipher;
- }
-
- return $cipher;
- }
-
- /**
- * Decrypt a message.
- * Returns encrypted message on any failure and the decrypted message on success.
- *
- * @since 2.5.0
- *
- * @param string $encrypted Encrypted message.
- * @param string $key Encryption key.
- *
- * @return string
- * @throws \Exception The exception object.
- */
- public static function decrypt( $encrypted, $key = '' ) {
-
- if ( apply_filters( 'wp_mail_smtp_helpers_crypto_stop', false ) ) {
- return $encrypted;
- }
-
- // Unpack base64 message.
- $decoded = base64_decode( $encrypted ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_decode
-
- if ( false === $decoded ) {
- return $encrypted;
- }
-
- if ( mb_strlen( $decoded, '8bit' ) < ( SODIUM_CRYPTO_SECRETBOX_NONCEBYTES + SODIUM_CRYPTO_SECRETBOX_MACBYTES ) ) { // phpcs:ignore
- return $encrypted;
- }
-
- // Pull nonce and ciphertext out of unpacked message.
- $nonce = mb_substr( $decoded, 0, SODIUM_CRYPTO_SECRETBOX_NONCEBYTES, '8bit' ); // phpcs:ignore
- $ciphertext = mb_substr( $decoded, SODIUM_CRYPTO_SECRETBOX_NONCEBYTES, null, '8bit' ); // phpcs:ignore
-
- $key = empty( $key ) ? self::get_secret_key() : $key;
-
- if ( empty( $key ) ) {
- return $encrypted;
- }
-
- // Decrypt it.
- $message = sodium_crypto_secretbox_open( // phpcs:ignore
- $ciphertext,
- $nonce,
- $key
- );
-
- // Check for decryption failures.
- if ( false === $message ) {
- return $encrypted;
- }
-
- try {
- sodium_memzero( $ciphertext ); // phpcs:ignore
- sodium_memzero( $key ); // phpcs:ignore
- } catch ( \Exception $e ) {
- return $message;
- }
-
- return $message;
- }
-}
diff --git a/wp-content/plugins/wp-mail-smtp/src/MailCatcher.php b/wp-content/plugins/wp-mail-smtp/src/MailCatcher.php
deleted file mode 100644
index d644bf1..0000000
--- a/wp-content/plugins/wp-mail-smtp/src/MailCatcher.php
+++ /dev/null
@@ -1,181 +0,0 @@
-get( 'mail', 'mailer' ) );
-
- $is_emailing_blocked = false;
-
- if ( wp_mail_smtp()->is_blocked() ) {
- $is_emailing_blocked = true;
- }
-
- // Always allow a test email - check for the specific header.
- foreach ( (array) $this->getCustomHeaders() as $header ) {
- if (
- ! empty( $header[0] ) &&
- ! empty( $header[1] ) &&
- $header[0] === 'X-Mailer-Type' &&
- trim( $header[1] ) === 'WPMailSMTP/Admin/Test'
- ) {
- $is_emailing_blocked = false;
- }
- };
-
- // Do not send emails if admin desired that.
- if ( $is_emailing_blocked ) {
- return false;
- }
-
- // Define a custom header, that will be used to identify the plugin and the mailer.
- $this->XMailer = 'WPMailSMTP/Mailer/' . $mail_mailer . ' ' . WPMS_PLUGIN_VER;
-
- // Use the default PHPMailer, as we inject our settings there for certain providers.
- if (
- $mail_mailer === 'mail' ||
- $mail_mailer === 'smtp' ||
- $mail_mailer === 'pepipost'
- ) {
- try {
- // Allow to hook early to catch any early failed emails.
- do_action( 'wp_mail_smtp_mailcatcher_smtp_pre_send_before', $this );
-
- // Prepare all the headers.
- if ( ! $this->preSend() ) {
- return false;
- }
-
- // Allow to hook after all the preparation before the actual sending.
- do_action( 'wp_mail_smtp_mailcatcher_smtp_send_before', $this );
-
- return $this->postSend();
- } catch ( \phpmailerException $e ) {
- $this->mailHeader = '';
- $this->setError( $e->getMessage() );
-
- // Set the debug error, but not for default PHP mailer.
- if ( $mail_mailer !== 'mail' ) {
- Debug::set(
- 'Mailer: ' . esc_html( wp_mail_smtp()->get_providers()->get_options( $mail_mailer )->get_title() ) . PHP_EOL .
- $e->getMessage()
- );
- }
-
- if ( $this->exceptions ) {
- throw $e;
- }
-
- return false;
- }
- }
-
- // We need this so that the \PHPMailer class will correctly prepare all the headers.
- $this->Mailer = 'mail';
-
- // Prepare everything (including the message) for sending.
- if ( ! $this->preSend() ) {
- return false;
- }
-
- $mailer = wp_mail_smtp()->get_providers()->get_mailer( $mail_mailer, $this );
-
- if ( ! $mailer ) {
- return false;
- }
-
- if ( ! $mailer->is_php_compatible() ) {
- return false;
- }
-
- /*
- * Send the actual email.
- * We reuse everything, that was preprocessed for usage in \PHPMailer.
- */
- $mailer->send();
-
- $is_sent = $mailer->is_email_sent();
-
- // Allow to perform any actions with the data.
- do_action( 'wp_mail_smtp_mailcatcher_send_after', $mailer, $this );
-
- return $is_sent;
- }
-
- /**
- * Returns all custom headers.
- * In older versions of \PHPMailer class this method didn't exist.
- * As we support WordPress 3.6+ - we need to make sure this method is always present.
- *
- * @since 1.5.0
- *
- * @return array
- */
- public function getCustomHeaders() {
-
- return $this->CustomHeader;
- }
-
- /**
- * Get the PHPMailer line ending.
- *
- * @since 2.2.0
- *
- * @return string
- */
- public function get_line_ending() {
-
- return $this->LE; // phpcs:ignore
- }
-
- /**
- * Create a unique ID to use for multipart email boundaries.
- *
- * @since 2.4.0
- *
- * @return string
- */
- public function generate_id() {
-
- return $this->generateId();
- }
-}
diff --git a/wp-content/plugins/wp-mail-smtp/src/MailCatcherInterface.php b/wp-content/plugins/wp-mail-smtp/src/MailCatcherInterface.php
deleted file mode 100644
index b2fd531..0000000
--- a/wp-content/plugins/wp-mail-smtp/src/MailCatcherInterface.php
+++ /dev/null
@@ -1,42 +0,0 @@
-get( 'mail', 'mailer' ) );
-
- $is_emailing_blocked = false;
-
- if ( wp_mail_smtp()->is_blocked() ) {
- $is_emailing_blocked = true;
- }
-
- // Always allow a test email - check for the specific header.
- foreach ( (array) $this->getCustomHeaders() as $header ) {
- if (
- ! empty( $header[0] ) &&
- ! empty( $header[1] ) &&
- $header[0] === 'X-Mailer-Type' &&
- trim( $header[1] ) === 'WPMailSMTP/Admin/Test'
- ) {
- $is_emailing_blocked = false;
- }
- };
-
- // Do not send emails if admin desired that.
- if ( $is_emailing_blocked ) {
- return false;
- }
-
- // Define a custom header, that will be used to identify the plugin and the mailer.
- $this->XMailer = 'WPMailSMTP/Mailer/' . $mail_mailer . ' ' . WPMS_PLUGIN_VER; // phpcs:ignore
-
- // Use the default PHPMailer, as we inject our settings there for certain providers.
- if (
- $mail_mailer === 'mail' ||
- $mail_mailer === 'smtp' ||
- $mail_mailer === 'pepipost'
- ) {
- try {
- // Allow to hook early to catch any early failed emails.
- do_action( 'wp_mail_smtp_mailcatcher_smtp_pre_send_before', $this );
-
- // Prepare all the headers.
- if ( ! $this->preSend() ) {
- return false;
- }
-
- // Allow to hook after all the preparation before the actual sending.
- do_action( 'wp_mail_smtp_mailcatcher_smtp_send_before', $this );
-
- return $this->postSend();
- } catch ( \PHPMailer\PHPMailer\Exception $e ) {
- $this->mailHeader = ''; // phpcs:ignore
- $this->setError( $e->getMessage() );
-
- // Set the debug error, but not for default PHP mailer.
- if ( $mail_mailer !== 'mail' ) {
- Debug::set(
- 'Mailer: ' . esc_html( wp_mail_smtp()->get_providers()->get_options( $mail_mailer )->get_title() ) . PHP_EOL .
- $e->getMessage()
- );
- }
-
- if ( $this->exceptions ) {
- throw $e;
- }
-
- return false;
- }
- }
-
- // We need this so that the PHPMailer class will correctly prepare all the headers.
- $this->Mailer = 'mail'; // phpcs:ignore
-
- // Prepare everything (including the message) for sending.
- if ( ! $this->preSend() ) {
- return false;
- }
-
- $mailer = wp_mail_smtp()->get_providers()->get_mailer( $mail_mailer, $this );
-
- if ( ! $mailer ) {
- return false;
- }
-
- if ( ! $mailer->is_php_compatible() ) {
- return false;
- }
-
- /*
- * Send the actual email.
- * We reuse everything, that was preprocessed for usage in PHPMailer.
- */
- $mailer->send();
-
- $is_sent = $mailer->is_email_sent();
-
- // Allow to perform any actions with the data.
- do_action( 'wp_mail_smtp_mailcatcher_send_after', $mailer, $this );
-
- return $is_sent;
- }
-
- /**
- * Get the PHPMailer line ending.
- *
- * @since 2.2.0
- *
- * @return string
- */
- public function get_line_ending() {
-
- return static::$LE; // phpcs:ignore
- }
-
- /**
- * Create a unique ID to use for multipart email boundaries.
- *
- * @since 2.4.0
- *
- * @return string
- */
- public function generate_id() {
-
- return $this->generateId();
- }
-}
diff --git a/wp-content/plugins/wp-mail-smtp/src/Migration.php b/wp-content/plugins/wp-mail-smtp/src/Migration.php
deleted file mode 100644
index fc56e8e..0000000
--- a/wp-content/plugins/wp-mail-smtp/src/Migration.php
+++ /dev/null
@@ -1,401 +0,0 @@
-cur_ver = self::get_cur_version();
-
- $this->maybe_migrate();
- }
-
- /**
- * Static on purpose, to get current migration version without __construct() and validation.
- *
- * @since 2.1.0
- *
- * @return int
- */
- public static function get_cur_version() {
-
- return (int) get_option( self::OPTION_NAME, 0 );
- }
-
- /**
- * Run the migration if needed.
- *
- * @since 2.1.0
- */
- protected function maybe_migrate() {
-
- if ( ! is_admin() ) {
- return;
- }
-
- if ( version_compare( $this->cur_ver, self::VERSION, '<' ) ) {
- $this->run( self::VERSION );
- }
- }
-
- /**
- * Actual migration launcher.
- *
- * @since 2.1.0
- *
- * @param int $version The version of migration to run.
- */
- protected function run( $version ) {
-
- $function_version = (int) $version;
-
- if ( method_exists( $this, 'migrate_to_' . $function_version ) ) {
- $this->{'migrate_to_' . $function_version}();
- } else {
- $message = sprintf( /* translators: %1$s - WP Mail SMTP, %2$s - error message. */
- esc_html__( 'There was an error while upgrading the database. Please contact %1$s support with this information: %2$s.', 'wp-mail-smtp' ),
- 'WP Mail SMTP',
- 'migration from v' . self::get_cur_version() . ' to v' . self::VERSION . ' failed. Plugin version: v' . WPMS_PLUGIN_VER . '
'
- );
-
- WP::add_admin_notice( $message, WP::ADMIN_NOTICE_ERROR );
- }
- }
-
- /**
- * Update migration version in options table.
- *
- * @since 2.1.0
- *
- * @param int $version Migration version.
- */
- protected function update_db_ver( $version ) {
-
- if ( empty( $version ) ) {
- $version = self::VERSION;
- }
-
- // Autoload it, because this value is checked all the time
- // and no need to request it separately from all autoloaded options.
- update_option( self::OPTION_NAME, $version, true );
- }
-
- /**
- * Prevent running the same migration twice.
- * Run migration only when required.
- *
- * @since 2.1.0
- *
- * @param string $version The version of migration to check for potential execution.
- */
- protected function maybe_required_older_migrations( $version ) {
-
- if ( version_compare( $this->cur_ver, $version, '<' ) ) {
- $this->run( $version );
- }
- }
-
- /**
- * Migration from 0.x to 1.0.0.
- * Move separate plugin WP options to one main plugin WP option setting.
- *
- * @since 2.1.0
- */
- private function migrate_to_1() {
-
- if ( $this->is_migrated() ) {
- return;
- }
-
- $this->old_values = $this->get_old_values();
- $this->new_values = $this->get_converted_options();
-
- Options::init()->set( $this->new_values, true );
-
- $this->update_db_ver( 1 );
- }
-
- /**
- * Migration from 1.x to 2.1.0.
- * Create Tasks\Meta table, if it does not exist.
- *
- * @since 2.1.0
- */
- private function migrate_to_2() {
-
- $this->maybe_required_older_migrations( 1 );
-
- $meta = new Meta();
-
- // Create the table if it doesn't exist.
- if ( $meta && ! $meta->table_exists() ) {
- $meta->create_table();
- }
-
- $this->update_db_ver( 2 );
- }
-
- /**
- * Whether we already migrated or not.
- *
- * @since 1.0.0
- *
- * @return bool
- */
- protected function is_migrated() {
-
- $is_migrated = false;
- $new_values = get_option( Options::META_KEY, array() );
-
- if ( ! empty( $new_values ) ) {
- $is_migrated = true;
- }
-
- return $is_migrated;
- }
-
- /**
- * Get all old values from DB.
- *
- * @since 1.0.0
- *
- * @return array
- */
- protected function get_old_values() {
-
- $old_values = array();
-
- foreach ( $this->old_keys as $old_key ) {
- $value = get_option( $old_key, '' );
-
- if ( ! empty( $value ) ) {
- $old_values[ $old_key ] = $value;
- }
- }
-
- return $old_values;
- }
-
- /**
- * Convert old values from key=>value to a multidimensional array of data.
- *
- * @since 1.0.0
- */
- protected function get_converted_options() {
-
- $converted = array();
-
- foreach ( $this->old_keys as $old_key ) {
-
- $old_value = isset( $this->old_values[ $old_key ] ) ? $this->old_values[ $old_key ] : '';
-
- switch ( $old_key ) {
- case 'pepipost_user':
- case 'pepipost_pass':
- case 'pepipost_port':
- case 'pepipost_ssl':
- // Do not migrate pepipost options if it's not activated at the moment.
- if ( isset( $this->old_values['mailer'] ) && $this->old_values['mailer'] === 'pepipost' ) {
- $shortcut = explode( '_', $old_key );
-
- if ( $old_key === 'pepipost_ssl' ) {
- $converted[ $shortcut[0] ]['encryption'] = $old_value;
- } else {
- $converted[ $shortcut[0] ][ $shortcut[1] ] = $old_value;
- }
- }
- break;
-
- case 'smtp_host':
- case 'smtp_port':
- case 'smtp_ssl':
- case 'smtp_auth':
- case 'smtp_user':
- case 'smtp_pass':
- $shortcut = explode( '_', $old_key );
-
- if ( $old_key === 'smtp_ssl' ) {
- $converted[ $shortcut[0] ]['encryption'] = $old_value;
- } elseif ( $old_key === 'smtp_auth' ) {
- $converted[ $shortcut[0] ][ $shortcut[1] ] = ( $old_value === 'true' ? 'yes' : 'no' );
- } else {
- $converted[ $shortcut[0] ][ $shortcut[1] ] = $old_value;
- }
-
- break;
-
- case 'mail_from':
- $converted['mail']['from_email'] = $old_value;
- break;
- case 'mail_from_name':
- $converted['mail']['from_name'] = $old_value;
- break;
- case 'mail_set_return_path':
- $converted['mail']['return_path'] = ( $old_value === 'true' );
- break;
- case 'mailer':
- $converted['mail']['mailer'] = ! empty( $old_value ) ? $old_value : 'mail';
- break;
- case 'wp_mail_smtp_am_notifications_hidden':
- $converted['general']['am_notifications_hidden'] = ( isset( $old_value ) && $old_value === 'true' );
- break;
- }
- }
-
- $converted = $this->get_converted_constants_options( $converted );
-
- return $converted;
- }
-
- /**
- * Some users use constants in wp-config.php to define values.
- * We need to prioritize them and reapply data to options.
- * Use only those that are actually defined.
- *
- * @since 1.0.0
- *
- * @param array $converted
- *
- * @return array
- */
- protected function get_converted_constants_options( $converted ) {
-
- // Are we configured via constants?
- if ( ! defined( 'WPMS_ON' ) || ! WPMS_ON ) {
- return $converted;
- }
-
- /*
- * Mail settings.
- */
- if ( defined( 'WPMS_MAIL_FROM' ) ) {
- $converted['mail']['from_email'] = WPMS_MAIL_FROM;
- }
- if ( defined( 'WPMS_MAIL_FROM_NAME' ) ) {
- $converted['mail']['from_name'] = WPMS_MAIL_FROM_NAME;
- }
- if ( defined( 'WPMS_MAILER' ) ) {
- $converted['mail']['mailer'] = WPMS_MAILER;
- }
- if ( defined( 'WPMS_SET_RETURN_PATH' ) ) {
- $converted['mail']['return_path'] = WPMS_SET_RETURN_PATH;
- }
-
- /*
- * SMTP settings.
- */
- if ( defined( 'WPMS_SMTP_HOST' ) ) {
- $converted['smtp']['host'] = WPMS_SMTP_HOST;
- }
- if ( defined( 'WPMS_SMTP_PORT' ) ) {
- $converted['smtp']['port'] = WPMS_SMTP_PORT;
- }
- if ( defined( 'WPMS_SSL' ) ) {
- $converted['smtp']['ssl'] = WPMS_SSL;
- }
- if ( defined( 'WPMS_SMTP_AUTH' ) ) {
- $converted['smtp']['auth'] = WPMS_SMTP_AUTH;
- }
- if ( defined( 'WPMS_SMTP_USER' ) ) {
- $converted['smtp']['user'] = WPMS_SMTP_USER;
- }
- if ( defined( 'WPMS_SMTP_PASS' ) ) {
- $converted['smtp']['pass'] = WPMS_SMTP_PASS;
- }
-
- return $converted;
- }
-
- /**
- * Delete all old values that are stored separately each.
- *
- * @since 1.0.0
- */
- protected function clean_deprecated_data() {
-
- foreach ( $this->old_keys as $old_key ) {
- delete_option( $old_key );
- }
- }
-}
diff --git a/wp-content/plugins/wp-mail-smtp/src/Options.php b/wp-content/plugins/wp-mail-smtp/src/Options.php
deleted file mode 100644
index f55a676..0000000
--- a/wp-content/plugins/wp-mail-smtp/src/Options.php
+++ /dev/null
@@ -1,1124 +0,0 @@
- [
- 'from_name',
- 'from_email',
- 'mailer',
- 'return_path',
- 'from_name_force',
- 'from_email_force',
- ],
- 'smtp' => [
- 'host',
- 'port',
- 'encryption',
- 'autotls',
- 'auth',
- 'user',
- 'pass',
- ],
- 'gmail' => [
- 'client_id',
- 'client_secret',
- ],
- 'outlook' => [
- 'client_id',
- 'client_secret',
- ],
- 'zoho' => [
- 'domain',
- 'client_id',
- 'client_secret',
- ],
- 'amazonses' => [
- 'client_id',
- 'client_secret',
- 'region',
- ],
- 'mailgun' => [
- 'api_key',
- 'domain',
- 'region',
- ],
- 'sendgrid' => [
- 'api_key',
- ],
- 'smtpcom' => [
- 'api_key',
- 'channel',
- ],
- 'sendinblue' => [
- 'api_key',
- ],
- 'pepipostapi' => [
- 'api_key',
- ],
- 'pepipost' => [
- 'host',
- 'port',
- 'encryption',
- 'auth',
- 'user',
- 'pass',
- ],
- 'license' => [
- 'key',
- ],
- ];
-
- /**
- * That's where plugin options are saved in wp_options table.
- *
- * @since 1.0.0
- *
- * @var string
- */
- const META_KEY = 'wp_mail_smtp';
-
- /**
- * All the plugin options.
- *
- * @since 1.0.0
- *
- * @var array
- */
- private $_options = array();
-
- /**
- * Init the Options class.
- * TODO: add a flag to process without retrieving const values.
- *
- * @since 1.0.0
- */
- public function __construct() {
- $this->populate_options();
- }
-
- /**
- * Initialize all the options, used for chaining.
- *
- * One-liner:
- * Options::init()->get('smtp', 'host');
- * Options::init()->is_mailer_active( 'pepipost' );
- *
- * Or multiple-usage:
- * $options = new Options();
- * $options->get('smtp', 'host');
- *
- * @since 1.0.0
- *
- * @return Options
- */
- public static function init() {
-
- static $instance;
-
- if ( ! $instance ) {
- $instance = new self();
- }
-
- return $instance;
- }
-
- /**
- * Default options that are saved on plugin activation.
- *
- * @since 1.3.0
- * @since 2.1.0 Set the Force from email to "on" by default.
- *
- * @return array
- */
- public static function get_defaults() {
-
- return array(
- 'mail' => array(
- 'from_email' => get_option( 'admin_email' ),
- 'from_name' => get_bloginfo( 'name' ),
- 'mailer' => 'mail',
- 'return_path' => false,
- 'from_email_force' => true,
- 'from_name_force' => false,
- ),
- 'smtp' => array(
- 'autotls' => true,
- 'auth' => true,
- ),
- );
- }
-
- /**
- * Retrieve all options of the plugin.
- *
- * @since 1.0.0
- * @since 2.2.0 Added the filter.
- */
- protected function populate_options() {
-
- $this->_options = apply_filters( 'wp_mail_smtp_populate_options', get_option( self::META_KEY, [] ) );
- }
-
- /**
- * Get all the options.
- *
- * Options::init()->get_all();
- *
- * @since 1.0.0
- *
- * @return array
- */
- public function get_all() {
-
- $options = $this->_options;
-
- foreach ( $options as $group => $g_value ) {
- foreach ( $g_value as $key => $value ) {
- $options[ $group ][ $key ] = $this->get( $group, $key );
- }
- }
-
- return apply_filters( 'wp_mail_smtp_options_get_all', $options );
- }
-
- /**
- * Get all the options for a group.
- *
- * Options::init()->get_group('smtp') - will return the array of options for the group, including defaults and constants.
- *
- * @since 1.0.0
- * @since 1.5.0 Process values through the get() method which is aware of constants.
- *
- * @param string $group
- *
- * @return array
- */
- public function get_group( $group ) {
-
- // Just to feel safe.
- $group = sanitize_key( $group );
-
- /*
- * Get the values saved in DB.
- * If plugin is configured with constants right from the start - this will not have all the values.
- */
- $options = isset( $this->_options[ $group ] ) ? $this->_options[ $group ] : array();
-
- // We need to process certain constants-aware options through actual constants.
- if ( isset( self::$map[ $group ] ) ) {
- foreach ( self::$map[ $group ] as $key ) {
- $options[ $key ] = $this->get( $group, $key );
- }
- }
-
- return apply_filters( 'wp_mail_smtp_options_get_group', $options, $group );
- }
-
- /**
- * Get options by a group and a key.
- *
- * Options::init()->get( 'smtp', 'host' ) - will return only SMTP 'host' option.
- *
- * @since 1.0.0
- * @since 2.5.0 Added $strip_slashes method parameter.
- *
- * @param string $group The option group.
- * @param string $key The option key.
- * @param bool $strip_slashes If the slashes should be stripped from string values.
- *
- * @return mixed|null Null if value doesn't exist anywhere: in constants, in DB, in a map. So it's completely custom or a typo.
- */
- public function get( $group, $key, $strip_slashes = true ) {
-
- // Just to feel safe.
- $group = sanitize_key( $group );
- $key = sanitize_key( $key );
- $value = null;
-
- // Get the const value if we have one.
- $value = $this->get_const_value( $group, $key, $value );
-
- // We don't have a const value.
- if ( $value === null ) {
- // Ordinary database or default values.
- if ( isset( $this->_options[ $group ] ) ) {
- // Get the options key of a group.
- if ( isset( $this->_options[ $group ][ $key ] ) ) {
- $value = $this->get_existing_option_value( $group, $key );
- } else {
- $value = $this->postprocess_key_defaults( $group, $key );
- }
- } else {
- /*
- * Fallback to default if it doesn't exist in a map.
- * Allow to retrieve only values from a map.
- */
- if (
- isset( self::$map[ $group ] ) &&
- in_array( $key, self::$map[ $group ], true )
- ) {
- $value = $this->postprocess_key_defaults( $group, $key );
- }
- }
- }
-
- // Conditionally strip slashes only from values saved in DB. Constants should be processed as is.
- if ( $strip_slashes && is_string( $value ) && ! $this->is_const_defined( $group, $key ) ) {
- $value = stripslashes( $value );
- }
-
- return apply_filters( 'wp_mail_smtp_options_get', $value, $group, $key );
- }
-
- /**
- * Get the existing cached option value.
- *
- * @since 2.5.0
- *
- * @param string $group The options group.
- * @param string $key The options key.
- *
- * @return mixed
- */
- private function get_existing_option_value( $group, $key ) {
-
- if ( $group === 'smtp' && $key === 'pass' ) {
- try {
- return Crypto::decrypt( $this->_options[ $group ][ $key ] );
- } catch ( \Exception $e ) {
- return $this->_options[ $group ][ $key ];
- }
- }
-
- return $this->_options[ $group ][ $key ];
- }
-
- /**
- * Some options may be non-empty by default,
- * so we need to postprocess them to convert.
- *
- * @since 1.0.0
- * @since 1.4.0 Added Mailgun:region.
- * @since 1.5.0 Added Outlook/AmazonSES, license key support.
- *
- * @param string $group
- * @param string $key
- *
- * @return mixed
- */
- protected function postprocess_key_defaults( $group, $key ) {
-
- $value = '';
-
- switch ( $key ) {
- case 'from_email_force':
- case 'from_name_force':
- case 'return_path':
- $value = $group === 'mail' ? false : true;
- break;
-
- case 'mailer':
- $value = 'mail';
- break;
-
- case 'encryption':
- $value = in_array( $group, array( 'smtp', 'pepipost' ), true ) ? 'none' : $value;
- break;
-
- case 'region':
- $value = $group === 'mailgun' ? 'US' : $value;
- break;
-
- case 'auth':
- case 'autotls':
- $value = in_array( $group, array( 'smtp', 'pepipost' ), true ) ? false : true;
- break;
-
- case 'pass':
- $value = $this->get_const_value( $group, $key, $value );
- break;
-
- case 'type':
- $value = $group === 'license' ? 'lite' : '';
- break;
- }
-
- return apply_filters( 'wp_mail_smtp_options_postprocess_key_defaults', $value, $group, $key );
- }
-
- /**
- * Process the options values through the constants check.
- * If we have defined associated constant - use it instead of a DB value.
- * Backward compatibility is hard.
- * General section of options won't have constants, so we are omitting those checks and just return default value.
- *
- * @since 1.0.0
- * @since 1.4.0 Added WPMS_MAILGUN_REGION.
- * @since 1.5.0 Added Outlook/AmazonSES, license key support.
- * @since 1.6.0 Added Sendinblue.
- * @since 1.7.0 Added Do Not Send.
- * @since 1.8.0 Added Pepipost API.
- *
- * @param string $group
- * @param string $key
- * @param mixed $value
- *
- * @return mixed
- */
- protected function get_const_value( $group, $key, $value ) {
-
- if ( ! $this->is_const_enabled() ) {
- return $value;
- }
-
- $return = null;
-
- switch ( $group ) {
- case 'mail':
- switch ( $key ) {
- case 'from_name':
- /** @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? WPMS_MAIL_FROM_NAME : $value;
- break;
- case 'from_email':
- /** @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? WPMS_MAIL_FROM : $value;
- break;
- case 'mailer':
- /** @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? WPMS_MAILER : $value;
- break;
- case 'return_path':
- /** @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? WPMS_SET_RETURN_PATH : $value;
- break;
- case 'from_name_force':
- /** @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? WPMS_MAIL_FROM_NAME_FORCE : $value;
- break;
- case 'from_email_force':
- /** @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? WPMS_MAIL_FROM_FORCE : $value;
- break;
- }
-
- break;
-
- case 'smtp':
- switch ( $key ) {
- case 'host':
- /** @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? WPMS_SMTP_HOST : $value;
- break;
- case 'port':
- /** @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? WPMS_SMTP_PORT : $value;
- break;
- case 'encryption':
- /** @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? ( WPMS_SSL === '' ? 'none' : WPMS_SSL ) : $value;
- break;
- case 'auth':
- /** @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? (bool) WPMS_SMTP_AUTH : $value;
- break;
- case 'autotls':
- /** @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? (bool) WPMS_SMTP_AUTOTLS : $value;
- break;
- case 'user':
- /** @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? WPMS_SMTP_USER : $value;
- break;
- case 'pass':
- /** @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? WPMS_SMTP_PASS : $value;
- break;
- }
-
- break;
-
- case 'gmail':
- switch ( $key ) {
- case 'client_id':
- /** @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? WPMS_GMAIL_CLIENT_ID : $value;
- break;
- case 'client_secret':
- /** @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? WPMS_GMAIL_CLIENT_SECRET : $value;
- break;
- }
-
- break;
-
- case 'outlook':
- switch ( $key ) {
- case 'client_id':
- /** @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? WPMS_OUTLOOK_CLIENT_ID : $value;
- break;
- case 'client_secret':
- /** @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? WPMS_OUTLOOK_CLIENT_SECRET : $value;
- break;
- }
-
- break;
-
- case 'zoho':
- switch ( $key ) {
- case 'domain':
- /** No inspection comment @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? WPMS_ZOHO_DOMAIN : $value;
- break;
- case 'client_id':
- /** No inspection comment @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? WPMS_ZOHO_CLIENT_ID : $value;
- break;
- case 'client_secret':
- /** No inspection comment @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? WPMS_ZOHO_CLIENT_SECRET : $value;
- break;
- }
-
- break;
-
- case 'amazonses':
- switch ( $key ) {
- case 'client_id':
- /** @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? WPMS_AMAZONSES_CLIENT_ID : $value;
- break;
- case 'client_secret':
- /** @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? WPMS_AMAZONSES_CLIENT_SECRET : $value;
- break;
- case 'region':
- /** @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? WPMS_AMAZONSES_REGION : $value;
- break;
- }
-
- break;
-
- case 'mailgun':
- switch ( $key ) {
- case 'api_key':
- /** @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? WPMS_MAILGUN_API_KEY : $value;
- break;
- case 'domain':
- /** @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? WPMS_MAILGUN_DOMAIN : $value;
- break;
- case 'region':
- /** @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? WPMS_MAILGUN_REGION : $value;
- break;
- }
-
- break;
-
- case 'sendgrid':
- switch ( $key ) {
- case 'api_key':
- /** @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? WPMS_SENDGRID_API_KEY : $value;
- break;
- }
-
- break;
-
- case 'smtpcom':
- switch ( $key ) {
- case 'api_key':
- /** @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? WPMS_SMTPCOM_API_KEY : $value;
- break;
- case 'channel':
- /** @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? WPMS_SMTPCOM_CHANNEL : $value;
- break;
- }
-
- break;
-
- case 'sendinblue':
- switch ( $key ) {
- case 'api_key':
- /** @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? WPMS_SENDINBLUE_API_KEY : $value;
- break;
- }
-
- break;
-
- case 'pepipostapi':
- switch ( $key ) {
- case 'api_key':
- /** @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? WPMS_PEPIPOST_API_KEY : $value;
- break;
- }
-
- break;
-
- case 'license':
- switch ( $key ) {
- case 'key':
- /** @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? WPMS_LICENSE_KEY : $value;
- break;
- }
-
- break;
-
- case 'general':
- switch ( $key ) {
- case 'do_not_send':
- /** @noinspection PhpUndefinedConstantInspection */
- $return = $this->is_const_defined( $group, $key ) ? WPMS_DO_NOT_SEND : $value;
- break;
- }
-
- break;
-
- default:
- // Always return the default value if nothing from above matches the request.
- $return = $value;
- }
-
- return apply_filters( 'wp_mail_smtp_options_get_const_value', $return, $group, $key, $value );
- }
-
- /**
- * Whether constants redefinition is enabled or not.
- *
- * @since 1.0.0
- * @since 1.5.0 Added filter to redefine the value.
- *
- * @return bool
- */
- public function is_const_enabled() {
-
- $return = defined( 'WPMS_ON' ) && WPMS_ON === true;
-
- return apply_filters( 'wp_mail_smtp_options_is_const_enabled', $return );
- }
-
- /**
- * We need this check to reuse later in admin area,
- * to distinguish settings fields that were redefined,
- * and display them differently.
- *
- * @since 1.0.0
- * @since 1.5.0 Added a filter, Outlook/AmazonSES, license key support.
- * @since 1.6.0 Added Sendinblue.
- * @since 1.7.0 Added Do Not Send.
- * @since 1.8.0 Added Pepipost API.
- *
- * @param string $group
- * @param string $key
- *
- * @return bool
- */
- public function is_const_defined( $group, $key ) {
-
- if ( ! $this->is_const_enabled() ) {
- return false;
- }
-
- // Just to feel safe.
- $group = sanitize_key( $group );
- $key = sanitize_key( $key );
- $return = false;
-
- switch ( $group ) {
- case 'mail':
- switch ( $key ) {
- case 'from_name':
- $return = defined( 'WPMS_MAIL_FROM_NAME' ) && WPMS_MAIL_FROM_NAME;
- break;
- case 'from_email':
- $return = defined( 'WPMS_MAIL_FROM' ) && WPMS_MAIL_FROM;
- break;
- case 'mailer':
- $return = defined( 'WPMS_MAILER' ) && WPMS_MAILER;
- break;
- case 'return_path':
- $return = defined( 'WPMS_SET_RETURN_PATH' ) && ( WPMS_SET_RETURN_PATH === 'true' || WPMS_SET_RETURN_PATH === true );
- break;
- case 'from_name_force':
- $return = defined( 'WPMS_MAIL_FROM_NAME_FORCE' ) && ( WPMS_MAIL_FROM_NAME_FORCE === 'true' || WPMS_MAIL_FROM_NAME_FORCE === true );
- break;
- case 'from_email_force':
- $return = defined( 'WPMS_MAIL_FROM_FORCE' ) && ( WPMS_MAIL_FROM_FORCE === 'true' || WPMS_MAIL_FROM_FORCE === true );
- break;
- }
-
- break;
-
- case 'smtp':
- switch ( $key ) {
- case 'host':
- $return = defined( 'WPMS_SMTP_HOST' ) && WPMS_SMTP_HOST;
- break;
- case 'port':
- $return = defined( 'WPMS_SMTP_PORT' ) && WPMS_SMTP_PORT;
- break;
- case 'encryption':
- $return = defined( 'WPMS_SSL' );
- break;
- case 'auth':
- $return = defined( 'WPMS_SMTP_AUTH' );
- break;
- case 'autotls':
- $return = defined( 'WPMS_SMTP_AUTOTLS' );
- break;
- case 'user':
- $return = defined( 'WPMS_SMTP_USER' ) && WPMS_SMTP_USER;
- break;
- case 'pass':
- $return = defined( 'WPMS_SMTP_PASS' ) && WPMS_SMTP_PASS;
- break;
- }
-
- break;
-
- case 'gmail':
- switch ( $key ) {
- case 'client_id':
- $return = defined( 'WPMS_GMAIL_CLIENT_ID' ) && WPMS_GMAIL_CLIENT_ID;
- break;
- case 'client_secret':
- $return = defined( 'WPMS_GMAIL_CLIENT_SECRET' ) && WPMS_GMAIL_CLIENT_SECRET;
- break;
- }
-
- break;
-
- case 'outlook':
- switch ( $key ) {
- case 'client_id':
- $return = defined( 'WPMS_OUTLOOK_CLIENT_ID' ) && WPMS_OUTLOOK_CLIENT_ID;
- break;
- case 'client_secret':
- $return = defined( 'WPMS_OUTLOOK_CLIENT_SECRET' ) && WPMS_OUTLOOK_CLIENT_SECRET;
- break;
- }
-
- break;
-
- case 'zoho':
- switch ( $key ) {
- case 'domain':
- $return = defined( 'WPMS_ZOHO_DOMAIN' ) && WPMS_ZOHO_DOMAIN;
- break;
- case 'client_id':
- $return = defined( 'WPMS_ZOHO_CLIENT_ID' ) && WPMS_ZOHO_CLIENT_ID;
- break;
- case 'client_secret':
- $return = defined( 'WPMS_ZOHO_CLIENT_SECRET' ) && WPMS_ZOHO_CLIENT_SECRET;
- break;
- }
-
- break;
-
- case 'amazonses':
- switch ( $key ) {
- case 'client_id':
- $return = defined( 'WPMS_AMAZONSES_CLIENT_ID' ) && WPMS_AMAZONSES_CLIENT_ID;
- break;
- case 'client_secret':
- $return = defined( 'WPMS_AMAZONSES_CLIENT_SECRET' ) && WPMS_AMAZONSES_CLIENT_SECRET;
- break;
- case 'region':
- $return = defined( 'WPMS_AMAZONSES_REGION' ) && WPMS_AMAZONSES_REGION;
- break;
- }
-
- break;
-
- case 'mailgun':
- switch ( $key ) {
- case 'api_key':
- $return = defined( 'WPMS_MAILGUN_API_KEY' ) && WPMS_MAILGUN_API_KEY;
- break;
- case 'domain':
- $return = defined( 'WPMS_MAILGUN_DOMAIN' ) && WPMS_MAILGUN_DOMAIN;
- break;
- case 'region':
- $return = defined( 'WPMS_MAILGUN_REGION' ) && WPMS_MAILGUN_REGION;
- break;
- }
-
- break;
-
- case 'sendgrid':
- switch ( $key ) {
- case 'api_key':
- $return = defined( 'WPMS_SENDGRID_API_KEY' ) && WPMS_SENDGRID_API_KEY;
- break;
- }
-
- break;
-
- case 'smtpcom':
- switch ( $key ) {
- case 'api_key':
- $return = defined( 'WPMS_SMTPCOM_API_KEY' ) && WPMS_SMTPCOM_API_KEY;
- break;
- case 'channel':
- $return = defined( 'WPMS_SMTPCOM_CHANNEL' ) && WPMS_SMTPCOM_CHANNEL;
- break;
- }
-
- break;
-
- case 'sendinblue':
- switch ( $key ) {
- case 'api_key':
- $return = defined( 'WPMS_SENDINBLUE_API_KEY' ) && WPMS_SENDINBLUE_API_KEY;
- break;
- }
-
- break;
-
- case 'pepipostapi':
- switch ( $key ) {
- case 'api_key':
- $return = defined( 'WPMS_PEPIPOST_API_KEY' ) && WPMS_PEPIPOST_API_KEY;
- break;
- }
-
- break;
-
- case 'license':
- switch ( $key ) {
- case 'key':
- $return = defined( 'WPMS_LICENSE_KEY' ) && WPMS_LICENSE_KEY;
- break;
- }
-
- break;
-
- case 'general':
- switch ( $key ) {
- case 'do_not_send':
- /** @noinspection PhpUndefinedConstantInspection */
- $return = defined( 'WPMS_DO_NOT_SEND' ) && WPMS_DO_NOT_SEND;
- break;
- }
-
- break;
- }
-
- return apply_filters( 'wp_mail_smtp_options_is_const_defined', $return, $group, $key );
- }
-
- /**
- * Set plugin options, all at once.
- *
- * @since 1.0.0
- * @since 1.3.0 Added $once argument to save options only if they don't exist already.
- * @since 1.4.0 Added Mailgun:region.
- * @since 1.5.0 Added Outlook/AmazonSES, Email Log. Stop saving const values into DB.
- * @since 2.5.0 Added $overwrite_existing method parameter.
- *
- * @param array $options Plugin options to save.
- * @param bool $once Whether to update existing options or to add these options only once.
- * @param bool $overwrite_existing Whether to overwrite existing settings or merge these passed options with existing ones.
- */
- public function set( $options, $once = false, $overwrite_existing = true ) {
-
- // Merge existing settings with new values.
- if ( ! $overwrite_existing ) {
- $options = self::array_merge_recursive( $this->get_all_raw(), $options );
- }
-
- $options = $this->process_generic_options( $options );
- $options = $this->process_mailer_specific_options( $options );
- $options = apply_filters( 'wp_mail_smtp_options_set', $options );
-
- // Whether to update existing options or to add these options only once if they don't exist yet.
- if ( $once ) {
- add_option( self::META_KEY, $options, '', 'no' ); // Do not autoload these options.
- } else {
- update_option( self::META_KEY, $options, 'no' );
- }
-
- // Now we need to re-cache values.
- $this->populate_options();
-
- do_action( 'wp_mail_smtp_options_set_after', $options );
- }
-
- /**
- * Process the generic plugin options.
- *
- * @since 2.5.0
- *
- * @param array $options The options array.
- *
- * @return array
- */
- private function process_generic_options( $options ) { // phpcs:ignore
-
- foreach ( (array) $options as $group => $keys ) {
- foreach ( $keys as $option_name => $option_value ) {
- switch ( $group ) {
- case 'mail':
- switch ( $option_name ) {
- case 'from_name':
- case 'mailer':
- $options[ $group ][ $option_name ] = sanitize_text_field( $option_value );
- break;
- case 'from_email':
- if ( filter_var( $option_value, FILTER_VALIDATE_EMAIL ) ) {
- $options[ $group ][ $option_name ] = sanitize_email( $option_value );
- } else {
- $options[ $group ][ $option_name ] = sanitize_email(
- wp_mail_smtp()->get_processor()->get_default_email()
- );
- }
- break;
- case 'return_path':
- case 'from_name_force':
- case 'from_email_force':
- $options[ $group ][ $option_name ] = (bool) $option_value;
- break;
- }
- break;
-
- case 'general':
- switch ( $option_name ) {
- case 'do_not_send':
- case 'am_notifications_hidden':
- case 'email_delivery_errors_hidden':
- case 'uninstall':
- case UsageTracking::SETTINGS_SLUG:
- $options[ $group ][ $option_name ] = (bool) $option_value;
- break;
- }
- }
- }
- }
-
- return $options;
- }
-
- /**
- * Process mailers-specific plugin options.
- *
- * @since 2.5.0
- *
- * @param array $options The options array.
- *
- * @return array
- */
- private function process_mailer_specific_options( $options ) { // phpcs:ignore
-
- if (
- ! empty( $options['mail']['mailer'] ) &&
- isset( $options[ $options['mail']['mailer'] ] ) &&
- in_array( $options['mail']['mailer'], [ 'pepipost', 'pepipostapi', 'smtp', 'sendgrid', 'smtpcom', 'sendinblue', 'mailgun', 'gmail', 'outlook', 'zoho' ], true )
- ) {
-
- $mailer = $options['mail']['mailer'];
-
- foreach ( $options[ $mailer ] as $option_name => $option_value ) {
- switch ( $option_name ) {
- case 'host': // smtp.
- case 'user': // smtp.
- case 'encryption': // smtp.
- case 'region': // mailgun/amazonses.
- $options[ $mailer ][ $option_name ] = $this->is_const_defined( $mailer, $option_name ) ? '' : sanitize_text_field( $option_value );
- break; // smtp.
- case 'port':
- $options[ $mailer ][ $option_name ] = $this->is_const_defined( $mailer, $option_name ) ? 25 : (int) $option_value;
- break;
- case 'auth': // smtp.
- case 'autotls': // smtp.
- $option_value = (bool) $option_value;
-
- $options[ $mailer ][ $option_name ] = $this->is_const_defined( $mailer, $option_name ) ? false : $option_value;
- break;
-
- case 'pass': // smtp.
- // Do not process as they may contain certain special characters, but allow to be overwritten using constants.
- $option_value = trim( (string) $option_value );
- $options[ $mailer ][ $option_name ] = $this->is_const_defined( $mailer, $option_name ) ? '' : $option_value;
-
- if ( $mailer === 'smtp' && ! $this->is_const_defined( 'smtp', 'pass' ) ) {
- try {
- $options[ $mailer ][ $option_name ] = Crypto::encrypt( $option_value );
- } catch ( \Exception $e ) {} // phpcs:ignore
- }
- break;
-
- case 'api_key': // mailgun/sendgrid/sendinblue/pepipostapi/smtpcom.
- case 'domain': // mailgun/zoho.
- case 'client_id': // gmail/outlook/amazonses/zoho.
- case 'client_secret': // gmail/outlook/amazonses/zoho.
- case 'auth_code': // gmail/outlook.
- case 'channel': // smtpcom.
- $options[ $mailer ][ $option_name ] = $this->is_const_defined( $mailer, $option_name ) ? '' : sanitize_text_field( $option_value );
- break;
-
- case 'access_token': // gmail/outlook/zoho, is an array.
- case 'user_details': // outlook/zoho, is an array.
- // These options don't support constants.
- $options[ $mailer ][ $option_name ] = $option_value;
- break;
- }
- }
- }
-
- return $options;
- }
-
- /**
- * Merge recursively, including a proper substitution of values in sub-arrays when keys are the same.
- * It's more like array_merge() and array_merge_recursive() combined.
- *
- * @since 1.0.0
- *
- * @return array
- */
- public static function array_merge_recursive() {
-
- $arrays = func_get_args();
-
- if ( count( $arrays ) < 2 ) {
- return isset( $arrays[0] ) ? $arrays[0] : array();
- }
-
- $merged = array();
-
- while ( $arrays ) {
- $array = array_shift( $arrays );
-
- if ( ! is_array( $array ) ) {
- return array();
- }
-
- if ( empty( $array ) ) {
- continue;
- }
-
- foreach ( $array as $key => $value ) {
- if ( is_string( $key ) ) {
- if (
- is_array( $value ) &&
- array_key_exists( $key, $merged ) &&
- is_array( $merged[ $key ] )
- ) {
- $merged[ $key ] = call_user_func( __METHOD__, $merged[ $key ], $value );
- } else {
- $merged[ $key ] = $value;
- }
- } else {
- $merged[] = $value;
- }
- }
- }
-
- return $merged;
- }
-
- /**
- * Check whether the site is using Pepipost SMTP or not.
- *
- * @deprecated 2.4.0
- *
- * @since 1.0.0
- *
- * @return bool
- */
- public function is_pepipost_active() {
-
- _deprecated_function(
- __METHOD__,
- '2.4.0',
- 'WPMailSMTP\Options::is_mailer_active()'
- );
-
- return apply_filters( 'wp_mail_smtp_options_is_pepipost_active', $this->is_mailer_active( 'pepipost' ) );
- }
-
- /**
- * Check whether the site is using provided mailer or not.
- *
- * @since 2.3.0
- *
- * @param string $mailer The mailer slug.
- *
- * @return bool
- */
- public function is_mailer_active( $mailer ) {
-
- $mailer = sanitize_key( $mailer );
-
- return apply_filters(
- "wp_mail_smtp_options_is_mailer_active_{$mailer}",
- $this->get( 'mail', 'mailer' ) === $mailer
- );
- }
-
- /**
- * Check whether the site is using Pepipost/SMTP as a mailer or not.
- *
- * @since 1.1.0
- *
- * @return bool
- */
- public function is_mailer_smtp() {
- return apply_filters( 'wp_mail_smtp_options_is_mailer_smtp', in_array( $this->get( 'mail', 'mailer' ), array( 'pepipost', 'smtp' ), true ) );
- }
-
- /**
- * Get all the options, but without stripping the slashes.
- *
- * @since 2.5.0
- *
- * @return array
- */
- public function get_all_raw() {
-
- $options = $this->_options;
-
- foreach ( $options as $group => $g_value ) {
- foreach ( $g_value as $key => $value ) {
- $options[ $group ][ $key ] = $this->get( $group, $key, false );
- }
- }
-
- return $options;
- }
-}
diff --git a/wp-content/plugins/wp-mail-smtp/src/Processor.php b/wp-content/plugins/wp-mail-smtp/src/Processor.php
deleted file mode 100644
index adec2fd..0000000
--- a/wp-content/plugins/wp-mail-smtp/src/Processor.php
+++ /dev/null
@@ -1,336 +0,0 @@
-get( 'mail', 'mailer' );
-
- // Check that mailer is not blank, and if mailer=smtp, host is not blank.
- if (
- ! $mailer ||
- ( 'smtp' === $mailer && ! $options->get( 'smtp', 'host' ) )
- ) {
- return;
- }
-
- // If the mailer is pepipost, make sure we have a username and password.
- if (
- 'pepipost' === $mailer &&
- ( ! $options->get( 'pepipost', 'user' ) && ! $options->get( 'pepipost', 'pass' ) )
- ) {
- return;
- }
-
- // Set the mailer type as per config above, this overrides the already called isMail method.
- // It's basically always 'smtp'.
- $phpmailer->Mailer = $mailer;
-
- // Set the Sender (return-path) if required.
- if ( $options->get( 'mail', 'return_path' ) ) {
- $phpmailer->Sender = $phpmailer->From;
- }
-
- // Set the SMTPSecure value, if set to none, leave this blank. Possible values: 'ssl', 'tls', ''.
- if ( 'none' === $options->get( $mailer, 'encryption' ) ) {
- $phpmailer->SMTPSecure = '';
- } else {
- $phpmailer->SMTPSecure = $options->get( $mailer, 'encryption' );
- }
-
- // Check if user has disabled SMTPAutoTLS.
- if ( $options->get( $mailer, 'encryption' ) !== 'tls' && ! $options->get( $mailer, 'autotls' ) ) {
- $phpmailer->SMTPAutoTLS = false;
- }
-
- // Check if original WP from email can be set as the reply_to attribute.
- if ( $this->allow_setting_original_from_email_to_reply_to( $phpmailer->getReplyToAddresses(), $mailer ) ) {
- $phpmailer->addReplyTo( $this->wp_mail_from );
- }
-
- // If we're sending via SMTP, set the host.
- if ( 'smtp' === $mailer ) {
- // Set the other options.
- $phpmailer->Host = $options->get( $mailer, 'host' );
- $phpmailer->Port = $options->get( $mailer, 'port' );
-
- // If we're using smtp auth, set the username & password.
- if ( $options->get( $mailer, 'auth' ) ) {
- $phpmailer->SMTPAuth = true;
- $phpmailer->Username = $options->get( $mailer, 'user' );
- $phpmailer->Password = $options->get( $mailer, 'pass' );
- }
- } elseif ( 'pepipost' === $mailer ) {
- // Set the Pepipost settings for BC.
- $phpmailer->Mailer = 'smtp';
- $phpmailer->Host = 'smtp.pepipost.com';
- $phpmailer->Port = $options->get( $mailer, 'port' );
- $phpmailer->SMTPSecure = $options->get( $mailer, 'encryption' ) === 'none' ? '' : $options->get( $mailer, 'encryption' );
- $phpmailer->SMTPAuth = true;
- $phpmailer->Username = $options->get( $mailer, 'user' );
- $phpmailer->Password = $options->get( $mailer, 'pass' );
- }
-
- // Maybe set default reply-to header.
- $this->set_default_reply_to( $phpmailer );
-
- // You can add your own options here.
- // See the phpmailer documentation for more info: https://github.com/PHPMailer/PHPMailer/tree/5.2-stable.
- /** @noinspection PhpUnusedLocalVariableInspection It's passed by reference. */
- $phpmailer = apply_filters( 'wp_mail_smtp_custom_options', $phpmailer );
- }
-
- /**
- * Check if it's allowed to set the original WP from email to the reply_to field.
- *
- * @since 2.1.0
- *
- * @param array $reply_to Array of currently set reply to emails.
- * @param string $mailer The slug of current mailer.
- *
- * @return bool
- */
- protected function allow_setting_original_from_email_to_reply_to( $reply_to, $mailer ) {
-
- $options = new Options();
- $forced = $options->get( 'mail', 'from_email_force' );
- $from_email = $options->get( 'mail', 'from_email' );
-
- if ( ! empty( $reply_to ) || empty( $this->wp_mail_from ) ) {
- return false;
- }
-
- if ( $mailer === 'gmail' ) {
- $forced = true;
- } elseif ( in_array( $mailer, [ 'outlook', 'zoho' ], true ) ) {
- $sender = $options->get( $mailer, 'user_details' );
- $from_email = ! empty( $sender['email'] ) ? $sender['email'] : '';
- $forced = true;
- }
-
- if (
- $from_email === $this->wp_mail_from ||
- ! $forced
- ) {
- return false;
- }
-
- return true;
- }
-
- /**
- * This method will be called every time 'smtp' and 'mail' mailers will be used to send emails.
- *
- * @since 1.3.0
- * @since 1.5.0 Added a do_action() to be able to hook into.
- *
- * @param bool $is_sent
- * @param array $to
- * @param array $cc
- * @param array $bcc
- * @param string $subject
- * @param string $body
- * @param string $from
- */
- public static function send_callback( $is_sent, $to, $cc, $bcc, $subject, $body, $from ) {
-
- if ( ! $is_sent ) {
- // Add mailer to the beginning and save to display later.
- Debug::set(
- 'Mailer: ' . esc_html( wp_mail_smtp()->get_providers()->get_options( Options::init()->get( 'mail', 'mailer' ) )->get_title() ) . "\r\n" .
- 'PHPMailer was able to connect to SMTP server but failed while trying to send an email.'
- );
- } else {
- Debug::clear();
- }
-
- do_action( 'wp_mail_smtp_mailcatcher_smtp_send_after', $is_sent, $to, $cc, $bcc, $subject, $body, $from );
- }
-
- /**
- * Modify the email address that is used for sending emails.
- *
- * @since 1.0.0
- * @since 1.3.0 Forcing email rewrite if option is selected.
- * @since 1.7.0 Default email may be empty, so pay attention to that as well.
- *
- * @param string $wp_email The email address passed by the filter.
- *
- * @return string
- */
- public function filter_mail_from_email( $wp_email ) {
-
- $options = new Options();
- $forced = $options->get( 'mail', 'from_email_force' );
- $from_email = $options->get( 'mail', 'from_email' );
- $def_email = WP::get_default_email();
-
- // Save the "original" set WP email from address for later use.
- if ( $wp_email !== $def_email ) {
- $this->wp_mail_from = filter_var( $wp_email, FILTER_VALIDATE_EMAIL );
- }
-
- // Return FROM EMAIL if forced in settings.
- if ( $forced & ! empty( $from_email ) ) {
- return $from_email;
- }
-
- // If the FROM EMAIL is not the default, return it unchanged.
- if ( ! empty( $def_email ) && $wp_email !== $def_email ) {
- return $wp_email;
- }
-
- return ! empty( $from_email ) ? $from_email : $wp_email;
- }
-
- /**
- * Modify the sender name that is used for sending emails.
- *
- * @since 1.0.0
- * @since 1.3.0 Forcing name rewrite if option is selected.
- *
- * @param string $name
- *
- * @return string
- */
- public function filter_mail_from_name( $name ) {
-
- $options = new Options();
- $force = $options->get( 'mail', 'from_name_force' );
-
- // If the FROM NAME is not the default and not forced, return it unchanged.
- if ( ! $force && $name !== $this->get_default_name() ) {
- return $name;
- }
-
- $name = $options->get( 'mail', 'from_name' );
-
- return $name;
- }
-
- /**
- * Get the default email address based on domain name.
- *
- * @since 1.0.0
- * @since 1.7.0 May return an empty string.
- *
- * @return string Empty string when we aren't able to get the site domain (CLI, misconfigured server etc).
- */
- public function get_default_email() {
-
- $server_name = Geo::get_site_domain();
-
- if ( empty( $server_name ) ) {
- return '';
- }
-
- // Get rid of www.
- $sitename = strtolower( $server_name );
- if ( substr( $sitename, 0, 4 ) === 'www.' ) {
- $sitename = substr( $sitename, 4 );
- }
-
- return 'wordpress@' . $sitename;
- }
-
- /**
- * Get the default email FROM NAME generated by WordPress.
- *
- * @since 1.3.0
- *
- * @return string
- */
- public function get_default_name() {
- return 'WordPress';
- }
-
- /**
- * Get or create the phpmailer.
- *
- * @since 1.9.0
- *
- * @return MailCatcherInterface
- */
- public function get_phpmailer() {
-
- global $phpmailer;
-
- // Make sure the PHPMailer class has been instantiated.
- if ( ! is_object( $phpmailer ) || ! is_a( $phpmailer, 'PHPMailer' ) ) {
- $phpmailer = wp_mail_smtp()->generate_mail_catcher( true ); // phpcs:ignore
- }
-
- return $phpmailer;
- }
-
- /**
- * Set the default reply_to header, if:
- * - no other reply_to headers are already set and,
- * - the default reply_to address filter `wp_mail_smtp_processor_default_reply_to_addresses` is configured.
- *
- * @since 2.1.1
- *
- * @param MailCatcherInterface $phpmailer The PHPMailer object.
- */
- private function set_default_reply_to( $phpmailer ) {
-
- if ( ! empty( $phpmailer->getReplyToAddresses() ) ) {
- return;
- }
-
- $default_reply_to_emails = apply_filters( 'wp_mail_smtp_processor_set_default_reply_to', '' );
-
- if ( empty( $default_reply_to_emails ) ) {
- return;
- }
-
- foreach ( explode( ',', $default_reply_to_emails ) as $email ) {
- $email = trim( $email );
-
- if ( filter_var( $email, FILTER_VALIDATE_EMAIL ) ) {
- $phpmailer->addReplyTo( $email );
- }
- }
- }
-}
diff --git a/wp-content/plugins/wp-mail-smtp/src/Providers/AmazonSES/Options.php b/wp-content/plugins/wp-mail-smtp/src/Providers/AmazonSES/Options.php
deleted file mode 100644
index 25c49a4..0000000
--- a/wp-content/plugins/wp-mail-smtp/src/Providers/AmazonSES/Options.php
+++ /dev/null
@@ -1,44 +0,0 @@
- wp_mail_smtp()->assets_url . '/images/providers/aws.svg',
- 'slug' => 'amazonses',
- 'title' => esc_html__( 'Amazon SES', 'wp-mail-smtp' ),
- 'disabled' => true,
- )
- );
- }
-
- /**
- * @inheritdoc
- */
- public function display_options() {
-
- ?>
-
- - -
- - plugin_path . '/vendor/autoload.php'; - } - - /** - * Get the url, that users will be redirected back to finish the OAuth process. - * - * @since 1.0.0 - * - * @return string - */ - public static function get_plugin_auth_url() { - - return add_query_arg( 'tab', 'auth', wp_mail_smtp()->get_admin()->get_admin_page_url() ); - } - - /** - * Update auth code in our DB. - * - * @since 1.0.0 - * - * @param string $code - */ - protected function update_auth_code( $code ) { - - $options = new PluginOptions(); - $all = $options->get_all(); - - // To save in DB. - $all[ $this->mailer_slug ]['auth_code'] = $code; - - // To save in currently retrieved options array. - $this->options['auth_code'] = $code; - - // NOTE: These options need to be saved by overwriting all options, because WP automatic updates can cause an issue: GH #575! - $options->set( $all, false, true ); - } - - /** - * Update access token in our DB. - * - * @since 1.0.0 - * - * @param mixed $token - */ - protected function update_access_token( $token ) { - - $options = new PluginOptions(); - $all = $options->get_all(); - - // To save in DB. - $all[ $this->mailer_slug ]['access_token'] = $token; - - // To save in currently retrieved options array. - $this->options['access_token'] = $token; - - // NOTE: These options need to be saved by overwriting all options, because WP automatic updates can cause an issue: GH #575! - $options->set( $all, false, true ); - } - - /** - * Update refresh token in our DB. - * - * @since 1.0.0 - * - * @param mixed $token - */ - protected function update_refresh_token( $token ) { - - $options = new PluginOptions(); - $all = $options->get_all(); - - // To save in DB. - $all[ $this->mailer_slug ]['refresh_token'] = $token; - - // To save in currently retrieved options array. - $this->options['refresh_token'] = $token; - - // NOTE: These options need to be saved by overwriting all options, because WP automatic updates can cause an issue: GH #575! - $options->set( $all, false, true ); - } - - /** - * @inheritdoc - */ - public function is_clients_saved() { - - return ! empty( $this->options['client_id'] ) && ! empty( $this->options['client_secret'] ); - } - - /** - * @inheritdoc - */ - public function is_auth_required() { - - return empty( $this->options['access_token'] ) || empty( $this->options['refresh_token'] ); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/src/Providers/AuthInterface.php b/wp-content/plugins/wp-mail-smtp/src/Providers/AuthInterface.php deleted file mode 100644 index 9802c85..0000000 --- a/wp-content/plugins/wp-mail-smtp/src/Providers/AuthInterface.php +++ /dev/null @@ -1,30 +0,0 @@ -mailer_slug = $options->get( 'mail', 'mailer' ); - - if ( $this->mailer_slug !== Options::SLUG ) { - return; - } - - $this->options = $options->get_group( $this->mailer_slug ); - - if ( $this->is_clients_saved() ) { - - $this->include_vendor_lib(); - - $this->client = $this->get_client(); - } - } - - /** - * Get the url, that users will be redirected back to finish the OAuth process. - * - * @since 1.5.2 Returned to the old, pre-1.5, structure of the link to preserve BC. - * - * @return string - */ - public static function get_plugin_auth_url() { - - return apply_filters( - 'wp_mail_smtp_gmail_get_plugin_auth_url', - add_query_arg( - array( - 'page' => Area::SLUG, - 'tab' => 'auth', - ), - admin_url( 'options-general.php' ) - ) - ); - } - - /** - * Init and get the Google Client object. - * - * @since 1.0.0 - * @since 1.5.0 Add ability to apply custom options to the client via a filter. - * - * @return Google_Client - */ - public function get_client() { - - // Doesn't load client twice + gives ability to overwrite. - if ( ! empty( $this->client ) ) { - return $this->client; - } - - $this->include_vendor_lib(); - - $client = new Google_Client( - array( - 'client_id' => $this->options['client_id'], - 'client_secret' => $this->options['client_secret'], - 'redirect_uris' => array( - self::get_oauth_redirect_url(), - ), - ) - ); - $client->setApplicationName( 'WP Mail SMTP v' . WPMS_PLUGIN_VER ); - $client->setAccessType( 'offline' ); - $client->setApprovalPrompt( 'force' ); - $client->setIncludeGrantedScopes( true ); - // We request only the sending capability, as it's what we only need to do. - $client->setScopes( array( Google_Service_Gmail::MAIL_GOOGLE_COM ) ); - $client->setRedirectUri( self::get_oauth_redirect_url() ); - $client->setState( self::get_plugin_auth_url() ); - - // Apply custom options to the client. - $client = apply_filters( 'wp_mail_smtp_providers_gmail_auth_get_client_custom_options', $client ); - - if ( - $this->is_auth_required() && - ! empty( $this->options['auth_code'] ) - ) { - try { - $creds = $client->fetchAccessTokenWithAuthCode( $this->options['auth_code'] ); - } catch ( \Exception $e ) { - $creds['error'] = $e->getMessage(); - } - - // Bail if we have an error. - if ( ! empty( $creds['error'] ) ) { - if ( $creds['error'] === 'invalid_client' ) { - $creds['error'] .= PHP_EOL . esc_html__( 'Please make sure your Google Client ID and Secret in the plugin settings are valid. Save the settings and try the Authorization again.' , 'wp-mail-smtp' ); - } - - Debug::set( - 'Mailer: Gmail' . "\r\n" . - $creds['error'] - ); - - return $client; - } else { - Debug::clear(); - } - - $this->update_access_token( $client->getAccessToken() ); - $this->update_refresh_token( $client->getRefreshToken() ); - } - - if ( ! empty( $this->options['access_token'] ) ) { - $client->setAccessToken( $this->options['access_token'] ); - } - - // Refresh the token if it's expired. - if ( $client->isAccessTokenExpired() ) { - $refresh = $client->getRefreshToken(); - if ( empty( $refresh ) && isset( $this->options['refresh_token'] ) ) { - $refresh = $this->options['refresh_token']; - } - - if ( ! empty( $refresh ) ) { - try { - $creds = $client->fetchAccessTokenWithRefreshToken( $refresh ); - } catch ( \Exception $e ) { - $creds['error'] = $e->getMessage(); - Debug::set( - 'Mailer: Gmail' . "\r\n" . - $e->getMessage() - ); - } - - // Bail if we have an error. - if ( ! empty( $creds['error'] ) ) { - return $client; - } - - $this->update_access_token( $client->getAccessToken() ); - $this->update_refresh_token( $client->getRefreshToken() ); - } - } - - return $client; - } - - /** - * Get the auth code from the $_GET and save it. - * Redirect user back to settings with an error message, if failed. - * - * @since 1.0.0 - */ - public function process() { - - if ( ! ( isset( $_GET['tab'] ) && $_GET['tab'] === 'auth' ) ) { // phpcs:ignore - wp_safe_redirect( wp_mail_smtp()->get_admin()->get_admin_page_url() ); - exit; - } - - // We can't process without saved client_id/secret. - if ( ! $this->is_clients_saved() ) { - Debug::set( - esc_html__( 'There was an error while processing the Google authentication request. Please make sure that you have Client ID and Client Secret both valid and saved.', 'wp-mail-smtp' ) - ); - wp_safe_redirect( - add_query_arg( - 'error', - 'google_no_clients', - wp_mail_smtp()->get_admin()->get_admin_page_url() - ) - ); - exit; - } - - $this->include_vendor_lib(); - - $code = ''; - $scope = ''; - $error = ''; - - if ( isset( $_GET['error'] ) ) { // phpcs:ignore - $error = sanitize_key( $_GET['error'] ); // phpcs:ignore - } - - // In case of any error: display a message to a user. - if ( ! empty( $error ) ) { - wp_safe_redirect( - add_query_arg( - 'error', - 'google_' . $error, - wp_mail_smtp()->get_admin()->get_admin_page_url() - ) - ); - exit; - } - - if ( isset( $_GET['code'] ) ) { // phpcs:ignore - $code = urldecode( $_GET['code'] ); // phpcs:ignore - } - if ( isset( $_GET['scope'] ) ) { // phpcs:ignore - $scope = urldecode( base64_decode( $_GET['scope'] ) ); // phpcs:ignore - } - - // Let's try to get the access token. - if ( - ! empty( $code ) && - ( - $scope === Google_Service_Gmail::MAIL_GOOGLE_COM . ' ' . Google_Service_Gmail::GMAIL_SEND || - $scope === Google_Service_Gmail::GMAIL_SEND . ' ' . Google_Service_Gmail::MAIL_GOOGLE_COM || - $scope === Google_Service_Gmail::GMAIL_SEND || - $scope === Google_Service_Gmail::MAIL_GOOGLE_COM - ) - ) { - // Save the auth code. So Google_Client can reuse it to retrieve the access token. - $this->update_auth_code( $code ); - } else { - wp_safe_redirect( - add_query_arg( - 'error', - 'google_no_code_scope', - wp_mail_smtp()->get_admin()->get_admin_page_url() - ) - ); - exit; - } - - wp_safe_redirect( - add_query_arg( - 'success', - 'google_site_linked', - wp_mail_smtp()->get_admin()->get_admin_page_url() - ) - ); - exit; - } - - /** - * Get the auth URL used to proceed to Provider to request access to send emails. - * - * @since 1.0.0 - * - * @return string - */ - public function get_auth_url() { - - if ( - ! empty( $this->client ) && - class_exists( 'WPMailSMTP\Vendor\Google_Client', false ) && - $this->client instanceof Google_Client - ) { - return filter_var( $this->client->createAuthUrl(), FILTER_SANITIZE_URL ); - } - - return '#'; - } - - /** - * Get user information (like email etc) that is associated with the current connection. - * - * @since 1.5.0 - * - * @return array - */ - public function get_user_info() { - - $gmail = new Google_Service_Gmail( $this->get_client() ); - - try { - $email = $gmail->users->getProfile( 'me' )->getEmailAddress(); - } catch ( \Exception $e ) { - $email = ''; - } - - return array( 'email' => $email ); - } - - /** - * Get the registered email addresses that the user can use as the "from email". - * - * @since 2.2.0 - * - * @return array The list of possible from email addresses. - */ - public function get_user_possible_send_from_addresses() { - - if ( isset( $this->aliases ) ) { - return $this->aliases; - } - - $gmail = new Google_Service_Gmail( $this->get_client() ); - - try { - $response = $gmail->users_settings_sendAs->listUsersSettingsSendAs( 'me' ); // phpcs:ignore - - // phpcs:disable - $this->aliases = array_map( - function( $sendAsObject ) { - return $sendAsObject['sendAsEmail']; - }, - (array) $response->getSendAs() - ); - // phpcs:enable - - } catch ( \Exception $exception ) { - $this->aliases = []; - } - - return $this->aliases; - } - - /** - * Get the Google oAuth 2.0 redirect URL. - * - * This is the URL that Google will redirect after the access to the Gmail account is granted or rejected. - * The below endpoint will then redirect back to the user's WP site (to self::get_plugin_auth_url() URL). - * - * @since 2.5.0 - * - * @return string - */ - public static function get_oauth_redirect_url() { - - return 'https://connect.wpmailsmtp.com/google/'; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Mailer.php b/wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Mailer.php deleted file mode 100644 index e202d8c..0000000 --- a/wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Mailer.php +++ /dev/null @@ -1,315 +0,0 @@ -is_php_compatible() ) { - return; - } - } - - /** - * Re-use the MailCatcher class methods and properties. - * - * @since 1.2.0 - * - * @param MailCatcherInterface $phpmailer The MailCatcher object. - */ - public function process_phpmailer( $phpmailer ) { - - // Make sure that we have access to PHPMailer class methods. - if ( ! wp_mail_smtp()->is_valid_phpmailer( $phpmailer ) ) { - return; - } - - $this->phpmailer = $phpmailer; - } - - /** - * Use Google API Services to send emails. - * - * @since 1.0.0 - */ - public function send() { - - // Include the Google library. - require_once wp_mail_smtp()->plugin_path . '/vendor/autoload.php'; - - $auth = new Auth(); - $message = new Google_Service_Gmail_Message(); - - // Set the authorized Gmail email address as the "from email" if the set email is not on the list of aliases. - $possible_from_emails = $auth->get_user_possible_send_from_addresses(); - - if ( ! in_array( $this->phpmailer->From, $possible_from_emails, true ) ) { - $user_info = $auth->get_user_info(); - - if ( ! empty( $user_info['email'] ) ) { - $this->phpmailer->From = $user_info['email']; - $this->phpmailer->Sender = $user_info['email']; - } - } - - try { - // Prepare a message for sending if any changes happened above. - $this->phpmailer->preSend(); - - // Get the raw MIME email using MailCatcher data. We need to make base64URL-safe string. - $base64 = str_replace( - [ '+', '/', '=' ], - [ '-', '_', '' ], - base64_encode( $this->phpmailer->getSentMIMEMessage() ) //phpcs:ignore - ); - - $message->setRaw( $base64 ); - - $service = new Google_Service_Gmail( $auth->get_client() ); - $response = $service->users_messages->send( 'me', $message ); - - $this->process_response( $response ); - } catch ( \Exception $e ) { - $this->error_message = $e->getMessage(); - - Debug::set( - 'Mailer: Gmail' . "\r\n" . - $this->process_exception_message( $e->getMessage() ) - ); - - return; - } - } - - /** - * Save response from the API to use it later. - * - * @since 1.0.0 - * @since 1.5.0 Added action "wp_mail_smtp_providers_gmail_mailer_process_response" with $response. - * - * @param Google_Service_Gmail_Message $response Instance of Gmail response. - */ - protected function process_response( $response ) { - - $this->response = $response; - - if ( ! method_exists( $this->response, 'getId' ) ) { - $this->error_message = esc_html__( 'The response object is invalid (missing getId method).', 'wp-mail-smtp' ); - } else { - $message_id = $this->response->getId(); - - if ( empty( $message_id ) ) { - $this->error_message = esc_html__( 'The email message ID is missing.', 'wp-mail-smtp' ); - } - } - - do_action( 'wp_mail_smtp_providers_gmail_mailer_process_response', $this->response, $this->phpmailer ); - } - - /** - * Check whether the email was sent. - * - * @since 1.0.0 - * - * @return bool - */ - public function is_email_sent() { - - $is_sent = false; - - if ( method_exists( $this->response, 'getId' ) ) { - $message_id = $this->response->getId(); - if ( ! empty( $message_id ) ) { - $is_sent = true; - } - } - - // Clear debug messages if email is successfully sent. - if ( $is_sent ) { - Debug::clear(); - } - - return $is_sent; - } - - /** - * This method is relevant to SMTP and Pepipost. - * All other custom mailers should override it with own information. - * - * @since 1.2.0 - * - * @return string - */ - public function get_debug_info() { - - $gmail_text = array(); - - $options = new \WPMailSMTP\Options(); - $gmail = $options->get_group( 'gmail' ); - $curl_ver = 'No'; - if ( function_exists( 'curl_version' ) ) { - $curl = curl_version(); // phpcs:ignore - $curl_ver = $curl['version']; - } - - $gmail_text[] = 'Client ID/Secret: ' . ( ! empty( $gmail['client_id'] ) && ! empty( $gmail['client_secret'] ) ? 'Yes' : 'No' ); - $gmail_text[] = 'Auth Code: ' . ( ! empty( $gmail['auth_code'] ) ? 'Yes' : 'No' ); - $gmail_text[] = 'Access Token: ' . ( ! empty( $gmail['access_token'] ) ? 'Yes' : 'No' ); - - $gmail_text[] = '- -
-- -
- - - - - - - - get_user_info(); - - if ( ! empty( $user['email'] ) ) { - printf( - /* translators: %s - email address, as received from Google API. */ - esc_html__( 'Connected as %s', 'wp-mail-smtp' ), - '' . esc_html( $user['email'] ) . '
'
- );
- }
- ?>
-
- - Follow these instructions and then select the From Email at the top of this page.', 'wp-mail-smtp' ), - [ - 'a' => [ - 'href' => [], - 'rel' => [], - 'target' => [], - ], - ] - ), - 'https://support.google.com/a/answer/33327' - ); - ?> -
-- -
- - - - - -- -
- - get( 'mail', 'mailer' ) !== $this->get_slug() ) { - return; - } - - $old_opt = $options->get_all_raw(); - - foreach ( $old_opt[ $this->get_slug() ] as $key => $value ) { - // Unset everything except Client ID and Secret. - if ( ! in_array( $key, array( 'client_id', 'client_secret' ), true ) ) { - unset( $old_opt[ $this->get_slug() ][ $key ] ); - } - } - - $options->set( $old_opt ); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/src/Providers/Loader.php b/wp-content/plugins/wp-mail-smtp/src/Providers/Loader.php deleted file mode 100644 index 42b767b..0000000 --- a/wp-content/plugins/wp-mail-smtp/src/Providers/Loader.php +++ /dev/null @@ -1,239 +0,0 @@ - 'WPMailSMTP\Providers\Mail\\', - 'smtpcom' => 'WPMailSMTP\Providers\SMTPcom\\', - 'sendinblue' => 'WPMailSMTP\Providers\Sendinblue\\', - 'pepipostapi' => 'WPMailSMTP\Providers\PepipostAPI\\', - 'mailgun' => 'WPMailSMTP\Providers\Mailgun\\', - 'sendgrid' => 'WPMailSMTP\Providers\Sendgrid\\', - 'amazonses' => 'WPMailSMTP\Providers\AmazonSES\\', - 'gmail' => 'WPMailSMTP\Providers\Gmail\\', - 'outlook' => 'WPMailSMTP\Providers\Outlook\\', - 'zoho' => 'WPMailSMTP\Providers\Zoho\\', - 'smtp' => 'WPMailSMTP\Providers\SMTP\\', - 'pepipost' => 'WPMailSMTP\Providers\Pepipost\\', - ); - - /** - * @since 1.0.0 - * - * @var MailCatcherInterface - */ - private $phpmailer; - - /** - * Get all the supported providers. - * - * @since 1.0.0 - * - * @return array - */ - public function get_providers() { - - if ( ! Options::init()->is_mailer_active( 'pepipost' ) ) { - unset( $this->providers['pepipost'] ); - } - - if ( ! Options::init()->is_mailer_active( 'pepipostapi' ) ) { - unset( $this->providers['pepipostapi'] ); - } - - return apply_filters( 'wp_mail_smtp_providers_loader_get_providers', $this->providers ); - } - - /** - * Get a single provider FQN-path based on its name. - * - * @since 1.0.0 - * - * @param string $provider - * - * @return string|null - */ - public function get_provider_path( $provider ) { - - $provider = sanitize_key( $provider ); - - $providers = $this->get_providers(); - - return apply_filters( - 'wp_mail_smtp_providers_loader_get_provider_path', - isset( $providers[ $provider ] ) ? $providers[ $provider ] : null, - $provider - ); - } - - /** - * Get the provider options, if exists. - * - * @since 1.0.0 - * - * @param string $provider - * - * @return OptionsAbstract|null - */ - public function get_options( $provider ) { - - return $this->get_entity( $provider, 'Options' ); - } - - /** - * Get all options of all providers. - * - * @since 1.0.0 - * - * @return OptionsAbstract[] - */ - public function get_options_all() { - - $options = array(); - - foreach ( $this->get_providers() as $provider => $path ) { - - $option = $this->get_options( $provider ); - - if ( ! $option instanceof OptionsAbstract ) { - continue; - } - - $slug = $option->get_slug(); - $title = $option->get_title(); - - if ( empty( $title ) || empty( $slug ) ) { - continue; - } - - $options[] = $option; - } - - return apply_filters( 'wp_mail_smtp_providers_loader_get_providers_all', $options ); - } - - /** - * Get the provider mailer, if exists. - * - * @since 1.0.0 - * - * @param string $provider The provider name. - * @param MailCatcherInterface $phpmailer The MailCatcher object. - * - * @return MailerAbstract|null - */ - public function get_mailer( $provider, $phpmailer ) { - - if ( wp_mail_smtp()->is_valid_phpmailer( $phpmailer ) ) { - $this->phpmailer = $phpmailer; - } - - return $this->get_entity( $provider, 'Mailer' ); - } - - /** - * Get the provider auth, if exists. - * - * @param string $provider - * - * @return AuthAbstract|null - */ - public function get_auth( $provider ) { - - return $this->get_entity( $provider, 'Auth' ); - } - - /** - * Get a generic entity based on the request. - * - * @uses \ReflectionClass - * - * @since 1.0.0 - * - * @param string $provider - * @param string $request - * - * @return OptionsAbstract|MailerAbstract|AuthAbstract|null - */ - protected function get_entity( $provider, $request ) { - - $provider = sanitize_key( $provider ); - $request = sanitize_text_field( $request ); - $path = $this->get_provider_path( $provider ); - $entity = null; - - if ( empty( $path ) ) { - return $entity; - } - - try { - $reflection = new \ReflectionClass( $path . $request ); - - if ( file_exists( $reflection->getFileName() ) ) { - $class = $path . $request; - if ( $this->phpmailer ) { - $entity = new $class( $this->phpmailer ); - } else { - $entity = new $class(); - } - } - } - catch ( \Exception $e ) { - Debug::set( "There was a problem while retrieving {$request} for {$provider}: {$e->getMessage()}" ); - $entity = null; - } - - return apply_filters( 'wp_mail_smtp_providers_loader_get_entity', $entity, $provider, $request ); - } - - /** - * Get supports options for all mailers. - * - * @since 2.3.0 - * - * @return array - */ - public function get_supports_all() { - - $supports = []; - - foreach ( $this->get_providers() as $provider => $path ) { - $option = $this->get_options( $provider ); - - if ( ! $option instanceof OptionsAbstract ) { - continue; - } - - $mailer_slug = $option->get_slug(); - $mailer_supports = $option->get_supports(); - - if ( empty( $mailer_slug ) || empty( $mailer_supports ) ) { - continue; - } - - $supports[ $mailer_slug ] = $mailer_supports; - } - - return apply_filters( 'wp_mail_smtp_providers_loader_get_supports_all', $supports ); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/src/Providers/Mail/Mailer.php b/wp-content/plugins/wp-mail-smtp/src/Providers/Mail/Mailer.php deleted file mode 100644 index 51654bf..0000000 --- a/wp-content/plugins/wp-mail-smtp/src/Providers/Mail/Mailer.php +++ /dev/null @@ -1,49 +0,0 @@ -Server:'; - - $disabled_functions = ini_get( 'disable_functions' ); - $disabled = (array) explode( ',', trim( $disabled_functions ) ); - - $mail_text[] = 'PHP.mail(): ' . ( in_array( 'mail', $disabled, true ) || ! function_exists( 'mail' ) ? 'No' : 'Yes' ); - if ( function_exists( 'apache_get_modules' ) ) { - $modules = apache_get_modules(); - $mail_text[] = 'Apache.mod_security: ' . ( in_array( 'mod_security', $modules, true ) || in_array( 'mod_security2', $modules, true ) ? 'Yes' : 'No' ); - } - if ( function_exists( 'selinux_is_enabled' ) ) { - $mail_text[] = 'OS.SELinux: ' . ( selinux_is_enabled() ? 'Yes' : 'No' ); - } - if ( function_exists( 'grsecurity_is_enabled' ) ) { - $mail_text[] = 'OS.grsecurity: ' . ( grsecurity_is_enabled() ? 'Yes' : 'No' ); - } - - return implode( '- -- - options = new Options(); - $this->mailer = $this->options->get( 'mail', 'mailer' ); - - // Only non-SMTP mailers need URL and extra processing for PHPMailer class. - if ( ! $this->options->is_mailer_smtp() && empty( $this->url ) ) { - return; - } - - $this->process_phpmailer( $phpmailer ); - } - - /** - * Re-use the MailCatcher class methods and properties. - * - * @since 1.0.0 - * - * @param MailCatcherInterface $phpmailer The MailCatcher object. - */ - public function process_phpmailer( $phpmailer ) { - - // Make sure that we have access to PHPMailer class methods. - if ( ! wp_mail_smtp()->is_valid_phpmailer( $phpmailer ) ) { - return; - } - - $this->phpmailer = $phpmailer; - - // Prevent working with those methods, as they are not needed for SMTP-like mailers. - if ( $this->options->is_mailer_smtp() ) { - return; - } - - $this->set_headers( $this->phpmailer->getCustomHeaders() ); - $this->set_from( $this->phpmailer->From, $this->phpmailer->FromName ); - $this->set_recipients( - array( - 'to' => $this->phpmailer->getToAddresses(), - 'cc' => $this->phpmailer->getCcAddresses(), - 'bcc' => $this->phpmailer->getBccAddresses(), - ) - ); - $this->set_subject( $this->phpmailer->Subject ); - if ( $this->phpmailer->ContentType === 'text/plain' ) { - $this->set_content( $this->phpmailer->Body ); - } else { - $this->set_content( - array( - 'text' => $this->phpmailer->AltBody, - 'html' => $this->phpmailer->Body, - ) - ); - } - $this->set_return_path( $this->phpmailer->From ); - $this->set_reply_to( $this->phpmailer->getReplyToAddresses() ); - - /* - * In some cases we will need to modify the internal structure - * of the body content, if attachments are present. - * So lets make this call the last one. - */ - $this->set_attachments( $this->phpmailer->getAttachments() ); - } - - /** - * Set the email headers. - * - * @since 1.0.0 - * - * @param array $headers List of key=>value pairs. - */ - public function set_headers( $headers ) { - - foreach ( $headers as $header ) { - $name = isset( $header[0] ) ? $header[0] : false; - $value = isset( $header[1] ) ? $header[1] : false; - - if ( empty( $name ) || empty( $value ) ) { - continue; - } - - $this->set_header( $name, $value ); - } - } - - /** - * Set individual header key=>value pair for the email. - * - * @since 1.0.0 - * - * @param string $name - * @param string $value - */ - public function set_header( $name, $value ) { - - $name = sanitize_text_field( $name ); - - $this->headers[ $name ] = WP::sanitize_value( $value ); - } - - /** - * Set email subject. - * - * @since 1.0.0 - * - * @param string $subject - */ - public function set_subject( $subject ) { - - $this->set_body_param( - array( - 'subject' => $subject, - ) - ); - } - - /** - * Set the request params, that goes to the body of the HTTP request. - * - * @since 1.0.0 - * - * @param array $param Key=>value of what should be sent to a 3rd party API. - * - * @internal param array $params - */ - protected function set_body_param( $param ) { - - $this->body = Options::array_merge_recursive( $this->body, $param ); - } - - /** - * Get the email body. - * - * @since 1.0.0 - * - * @return string|array - */ - public function get_body() { - - return apply_filters( 'wp_mail_smtp_providers_mailer_get_body', $this->body, $this->mailer ); - } - - /** - * Get the email headers. - * - * @since 1.0.0 - * - * @return array - */ - public function get_headers() { - - return apply_filters( 'wp_mail_smtp_providers_mailer_get_headers', $this->headers, $this->mailer ); - } - - /** - * Send the email. - * - * @since 1.0.0 - * @since 1.8.0 Added timeout for requests, same as max_execution_time. - */ - public function send() { - - $timeout = (int) ini_get( 'max_execution_time' ); - - $params = Options::array_merge_recursive( - $this->get_default_params(), - array( - 'headers' => $this->get_headers(), - 'body' => $this->get_body(), - 'timeout' => $timeout ? $timeout : 30, - ) - ); - - $response = wp_safe_remote_post( $this->url, $params ); - - $this->process_response( $response ); - } - - /** - * We might need to do something after the email was sent to the API. - * In this method we preprocess the response from the API. - * - * @since 1.0.0 - * - * @param mixed $response - */ - protected function process_response( $response ) { - - if ( is_wp_error( $response ) ) { - // Save the error text. - $errors = $response->get_error_messages(); - foreach ( $errors as $error ) { - $this->error_message .= $error . PHP_EOL; - } - - return; - } - - if ( isset( $response['body'] ) && WP::is_json( $response['body'] ) ) { - $response['body'] = \json_decode( $response['body'] ); - } - - $this->response = $response; - } - - /** - * Get the default params, required for wp_safe_remote_post(). - * - * @since 1.0.0 - * - * @return array - */ - protected function get_default_params() { - - return apply_filters( - 'wp_mail_smtp_providers_mailer_get_default_params', - array( - 'timeout' => 15, - 'httpversion' => '1.1', - 'blocking' => true, - ), - $this->mailer - ); - } - - /** - * Whether the email is sent or not. - * We basically check the response code from a request to provider. - * Might not be 100% correct, not guarantees that email is delivered. - * - * @since 1.0.0 - * - * @return bool - */ - public function is_email_sent() { - - $is_sent = false; - - if ( wp_remote_retrieve_response_code( $this->response ) === $this->email_sent_code ) { - $is_sent = true; - } else { - $error = $this->get_response_error(); - - if ( ! empty( $error ) ) { - // Add mailer to the beginning and save to display later. - $message = 'Mailer: ' . esc_html( wp_mail_smtp()->get_providers()->get_options( $this->mailer )->get_title() ) . "\r\n"; - - $conflicts = new Conflicts(); - if ( $conflicts->is_detected() ) { - $message .= 'Conflicts: ' . esc_html( $conflicts->get_conflict_name() ) . "\r\n"; - } - - Debug::set( $message . $error ); - } - } - - // Clear debug messages if email is successfully sent. - if ( $is_sent ) { - Debug::clear(); - } - - return apply_filters( 'wp_mail_smtp_providers_mailer_is_email_sent', $is_sent, $this->mailer ); - } - - /** - * The error message when email sending failed. - * Should be overwritten when appropriate. - * - * @since 1.2.0 - * @since 2.5.0 Return a non-empty error_message attribute. - * - * @return string - */ - public function get_response_error() { - - return ! empty( $this->error_message ) ? $this->error_message : ''; - } - - /** - * Whether the mailer supports the current PHP version or not. - * - * @since 1.0.0 - * - * @return bool - */ - public function is_php_compatible() { - - $options = wp_mail_smtp()->get_providers()->get_options( $this->mailer ); - - return version_compare( phpversion(), $options->get_php_version(), '>=' ); - } - - /** - * This method is relevant to SMTP and Pepipost. - * All other custom mailers should override it with own information. - * - * @since 1.2.0 - * - * @return string - */ - public function get_debug_info() { - - global $phpmailer; - - $smtp_text = array(); - - // Mail mailer has nothing to return. - if ( $this->options->is_mailer_smtp() ) { - // phpcs:disable - $smtp_text[] = 'ErrorInfo: ' . make_clickable( wp_strip_all_tags( $phpmailer->ErrorInfo ) ); - $smtp_text[] = 'Host: ' . $phpmailer->Host; - $smtp_text[] = 'Port: ' . $phpmailer->Port; - $smtp_text[] = 'SMTPSecure: ' . Debug::pvar( $phpmailer->SMTPSecure ); - $smtp_text[] = 'SMTPAutoTLS: ' . Debug::pvar( $phpmailer->SMTPAutoTLS ); - $smtp_text[] = 'SMTPAuth: ' . Debug::pvar( $phpmailer->SMTPAuth ); - if ( ! empty( $phpmailer->SMTPOptions ) ) { - $smtp_text[] = 'SMTPOptions:
' . wp_json_encode( $phpmailer->SMTPOptions ) . '
';
- }
- // phpcs:enable
- }
-
- $smtp_text[] = '- ' . - esc_html__( 'Get a Private API Key', 'wp-mail-smtp' ) . - '' - ); - ?> -
-- ' . - esc_html__( 'Get a Domain Name', 'wp-mail-smtp' ) . - '' - ); - ?> -
-
-
-
- More information on Mailgun.com.', 'wp-mail-smtp' ),
- array(
- 'a' => array(
- 'href' => array(),
- 'rel' => array(),
- 'target' => array(),
- ),
- )
- ),
- 'https://www.mailgun.com/regions'
- );
- ?>
-
- -
-- get_title() ), - esc_html( $this->php ), - esc_html( phpversion() ) - ); - ?> -- - - -
- -
- WPBeginner\'s tutorial on how to set up SSL.', 'wp-mail-smtp' ), - [ - 'a' => [ - 'href' => [], - 'target' => [], - ], - ] - ), - esc_html( $this->get_title() ) - ); - ?> -- - - -
-
- -
- ' . esc_attr( $constant ) . '',
- 'wp-config.php
'
- );
- ?>
-
- -
- - options->get_group( $this->mailer ); - - // Host and Port are the only really required options. - if ( - ! empty( $options['host'] ) && - ! empty( $options['port'] ) - ) { - return true; - } - - return false; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/src/Providers/Pepipost/Options.php b/wp-content/plugins/wp-mail-smtp/src/Providers/Pepipost/Options.php deleted file mode 100644 index e886ce3..0000000 --- a/wp-content/plugins/wp-mail-smtp/src/Providers/Pepipost/Options.php +++ /dev/null @@ -1,29 +0,0 @@ - wp_mail_smtp()->assets_url . '/images/providers/pepipost-smtp.png', - 'slug' => 'pepipost', - 'title' => esc_html__( 'Pepipost SMTP', 'wp-mail-smtp' ), - ) - ); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/src/Providers/PepipostAPI/Mailer.php b/wp-content/plugins/wp-mail-smtp/src/Providers/PepipostAPI/Mailer.php deleted file mode 100644 index 780865d..0000000 --- a/wp-content/plugins/wp-mail-smtp/src/Providers/PepipostAPI/Mailer.php +++ /dev/null @@ -1,477 +0,0 @@ -set_header( 'api_key', $this->options->get( $this->mailer, 'api_key' ) ); - $this->set_header( 'content-type', 'application/json' ); - } - - /** - * Redefine the way email body is returned. - * By default we are sending an array of data. - * Pepipost requires a JSON, so we encode the body. - * - * @since 1.8.0 - * - * @return string - */ - public function get_body() { - - $body = parent::get_body(); - - return wp_json_encode( $body ); - } - - /** - * Set the FROM header of the email. - * - * @since 1.8.0 - * @since 2.2.0 Changed the attribute names (API v5 changes). - * - * @param string $email From mail. - * @param string $name From name. - */ - public function set_from( $email, $name = '' ) { - - if ( ! filter_var( $email, FILTER_VALIDATE_EMAIL ) ) { - return; - } - - $from['email'] = $email; - - if ( ! empty( $name ) ) { - $from['name'] = $name; - } - - $this->set_body_param( - [ - 'from' => $from, - ] - ); - } - - /** - * Set the names/emails of people who will receive the email. - * - * @since 1.8.0 - * @since 2.2.0 change the attribute names (API v5 changes). - * - * @param array $recipients List of recipients: cc/bcc/to. - */ - public function set_recipients( $recipients ) { - - if ( empty( $recipients ) ) { - return; - } - - $data = []; - - if ( ! empty( $recipients['to'] ) ) { - $data['to'] = $this->prepare_list_of_to_emails( $recipients['to'] ); - } - - if ( ! empty( $recipients['cc'] ) ) { - $data['cc'] = $this->prepare_list_of_emails( $recipients['cc'] ); - } - - if ( ! empty( $recipients['bcc'] ) ) { - $data['bcc'] = $this->prepare_list_of_emails( $recipients['bcc'] ); - } - - $this->set_body_personalizations( $data ); - } - - /** - * Set the email content. - * Pepipost API only supports HTML emails, so we have to replace new lines in plain text emails with- ' . - esc_html__( 'Get the API Key', 'wp-mail-smtp' ) . - '' - ); - ?> -
-- ' . - esc_html__( 'Get API Key', 'wp-mail-smtp' ) . - '' - ); - ?> -
-- ' . - esc_html__( 'Get Sender Name', 'wp-mail-smtp' ) . - '' - ); - ?> -
-
- ' .
- esc_html__( 'Create API Key', 'wp-mail-smtp' ) .
- ''
- );
- ?>
-
- Mail Send'
- );
- ?>
-
- ' . - esc_html__( 'Get v3 API Key', 'wp-mail-smtp' ) . - '' - ); - ?> -
-- -
- - esc_html__( 'Is WP Mail SMTP mailer setup complete?', 'wp-mail-smtp' ), - 'test' => array( $this, 'mailer_setup_complete_test' ), - ); - - $tests['direct']['wp_mail_smtp_db_tables_exist'] = array( - 'label' => esc_html__( 'Do WP Mail SMTP DB tables exist?', 'wp-mail-smtp' ), - 'test' => [ $this, 'db_tables_test' ], - ); - - return $tests; - } - - /** - * Register plugin WP Site Health debug information. - * This will be displayed in the "Info" tab of the WP Site Health page. - * - * @since 1.9.0 - * - * @param array $debug_info Array of existing debug information. - * - * @return array - */ - public function register_debug_information( $debug_info ) { - - $debug_notices = Debug::get(); - $db_tables = $this->get_db_tables( 'existing' ); - - $debug_info[ self::DEBUG_INFO_SLUG ] = [ - 'label' => $this->get_label(), - 'fields' => [ - 'version' => [ - 'label' => esc_html__( 'Version', 'wp-mail-smtp' ), - 'value' => WPMS_PLUGIN_VER, - ], - 'license_key_type' => [ - 'label' => esc_html__( 'License key type', 'wp-mail-smtp' ), - 'value' => wp_mail_smtp()->get_license_type(), - ], - 'debug' => [ - 'label' => esc_html__( 'Debug', 'wp-mail-smtp' ), - 'value' => ! empty( $debug_notices ) ? implode( '. ', $debug_notices ) : esc_html__( 'No debug notices found.', 'wp-mail-smtp' ), - ], - 'db_tables' => [ - 'label' => esc_html__( 'DB tables', 'wp-mail-smtp' ), - 'value' => ! empty( $db_tables ) ? - implode( ', ', $db_tables ) : esc_html__( 'No DB tables found.', 'wp-mail-smtp' ), - ], - ], - ]; - - // Install date. - $activated = get_option( 'wp_mail_smtp_activated', [] ); - if ( ! empty( $activated['lite'] ) ) { - $date = $activated['lite'] + ( get_option( 'gmt_offset' ) * 3600 ); - - $debug_info[ self::DEBUG_INFO_SLUG ]['fields']['lite_install_date'] = [ - 'label' => esc_html__( 'Lite install date', 'wp-mail-smtp' ), - 'value' => date_i18n( esc_html__( 'M j, Y @ g:ia' ), $date ), - ]; - } - - return $debug_info; - } - - /** - * Perform the WP site health test for checking, if the mailer setup is complete. - * - * @since 1.9.0 - */ - public function mailer_setup_complete_test() { - - $mailer = Options::init()->get( 'mail', 'mailer' ); - $mailer_complete = false; - $mailer_title = esc_html__( 'None selected', 'wp-mail-smtp' ); - - if ( ! empty( $mailer ) ) { - $mailer_complete = wp_mail_smtp() - ->get_providers() - ->get_mailer( - $mailer, - wp_mail_smtp()->get_processor()->get_phpmailer() - )->is_mailer_complete(); - - $mailer_title = wp_mail_smtp()->get_providers()->get_options( $mailer )->get_title(); - } - - // The default mailer should be considered as a non-complete mailer. - if ( $mailer === 'mail' ) { - $mailer_complete = false; - } - - $mailer_text = sprintf( - '%s: %s', - esc_html__( 'Current mailer', 'wp-mail-smtp' ), - esc_html( $mailer_title ) - ); - - $result = array( - 'label' => esc_html__( 'WP Mail SMTP mailer setup is complete', 'wp-mail-smtp' ), - 'status' => 'good', - 'badge' => array( - 'label' => $this->get_label(), - 'color' => self::BADGE_COLOR, - ), - 'description' => sprintf( - '%s
%s
', - $mailer_text, - esc_html__( 'The WP Mail SMTP plugin mailer setup is complete. You can send a test email, to make sure it\'s working properly.', 'wp-mail-smtp' ) - ), - 'actions' => sprintf( - '', - esc_url( add_query_arg( 'tab', 'test', wp_mail_smtp()->get_admin()->get_admin_page_url() ) ), - esc_html__( 'Test email sending', 'wp-mail-smtp' ) - ), - 'test' => 'wp_mail_smtp_mailer_setup_complete', - ); - - if ( $mailer === 'mail' ) { - $mailer_text .= sprintf( /* translators: %s - explanation why default mailer is not a valid mailer option. */ - '%s
', - esc_html__( 'You currently have the default mailer selected, which means that you haven’t set up SMTP yet.', 'wp-mail-smtp' ) - ); - } - - if ( $mailer_complete === false ) { - $result['label'] = esc_html__( 'WP Mail SMTP mailer setup is incomplete', 'wp-mail-smtp' ); - $result['status'] = 'recommended'; - $result['badge']['color'] = 'orange'; - $result['description'] = sprintf( - '%s
%s
', - $mailer_text, - esc_html__( 'The WP Mail SMTP plugin mailer setup is incomplete. Please click on the link below to access plugin settings and configure the mailer.', 'wp-mail-smtp' ) - ); - $result['actions'] = sprintf( - '', - esc_url( wp_mail_smtp()->get_admin()->get_admin_page_url() ), - esc_html__( 'Configure mailer', 'wp-mail-smtp' ) - ); - } - - return $result; - } - - /** - * Perform the test for checking if all custom plugin DB tables exist. - * - * @since 2.1.2 - * - * @return array - */ - public function db_tables_test() { - - $result = array( - 'label' => esc_html__( 'WP Mail SMTP DB tables are created', 'wp-mail-smtp' ), - 'status' => 'good', - 'badge' => array( - 'label' => $this->get_label(), - 'color' => self::BADGE_COLOR, - ), - 'description' => esc_html__( 'WP Mail SMTP is using custom database tables for some of its features. In order to work properly, the custom tables should be created, and it looks like they exist in your database.', 'wp-mail-smtp' ), - 'actions' => '', - 'test' => 'wp_mail_smtp_db_tables_exist', - ); - - $missing_tables = $this->get_db_tables( 'missing' ); - - if ( ! empty( $missing_tables ) ) { - $result['label'] = esc_html__( 'WP Mail SMTP DB tables check has failed', 'wp-mail-smtp' ); - $result['status'] = 'critical'; - $result['badge']['color'] = 'red'; - $result['description'] = sprintf( - '%s
%s
', - sprintf( /* translators: %s - the list of missing tables separated by comma. */ - esc_html( _n( 'Missing table: %s', 'Missing tables: %s', count( $missing_tables ), 'wp-mail-smtp' ) ), - esc_html( implode( ', ', $missing_tables ) ) - ), - esc_html__( 'WP Mail SMTP is using custom database tables for some of its features. In order to work properly, the custom tables should be created, and it seems they are missing. Please try to re-install the WP Mail SMTP plugin. If this issue persists, please contact our support.', 'wp-mail-smtp' ) - ); - } - - return $result; - } - - /** - * Check DB: - * - if any required plugin DB table is missing, - * - which of the required plugin DB tables exist. - * - * @since 2.1.2 - * - * @param string $check Which type of tables to return: 'missing' or 'existing'. - * - * @return array Missing or existing tables. - */ - private function get_db_tables( $check = 'missing' ) { - - global $wpdb; - - $tables = wp_mail_smtp()->get_custom_db_tables(); - - $missing_tables = []; - $existing_tables = []; - - foreach ( $tables as $table ) { - $db_result = $wpdb->get_var( $wpdb->prepare( 'SHOW TABLES LIKE %s', $table ) ); // phpcs:ignore - - if ( strtolower( $db_result ) !== strtolower( $table ) ) { - $missing_tables[] = $table; - } else { - $existing_tables[] = $table; - } - } - - return ( $check === 'existing' ) ? $existing_tables : $missing_tables; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/src/Tasks/Meta.php b/wp-content/plugins/wp-mail-smtp/src/Tasks/Meta.php deleted file mode 100644 index 0f3f0db..0000000 --- a/wp-content/plugins/wp-mail-smtp/src/Tasks/Meta.php +++ /dev/null @@ -1,529 +0,0 @@ -191 chars in JSON to AS, - * so we need to store them somewhere (and clean from time to time). - * - * @since 2.1.0 - */ -class Meta { - - /** - * Database table name. - * - * @since 2.1.0 - * - * @var string - */ - public $table_name; - - /** - * Database version. - * - * @since 2.1.0 - * - * @var string - */ - public $version; - - /** - * Primary key (unique field) for the database table. - * - * @since 2.1.0 - * - * @var string - */ - public $primary_key = 'id'; - - /** - * Database type identifier. - * - * @since 2.1.0 - * - * @var string - */ - public $type = 'tasks_meta'; - - /** - * Primary class constructor. - * - * @since 2.1.0 - */ - public function __construct() { - - $this->table_name = self::get_table_name(); - } - - /** - * Get the DB table name. - * - * @since 2.1.0 - * - * @return string - */ - public static function get_table_name() { - - global $wpdb; - - return $wpdb->prefix . 'wpmailsmtp_tasks_meta'; - } - - /** - * Get table columns. - * - * @since 2.1.0 - */ - public function get_columns() { - - return array( - 'id' => '%d', - 'action' => '%s', - 'data' => '%s', - 'date' => '%s', - ); - } - - /** - * Default column values. - * - * @since 2.1.0 - * - * @return array - */ - public function get_column_defaults() { - - return array( - 'action' => '', - 'data' => '', - 'date' => gmdate( 'Y-m-d H:i:s' ), - ); - } - - /** - * Retrieve a row from the database based on a given row ID. - * - * @since 2.1.0 - * - * @param int $row_id Row ID. - * - * @return null|object - */ - private function get_from_db( $row_id ) { - - global $wpdb; - - // phpcs:ignore WordPress.DB.DirectDatabaseQuery.NoCaching - return $wpdb->get_row( - $wpdb->prepare( - "SELECT * FROM {$this->table_name} WHERE {$this->primary_key} = %s LIMIT 1;", // phpcs:ignore - $row_id - ) - ); - } - - /** - * Retrieve a row based on column and row ID. - * - * @since 2.1.0 - * - * @param string $column Column name. - * @param int|string $row_id Row ID. - * - * @return object|null|bool Database query result, object or null on failure. - */ - public function get_by( $column, $row_id ) { - - global $wpdb; - - if ( empty( $row_id ) || ! array_key_exists( $column, $this->get_columns() ) ) { - return false; - } - - // phpcs:ignore WordPress.DB.DirectDatabaseQuery.NoCaching - return $wpdb->get_row( - $wpdb->prepare( - "SELECT * FROM $this->table_name WHERE $column = '%s' LIMIT 1;", // phpcs:ignore - $row_id - ) - ); - } - - /** - * Retrieve a value based on column name and row ID. - * - * @since 2.1.0 - * - * @param string $column Column name. - * @param int|string $row_id Row ID. - * - * @return string|null Database query result (as string), or null on failure. - */ - public function get_column( $column, $row_id ) { - - global $wpdb; - - if ( empty( $row_id ) || ! array_key_exists( $column, $this->get_columns() ) ) { - return false; - } - - // phpcs:ignore WordPress.DB.DirectDatabaseQuery.NoCaching - return $wpdb->get_var( - $wpdb->prepare( - "SELECT $column FROM $this->table_name WHERE $this->primary_key = '%s' LIMIT 1;", // phpcs:ignore - $row_id - ) - ); - } - - /** - * Retrieve one column value based on another given column and matching value. - * - * @since 2.1.0 - * - * @param string $column Column name. - * @param string $column_where Column to match against in the WHERE clause. - * @param string $column_value Value to match to the column in the WHERE clause. - * - * @return string|null Database query result (as string), or null on failure. - */ - public function get_column_by( $column, $column_where, $column_value ) { - - global $wpdb; - - if ( empty( $column ) || empty( $column_where ) || empty( $column_value ) || ! array_key_exists( $column, $this->get_columns() ) ) { - return false; - } - - // phpcs:ignore WordPress.DB.DirectDatabaseQuery.NoCaching - return $wpdb->get_var( - $wpdb->prepare( - "SELECT $column FROM $this->table_name WHERE $column_where = %s LIMIT 1;", // phpcs:ignore - $column_value - ) - ); - } - - /** - * Insert a new record into the database. - * - * @since 2.1.0 - * - * @param array $data Column data. - * @param string $type Optional. Data type context. - * - * @return int ID for the newly inserted record. 0 otherwise. - */ - private function add_to_db( $data, $type = '' ) { - - global $wpdb; - - // Set default values. - $data = wp_parse_args( $data, $this->get_column_defaults() ); - - do_action( 'wp_mail_smtp_pre_insert_' . $type, $data ); - - // Initialise column format array. - $column_formats = $this->get_columns(); - - // Force fields to lower case. - $data = array_change_key_case( $data ); - - // White list columns. - $data = array_intersect_key( $data, $column_formats ); - - // Reorder $column_formats to match the order of columns given in $data. - $data_keys = array_keys( $data ); - $column_formats = array_merge( array_flip( $data_keys ), $column_formats ); - - $wpdb->insert( $this->table_name, $data, $column_formats ); - - do_action( 'wp_mail_smtp_post_insert_' . $type, $wpdb->insert_id, $data ); - - return $wpdb->insert_id; - } - - /** - * Update an existing record in the database. - * - * @since 2.1.0 - * - * @param int|string $row_id Row ID for the record being updated. - * @param array $data Optional. Array of columns and associated data to update. Default empty array. - * @param string $where Optional. Column to match against in the WHERE clause. If empty, $primary_key - * will be used. Default empty. - * @param string $type Optional. Data type context, e.g. 'affiliate', 'creative', etc. Default empty. - * - * @return bool False if the record could not be updated, true otherwise. - */ - public function update( $row_id, $data = array(), $where = '', $type = '' ) { - - global $wpdb; - - // Row ID must be a positive integer. - $row_id = absint( $row_id ); - - if ( empty( $row_id ) ) { - return false; - } - - if ( empty( $where ) ) { - $where = $this->primary_key; - } - - do_action( 'wp_mail_smtp_pre_update_' . $type, $data ); - - // Initialise column format array. - $column_formats = $this->get_columns(); - - // Force fields to lower case. - $data = array_change_key_case( $data ); - - // White list columns. - $data = array_intersect_key( $data, $column_formats ); - - // Reorder $column_formats to match the order of columns given in $data. - $data_keys = array_keys( $data ); - $column_formats = array_merge( array_flip( $data_keys ), $column_formats ); - - // phpcs:ignore WordPress.DB.DirectDatabaseQuery.NoCaching - if ( false === $wpdb->update( $this->table_name, $data, array( $where => $row_id ), $column_formats ) ) { - return false; - } - - do_action( 'wp_mail_smtp_post_update_' . $type, $data ); - - return true; - } - - /** - * Delete a record from the database. - * - * @since 2.1.0 - * - * @param int|string $row_id Row ID. - * - * @return bool False if the record could not be deleted, true otherwise. - */ - public function delete( $row_id = 0 ) { - - global $wpdb; - - // Row ID must be positive integer. - $row_id = absint( $row_id ); - - if ( empty( $row_id ) ) { - return false; - } - - do_action( 'wp_mail_smtp_pre_delete', $row_id ); - do_action( 'wp_mail_smtp_pre_delete_' . $this->type, $row_id ); - - // phpcs:ignore WordPress.DB.DirectDatabaseQuery.NoCaching - if ( false === $wpdb->query( $wpdb->prepare( "DELETE FROM {$this->table_name} WHERE {$this->primary_key} = %d", $row_id ) ) ) { // phpcs:ignore - return false; - } - - do_action( 'wp_mail_smtp_post_delete', $row_id ); - do_action( 'wp_mail_smtp_post_delete_' . $this->type, $row_id ); - - return true; - } - - /** - * Delete a record from the database by column. - * - * @since 2.1.0 - * - * @param string $column Column name. - * @param int|string $column_value Column value. - * - * @return bool False if the record could not be deleted, true otherwise. - */ - public function delete_by( $column, $column_value ) { - - global $wpdb; - - if ( empty( $column ) || empty( $column_value ) || ! array_key_exists( $column, $this->get_columns() ) ) { - return false; - } - - do_action( 'wp_mail_smtp_pre_delete', $column_value ); - do_action( 'wp_mail_smtp_pre_delete_' . $this->type, $column_value ); - - // phpcs:ignore WordPress.DB.DirectDatabaseQuery.NoCaching - if ( false === $wpdb->query( $wpdb->prepare( "DELETE FROM {$this->table_name} WHERE $column = %s", $column_value ) ) ) { // phpcs:ignore - return false; - } - - do_action( 'wp_mail_smtp_post_delete', $column_value ); - do_action( 'wp_mail_smtp_post_delete_' . $this->type, $column_value ); - - return true; - } - - /** - * Check if the given table exists. - * - * @since 2.1.0 - * - * @param string $table The table name. Defaults to the child class table name. - * - * @return string|null If the table name exists. - */ - public function table_exists( $table = '' ) { - - global $wpdb; - - if ( ! empty( $table ) ) { - $table = sanitize_text_field( $table ); - } else { - $table = $this->table_name; - } - - // phpcs:ignore WordPress.DB.DirectDatabaseQuery.NoCaching - $db_result = $wpdb->get_var( $wpdb->prepare( 'SHOW TABLES LIKE %s', $table ) ); - - return strtolower( $db_result ) === strtolower( $table ); - } - - /** - * Create custom entry meta database table. - * Used in migration. - * - * @since 2.1.0 - */ - public function create_table() { - - global $wpdb; - - require_once ABSPATH . 'wp-admin/includes/upgrade.php'; - - $charset_collate = ''; - - if ( ! empty( $wpdb->charset ) ) { - $charset_collate .= "DEFAULT CHARACTER SET {$wpdb->charset}"; - } - if ( ! empty( $wpdb->collate ) ) { - $charset_collate .= " COLLATE {$wpdb->collate}"; - } - - $sql = "CREATE TABLE {$this->table_name} ( - id bigint(20) NOT NULL AUTO_INCREMENT, - action varchar(255) NOT NULL, - data longtext NOT NULL, - date datetime NOT NULL, - PRIMARY KEY (id) - ) {$charset_collate};"; - - dbDelta( $sql ); - } - - /** - * Remove queue records for a defined period of time in the past. - * Calling this method will remove queue records that are older than $period seconds. - * - * @since 2.1.0 - * - * @param string $action Action that should be cleaned up. - * @param int $interval Number of seconds from now. - * - * @return int Number of removed tasks meta records. - */ - public function clean_by( $action, $interval ) { - - global $wpdb; - - if ( empty( $action ) || empty( $interval ) ) { - return 0; - } - - $table = self::get_table_name(); - $action = sanitize_key( $action ); - $date = gmdate( 'Y-m-d H:i:s', time() - (int) $interval ); - - // phpcs:ignore WordPress.DB.DirectDatabaseQuery.NoCaching - return (int) $wpdb->query( - $wpdb->prepare( - "DELETE FROM `$table` WHERE action = %s AND date < %s", // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared - $action, - $date - ) - ); - } - - /** - * Inserts a new record into the database. - * - * @since 2.1.0 - * - * @param array $data Column data. - * @param string $type Optional. Data type context. - * - * @return int ID for the newly inserted record. 0 otherwise. - */ - public function add( $data, $type = '' ) { - - if ( empty( $data['action'] ) || ! is_string( $data['action'] ) ) { - return 0; - } - - $data['action'] = sanitize_key( $data['action'] ); - - if ( isset( $data['data'] ) ) { - $string = wp_json_encode( $data['data'] ); - - if ( $string === false ) { - $string = ''; - } - - /* - * We are encoding the string representation of all the data - * to make sure that nothing can harm the database. - * This is not an encryption, and we need this data later as is, - * so we are using one of the fastest way to do that. - * This data is removed from DB on a daily basis. - */ - // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode - $data['data'] = base64_encode( $string ); - } - - if ( empty( $type ) ) { - $type = $this->type; - } - - return $this->add_to_db( $data, $type ); - } - - /** - * Retrieve a row from the database based on a given row ID. - * - * @since 2.1.0} - * - * @param int $meta_id Meta ID. - * - * @return null|object - */ - public function get( $meta_id ) { - - $meta = $this->get_from_db( $meta_id ); - - if ( empty( $meta ) || empty( $meta->data ) ) { - return $meta; - } - - // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_decode - $decoded = base64_decode( $meta->data ); - - if ( $decoded === false || ! is_string( $decoded ) ) { - $meta->data = ''; - } else { - $meta->data = json_decode( $decoded, true ); - } - - return $meta; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/src/Tasks/Task.php b/wp-content/plugins/wp-mail-smtp/src/Tasks/Task.php deleted file mode 100644 index 910089d..0000000 --- a/wp-content/plugins/wp-mail-smtp/src/Tasks/Task.php +++ /dev/null @@ -1,309 +0,0 @@ -action = sanitize_key( $action ); - - if ( empty( $this->action ) ) { - throw new \UnexpectedValueException( 'Task action cannot be empty.' ); - } - } - - /** - * Define the type of the task as async. - * - * @since 2.1.0 - * - * @return Task - */ - public function async() { - - $this->type = self::TYPE_ASYNC; - - return $this; - } - - /** - * Define the type of the task as recurring. - * - * @since 2.1.0 - * - * @param int $timestamp When the first instance of the job will run. - * @param int $interval How long to wait between runs. - * - * @return Task - */ - public function recurring( $timestamp, $interval ) { - - $this->type = self::TYPE_RECURRING; - $this->timestamp = (int) $timestamp; - $this->interval = (int) $interval; - - return $this; - } - - /** - * Define the type of the task as one-time. - * - * @since 2.1.0 - * - * @param int $timestamp When the first instance of the job will run. - * - * @return Task - */ - public function once( $timestamp ) { - - $this->type = self::TYPE_ONCE; - $this->timestamp = (int) $timestamp; - - return $this; - } - - /** - * Pass any number of params that should be saved to Meta table. - * - * @since 2.1.0 - * - * @return Task - */ - public function params() { - - $this->params = func_get_args(); - - return $this; - } - - /** - * Register the action. - * Should be the final call in a chain. - * - * @since 2.1.0 - * - * @return null|string Action ID. - */ - public function register() { - - $action_id = null; - - // No processing if ActionScheduler is not usable. - if ( ! Tasks::is_usable() ) { - return $action_id; - } - - // Save data to tasks meta table. - $task_meta = new Meta(); - $this->meta_id = $task_meta->add( - [ - 'action' => $this->action, - 'data' => isset( $this->params ) ? $this->params : [], - ] - ); - - if ( empty( $this->meta_id ) ) { - return $action_id; - } - - // Prevent 500 errors when Action Scheduler tables don't exist. - try { - switch ( $this->type ) { - case self::TYPE_ASYNC: - $action_id = $this->register_async(); - break; - - case self::TYPE_RECURRING: - $action_id = $this->register_recurring(); - break; - - case self::TYPE_ONCE: - $action_id = $this->register_once(); - break; - } - } catch ( \RuntimeException $exception ) { - $action_id = null; - } - - return $action_id; - } - - /** - * Register the async task. - * - * @since 2.1.0 - * - * @return null|string Action ID. - */ - protected function register_async() { - - if ( ! function_exists( 'as_enqueue_async_action' ) ) { - return null; - } - - return as_enqueue_async_action( - $this->action, - [ 'tasks_meta_id' => $this->meta_id ], - Tasks::GROUP - ); - } - - /** - * Register the recurring task. - * - * @since 2.1.0 - * - * @return null|string Action ID. - */ - protected function register_recurring() { - - if ( ! function_exists( 'as_schedule_recurring_action' ) ) { - return null; - } - - return as_schedule_recurring_action( - $this->timestamp, - $this->interval, - $this->action, - [ 'tasks_meta_id' => $this->meta_id ], - Tasks::GROUP - ); - } - - /** - * Register the one-time task. - * - * @since 2.1.0 - * - * @return null|string Action ID. - */ - protected function register_once() { - - if ( ! function_exists( 'as_schedule_single_action' ) ) { - return null; - } - - return as_schedule_single_action( - $this->timestamp, - $this->action, - [ 'tasks_meta_id' => $this->meta_id ], - Tasks::GROUP - ); - } - - /** - * Cancel all occurrences of this task. - * - * @since 2.1.0 - * - * @return null|bool|string Null if no matching action found, - * false if AS library is missing, - * string of the scheduled action ID if a scheduled action was found and unscheduled. - */ - public function cancel() { - - // Exit if AS function does not exist. - if ( ! function_exists( 'as_unschedule_all_actions' ) ) { - return false; - } - - return as_unschedule_all_actions( $this->action ); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/src/Tasks/Tasks.php b/wp-content/plugins/wp-mail-smtp/src/Tasks/Tasks.php deleted file mode 100644 index 8692aa5..0000000 --- a/wp-content/plugins/wp-mail-smtp/src/Tasks/Tasks.php +++ /dev/null @@ -1,156 +0,0 @@ -get_tasks() as $task ) { - if ( ! is_subclass_of( $task, '\WPMailSMTP\Tasks\Task' ) ) { - continue; - } - - $new_task = new $task(); - - // Run the init method, if a task has one defined. - if ( method_exists( $new_task, 'init' ) ) { - $new_task->init(); - } - } - } - - /** - * Get the list of default scheduled tasks. - * Tasks, that are fired under certain specific circumstances - * (like sending emails) are not listed here. - * - * @since 2.1.0 - * - * @return Task[] List of tasks classes. - */ - public function get_tasks() { - - return apply_filters( 'wp_mail_smtp_tasks_get_tasks', array() ); - } - - /** - * Hide Action Scheduler admin area when not in debug mode. - * - * @since 2.1.0 - */ - public function admin_hide_as_menu() { - - // Filter to redefine that WP Mail SMTP hides Tools > Action Scheduler menu item. - if ( apply_filters( 'wp_mail_smtp_tasks_admin_hide_as_menu', true ) ) { - remove_submenu_page( 'tools.php', 'action-scheduler' ); - } - } - - /** - * Create a new task. - * Used for "inline" tasks, that require additional information - * from the plugin runtime before they can be scheduled. - * - * Example: - * wp_mail_smtp()->get( 'tasks' ) - * ->create( 'i_am_the_dude' ) - * ->async() - * ->params( 'The Big Lebowski', 1998 ) - * ->register(); - * - * This `i_am_the_dude` action will be later processed as: - * add_action( 'i_am_the_dude', 'thats_what_you_call_me' ); - * - * @since 2.1.0 - * - * @param string $action Action that will be used as a hook. - * - * @return \WPMailSMTP\Tasks\Task - */ - public function create( $action ) { - - return new Task( $action ); - } - - /** - * Cancel all the AS actions for a group. - * - * @since 2.1.0 - * - * @param string $group Group to cancel all actions for. - */ - public function cancel_all( $group = '' ) { - - if ( empty( $group ) ) { - $group = self::GROUP; - } else { - $group = sanitize_key( $group ); - } - - if ( class_exists( 'ActionScheduler_DBStore' ) ) { - \ActionScheduler_DBStore::instance()->cancel_actions_by_group( $group ); - } - } - - /** - * Whether ActionScheduler thinks that it has migrated or not. - * - * @since 2.1.0 - * - * @return bool - */ - public static function is_usable() { - - // No tasks if ActionScheduler wasn't loaded. - if ( ! class_exists( 'ActionScheduler_DataController' ) ) { - return false; - } - - return \ActionScheduler_DataController::is_migration_complete(); - } - - /** - * Whether task has been scheduled and is pending. - * - * @since 2.1.0 - * - * @param string $hook Hook to check for. - * - * @return bool - */ - public static function is_scheduled( $hook ) { - - if ( ! function_exists( 'as_next_scheduled_action' ) ) { - return false; - } - - return as_next_scheduled_action( $hook ); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/src/Upgrade.php b/wp-content/plugins/wp-mail-smtp/src/Upgrade.php deleted file mode 100644 index c97238e..0000000 --- a/wp-content/plugins/wp-mail-smtp/src/Upgrade.php +++ /dev/null @@ -1,73 +0,0 @@ -upgrades(); - - if ( empty( $upgrades ) ) { - return; - } - - // Run any available upgrades. - foreach ( $upgrades as $upgrade ) { - $this->{$upgrade}(); - } - - // Update version post upgrade(s). - update_option( 'wp_mail_smtp_version', WPMS_PLUGIN_VER ); - } - - /** - * Whether we need to perform an upgrade. - * - * @since 1.1.0 - * - * @return array - */ - protected function upgrades() { - - $version = get_option( 'wp_mail_smtp_version' ); - $upgrades = array(); - - // Version 1.1.0 upgrade; prior to this the option was not available. - if ( empty( $version ) ) { - $upgrades[] = 'v110_upgrade'; - } - - return $upgrades; - } - - /** - * Upgrade routine for v1.1.0. - * - * Set SMTPAutoTLS to true. - * - * @since 1.1.0 - */ - public function v110_upgrade() { - - // Enable SMTPAutoTLS option. - $values = [ - 'smtp' => [ - 'autotls' => true, - ], - ]; - - Options::init()->set( $values, false, false ); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/src/UsageTracking/SendUsageTask.php b/wp-content/plugins/wp-mail-smtp/src/UsageTracking/SendUsageTask.php deleted file mode 100644 index c735597..0000000 --- a/wp-content/plugins/wp-mail-smtp/src/UsageTracking/SendUsageTask.php +++ /dev/null @@ -1,125 +0,0 @@ -recurring( $this->generate_start_date(), WEEK_IN_SECONDS ) - ->register(); - } - - /** - * Randomly pick a timestamp - * which is not more than 1 week in the future - * starting from next sunday. - * - * @since 2.3.0 - * - * @return int - */ - private function generate_start_date() { - - $tracking = []; - - $tracking['days'] = wp_rand( 0, 6 ) * DAY_IN_SECONDS; - $tracking['hours'] = wp_rand( 0, 23 ) * HOUR_IN_SECONDS; - $tracking['minutes'] = wp_rand( 0, 59 ) * MINUTE_IN_SECONDS; - $tracking['seconds'] = wp_rand( 0, 59 ); - - return strtotime( 'next sunday' ) + array_sum( $tracking ); - } - - /** - * Send the actual data in a POST request. - * This will be executed in a separate process via Action Scheduler. - * - * @since 2.3.0 - */ - public function process() { - - $last_run = get_option( self::LAST_RUN ); - - // Make sure we do not run it more than once a day. - if ( - $last_run !== false && - ( time() - $last_run ) < DAY_IN_SECONDS - ) { - return; - } - - // Send data to the usage tracking API. - $ut = new UsageTracking(); - - wp_remote_post( - self::TRACK_URL, - [ - 'timeout' => 5, - 'redirection' => 5, - 'httpversion' => '1.1', - 'blocking' => true, - 'body' => $ut->get_data(), - 'user-agent' => $ut->get_user_agent(), - ] - ); - - // Update the last run option to the current timestamp. - update_option( self::LAST_RUN, time() ); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/src/UsageTracking/UsageTracking.php b/wp-content/plugins/wp-mail-smtp/src/UsageTracking/UsageTracking.php deleted file mode 100644 index 292ff88..0000000 --- a/wp-content/plugins/wp-mail-smtp/src/UsageTracking/UsageTracking.php +++ /dev/null @@ -1,250 +0,0 @@ -get( 'general', self::SETTINGS_SLUG ) - ); - } - - /** - * Load usage tracking functionality. - * - * @since 2.3.0 - */ - public function load() { - - // Check if loading the usage tracking functionality is allowed. - if ( ! (bool) apply_filters( 'wp_mail_smtp_usage_tracking_load_allowed', true ) ) { - return; - } - - // Deregister the action if option is disabled. - add_action( - 'wp_mail_smtp_options_set_after', - function () { - - if ( ! $this->is_enabled() ) { - ( new SendUsageTask() )->cancel(); - } - } - ); - - // Register the action handler only if enabled. - if ( $this->is_enabled() ) { - add_filter( - 'wp_mail_smtp_tasks_get_tasks', - static function ( $tasks ) { - $tasks[] = SendUsageTask::class; - - return $tasks; - } - ); - } - } - - /** - * Get the User Agent string that will be sent to the API. - * - * @since 2.3.0 - * - * @return string - */ - public function get_user_agent() { - - return 'WPMailSMTP/' . WPMS_PLUGIN_VER . '; ' . get_bloginfo( 'url' ); - } - - /** - * Get data for sending to the server. - * - * @since 2.3.0 - * - * @return array - */ - public function get_data() { - - global $wpdb; - - $theme_data = wp_get_theme(); - $activated_dates = get_option( 'wp_mail_smtp_activated', [] ); - $options = Options::init(); - $mailer = wp_mail_smtp()->get_providers()->get_mailer( - $options->get( 'mail', 'mailer' ), - wp_mail_smtp()->get_processor()->get_phpmailer() - ); - - $data = [ - // Generic data (environment). - 'url' => home_url(), - 'php_version' => PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION, - 'wp_version' => get_bloginfo( 'version' ), - 'mysql_version' => $wpdb->db_version(), - 'server_version' => isset( $_SERVER['SERVER_SOFTWARE'] ) ? sanitize_text_field( wp_unslash( $_SERVER['SERVER_SOFTWARE'] ) ) : '', - 'is_ssl' => is_ssl(), - 'is_multisite' => is_multisite(), - 'sites_count' => $this->get_sites_total(), - 'active_plugins' => $this->get_active_plugins(), - 'theme_name' => $theme_data->name, - 'theme_version' => $theme_data->version, - 'locale' => get_locale(), - 'timezone_offset' => $this->get_timezone_offset(), - // WP Mail SMTP - specific data. - 'wp_mail_smtp_version' => WPMS_PLUGIN_VER, - 'wp_mail_smtp_license_key' => wp_mail_smtp()->get_license_key(), - 'wp_mail_smtp_license_type' => wp_mail_smtp()->get_license_type(), - 'wp_mail_smtp_is_pro' => wp_mail_smtp()->is_pro(), - 'wp_mail_smtp_activated' => get_option( 'wp_mail_smtp_activated_time', 0 ), - 'wp_mail_smtp_lite_installed_date' => $this->get_installed( $activated_dates, 'lite' ), - 'wp_mail_smtp_pro_installed_date' => $this->get_installed( $activated_dates, 'pro' ), - 'wp_mail_smtp_mailer' => $options->get( 'mail', 'mailer' ), - 'wp_mail_smtp_from_email_force' => (bool) $options->get( 'mail', 'from_email_force' ), - 'wp_mail_smtp_from_name_force' => (bool) $options->get( 'mail', 'from_name_force' ), - 'wp_mail_smtp_return_path' => (bool) $options->get( 'mail', 'return_path' ), - 'wp_mail_smtp_do_not_send' => (bool) $options->get( 'general', 'do_not_send' ), - 'wp_mail_smtp_is_white_labeled' => wp_mail_smtp()->is_white_labeled(), - 'wp_mail_smtp_is_const_enabled' => (bool) $options->is_const_enabled(), - 'wp_mail_smtp_conflicts_is_detected' => ( new Conflicts() )->is_detected(), - 'wp_mail_smtp_is_mailer_complete' => empty( $mailer ) ? false : $mailer->is_mailer_complete(), - ]; - - if ( 'smtp' === $options->get( 'mail', 'mailer' ) ) { - $data['wp_mail_smtp_other_smtp_host'] = $options->get( 'smtp', 'host' ); - $data['wp_mail_smtp_other_smtp_encryption'] = $options->get( 'smtp', 'encryption' ); - $data['wp_mail_smtp_other_smtp_port'] = $options->get( 'smtp', 'port' ); - $data['wp_mail_smtp_other_smtp_auth'] = (bool) $options->get( 'smtp', 'auth' ); - $data['wp_mail_smtp_other_smtp_autotls'] = (bool) $options->get( 'smtp', 'autotls' ); - } - - if ( is_multisite() ) { - $data['wp_mail_smtp_multisite_network_wide'] = WP::use_global_plugin_settings(); - } - - return apply_filters( 'wp_mail_smtp_usage_tracking_get_data', $data ); - } - - /** - * Get timezone offset. - * We use `wp_timezone_string()` when it's available (WP 5.3+), - * otherwise fallback to the same code, copy-pasted. - * - * @since 2.3.0 - * - * @return string - */ - private function get_timezone_offset() { - - // It was added in WordPress 5.3. - if ( function_exists( 'wp_timezone_string' ) ) { - return wp_timezone_string(); - } - - /* - * The code below is basically a copy-paste from that function. - */ - - $timezone_string = get_option( 'timezone_string' ); - - if ( $timezone_string ) { - return $timezone_string; - } - - $offset = (float) get_option( 'gmt_offset' ); - $hours = (int) $offset; - $minutes = ( $offset - $hours ); - - $sign = ( $offset < 0 ) ? '-' : '+'; - $abs_hour = abs( $hours ); - $abs_mins = abs( $minutes * 60 ); - - return sprintf( '%s%02d:%02d', $sign, $abs_hour, $abs_mins ); - } - - /** - * Get the list of active plugins. - * - * @since 2.3.0 - * - * @return array - */ - private function get_active_plugins() { - - if ( ! function_exists( 'get_plugins' ) ) { - include ABSPATH . '/wp-admin/includes/plugin.php'; - } - - $active_plugins = []; - - foreach ( get_mu_plugins() as $path => $plugin ) { - $active_plugins[ $path ] = isset( $plugin['Version'] ) ? $plugin['Version'] : 'Not Set'; - } - - foreach ( get_plugins() as $path => $plugin ) { - if ( is_plugin_active( $path ) ) { - $active_plugins[ $path ] = isset( $plugin['Version'] ) ? $plugin['Version'] : 'Not Set'; - } - } - - return $active_plugins; - } - - /** - * Installed date. - * - * @since 2.3.0 - * - * @param array $activated_dates Input array with dates. - * @param string $key Input key what you want to get. - * - * @return mixed - */ - private function get_installed( $activated_dates, $key ) { - - if ( ! empty( $activated_dates[ $key ] ) ) { - return $activated_dates[ $key ]; - } - - return false; - } - - /** - * Total number of sites. - * - * @since 2.3.0 - * - * @return int - */ - private function get_sites_total() { - - return function_exists( 'get_blog_count' ) ? (int) get_blog_count() : 1; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/src/WP.php b/wp-content/plugins/wp-mail-smtp/src/WP.php deleted file mode 100644 index 2a6cf44..0000000 --- a/wp-content/plugins/wp-mail-smtp/src/WP.php +++ /dev/null @@ -1,305 +0,0 @@ - $message, - 'class' => $class, - 'is_dismissible' => (bool) $is_dismissible, - ); - } - - /** - * Display all notices. - * - * @since 1.0.0 - * @since 1.5.0 Allow the notice to be dismissible, remove the id attribute, which is not unique. - */ - public static function display_admin_notices() { - - foreach ( (array) self::$admin_notices as $notice ) : - $dismissible = $notice['is_dismissible'] ? 'is-dismissible' : ''; - ?> - -- -
-' . - __( 'Action Scheduler is a scalable, traceable job queue for background processing large sets of actions. Action Scheduler works by triggering an action hook to run at some time in the future. Scheduled actions can also be scheduled to run on a recurring schedule.', 'action-scheduler' ) . - '
', - ) - ); - - $screen->add_help_tab( - array( - 'id' => 'action_scheduler_columns', - 'title' => __( 'Columns', 'action-scheduler' ), - 'content' => - '%s => %s
' . $action->get_hook() . '
';
- if ( 1 == $notification['success'] ) {
- $class = 'updated';
- switch ( $notification['row_action_type'] ) {
- case 'run' :
- /* translators: %s: action HTML */
- $action_message_html = sprintf( __( 'Successfully executed action: %s', 'action-scheduler' ), $action_hook_html );
- break;
- case 'cancel' :
- /* translators: %s: action HTML */
- $action_message_html = sprintf( __( 'Successfully canceled action: %s', 'action-scheduler' ), $action_hook_html );
- break;
- default :
- /* translators: %s: action HTML */
- $action_message_html = sprintf( __( 'Successfully processed change for action: %s', 'action-scheduler' ), $action_hook_html );
- break;
- }
- } else {
- $class = 'error';
- /* translators: 1: action HTML 2: action ID 3: error message */
- $action_message_html = sprintf( __( 'Could not process change for action: "%1$s" (ID: %2$d). Error: %3$s', 'action-scheduler' ), $action_hook_html, esc_html( $notification['action_id'] ), esc_html( $notification['error_message'] ) );
- }
-
- $action_message_html = apply_filters( 'action_scheduler_admin_notice_html', $action_message_html, $action, $notification );
-
- $this->admin_notices[] = array(
- 'class' => $class,
- 'message' => $action_message_html,
- );
- }
-
- parent::display_admin_notices();
- }
-
- /**
- * Prints the scheduled date in a human friendly format.
- *
- * @param array $row The array representation of the current row of the table
- *
- * @return string
- */
- public function column_schedule( $row ) {
- return $this->get_schedule_display_string( $row['schedule'] );
- }
-
- /**
- * Get the scheduled date in a human friendly format.
- *
- * @param ActionScheduler_Schedule $schedule
- * @return string
- */
- protected function get_schedule_display_string( ActionScheduler_Schedule $schedule ) {
-
- $schedule_display_string = '';
-
- if ( ! $schedule->get_date() ) {
- return '0000-00-00 00:00:00';
- }
-
- $next_timestamp = $schedule->get_date()->getTimestamp();
-
- $schedule_display_string .= $schedule->get_date()->format( 'Y-m-d H:i:s O' );
- $schedule_display_string .= '' . wp_kses_post( $notice ) . '
- | ||||
---|---|---|---|---|
- | - | |||
- | - | - | - | - |
%1$s | %2$s | %3$s | %4$s |
' . wp_kses_post( $notice['message'] ) . '
'; - echo '%s
- * For more information about this service, see the API - * Documentation - *
- * - * @author Google, Inc. - */ -class Google_Service_Gmail extends \WPMailSMTP\Vendor\Google_Service -{ - /** Read, compose, send, and permanently delete all your email from Gmail. */ - const MAIL_GOOGLE_COM = "https://mail.google.com/"; - /** Manage drafts and send emails when you interact with the add-on. */ - const GMAIL_ADDONS_CURRENT_ACTION_COMPOSE = "https://www.googleapis.com/auth/gmail.addons.current.action.compose"; - /** View your email messages when you interact with the add-on. */ - const GMAIL_ADDONS_CURRENT_MESSAGE_ACTION = "https://www.googleapis.com/auth/gmail.addons.current.message.action"; - /** View your email message metadata when the add-on is running. */ - const GMAIL_ADDONS_CURRENT_MESSAGE_METADATA = "https://www.googleapis.com/auth/gmail.addons.current.message.metadata"; - /** View your email messages when the add-on is running. */ - const GMAIL_ADDONS_CURRENT_MESSAGE_READONLY = "https://www.googleapis.com/auth/gmail.addons.current.message.readonly"; - /** Manage drafts and send emails. */ - const GMAIL_COMPOSE = "https://www.googleapis.com/auth/gmail.compose"; - /** Insert mail into your mailbox. */ - const GMAIL_INSERT = "https://www.googleapis.com/auth/gmail.insert"; - /** Manage mailbox labels. */ - const GMAIL_LABELS = "https://www.googleapis.com/auth/gmail.labels"; - /** View your email message metadata such as labels and headers, but not the email body. */ - const GMAIL_METADATA = "https://www.googleapis.com/auth/gmail.metadata"; - /** View and modify but not delete your email. */ - const GMAIL_MODIFY = "https://www.googleapis.com/auth/gmail.modify"; - /** View your email messages and settings. */ - const GMAIL_READONLY = "https://www.googleapis.com/auth/gmail.readonly"; - /** Send email on your behalf. */ - const GMAIL_SEND = "https://www.googleapis.com/auth/gmail.send"; - /** Manage your basic mail settings. */ - const GMAIL_SETTINGS_BASIC = "https://www.googleapis.com/auth/gmail.settings.basic"; - /** Manage your sensitive mail settings, including who can manage your mail. */ - const GMAIL_SETTINGS_SHARING = "https://www.googleapis.com/auth/gmail.settings.sharing"; - public $users; - public $users_drafts; - public $users_history; - public $users_labels; - public $users_messages; - public $users_messages_attachments; - public $users_settings; - public $users_settings_delegates; - public $users_settings_filters; - public $users_settings_forwardingAddresses; - public $users_settings_sendAs; - public $users_settings_sendAs_smimeInfo; - public $users_threads; - /** - * Constructs the internal representation of the Gmail service. - * - * @param Google_Client $client The client used to deliver requests. - * @param string $rootUrl The root URL used for requests to the service. - */ - public function __construct(\WPMailSMTP\Vendor\Google_Client $client, $rootUrl = null) - { - parent::__construct($client); - $this->rootUrl = $rootUrl ?: 'https://gmail.googleapis.com/'; - $this->servicePath = ''; - $this->batchPath = 'batch'; - $this->version = 'v1'; - $this->serviceName = 'gmail'; - $this->users = new \WPMailSMTP\Vendor\Google_Service_Gmail_Resource_Users($this, $this->serviceName, 'users', array('methods' => array('getProfile' => array('path' => 'gmail/v1/users/{userId}/profile', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'stop' => array('path' => 'gmail/v1/users/{userId}/stop', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'watch' => array('path' => 'gmail/v1/users/{userId}/watch', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true)))))); - $this->users_drafts = new \WPMailSMTP\Vendor\Google_Service_Gmail_Resource_UsersDrafts($this, $this->serviceName, 'drafts', array('methods' => array('create' => array('path' => 'gmail/v1/users/{userId}/drafts', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'delete' => array('path' => 'gmail/v1/users/{userId}/drafts/{id}', 'httpMethod' => 'DELETE', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'get' => array('path' => 'gmail/v1/users/{userId}/drafts/{id}', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'format' => array('location' => 'query', 'type' => 'string'))), 'list' => array('path' => 'gmail/v1/users/{userId}/drafts', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'includeSpamTrash' => array('location' => 'query', 'type' => 'boolean'), 'q' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))), 'send' => array('path' => 'gmail/v1/users/{userId}/drafts/send', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'update' => array('path' => 'gmail/v1/users/{userId}/drafts/{id}', 'httpMethod' => 'PUT', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true)))))); - $this->users_history = new \WPMailSMTP\Vendor\Google_Service_Gmail_Resource_UsersHistory($this, $this->serviceName, 'history', array('methods' => array('list' => array('path' => 'gmail/v1/users/{userId}/history', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'startHistoryId' => array('location' => 'query', 'type' => 'string'), 'historyTypes' => array('location' => 'query', 'type' => 'string', 'repeated' => \true), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'labelId' => array('location' => 'query', 'type' => 'string')))))); - $this->users_labels = new \WPMailSMTP\Vendor\Google_Service_Gmail_Resource_UsersLabels($this, $this->serviceName, 'labels', array('methods' => array('create' => array('path' => 'gmail/v1/users/{userId}/labels', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'delete' => array('path' => 'gmail/v1/users/{userId}/labels/{id}', 'httpMethod' => 'DELETE', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'get' => array('path' => 'gmail/v1/users/{userId}/labels/{id}', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'list' => array('path' => 'gmail/v1/users/{userId}/labels', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'patch' => array('path' => 'gmail/v1/users/{userId}/labels/{id}', 'httpMethod' => 'PATCH', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'update' => array('path' => 'gmail/v1/users/{userId}/labels/{id}', 'httpMethod' => 'PUT', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true)))))); - $this->users_messages = new \WPMailSMTP\Vendor\Google_Service_Gmail_Resource_UsersMessages($this, $this->serviceName, 'messages', array('methods' => array('batchDelete' => array('path' => 'gmail/v1/users/{userId}/messages/batchDelete', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'batchModify' => array('path' => 'gmail/v1/users/{userId}/messages/batchModify', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'delete' => array('path' => 'gmail/v1/users/{userId}/messages/{id}', 'httpMethod' => 'DELETE', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'get' => array('path' => 'gmail/v1/users/{userId}/messages/{id}', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'metadataHeaders' => array('location' => 'query', 'type' => 'string', 'repeated' => \true), 'format' => array('location' => 'query', 'type' => 'string'))), 'import' => array('path' => 'gmail/v1/users/{userId}/messages/import', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'processForCalendar' => array('location' => 'query', 'type' => 'boolean'), 'internalDateSource' => array('location' => 'query', 'type' => 'string'), 'deleted' => array('location' => 'query', 'type' => 'boolean'), 'neverMarkSpam' => array('location' => 'query', 'type' => 'boolean'))), 'insert' => array('path' => 'gmail/v1/users/{userId}/messages', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'internalDateSource' => array('location' => 'query', 'type' => 'string'), 'deleted' => array('location' => 'query', 'type' => 'boolean'))), 'list' => array('path' => 'gmail/v1/users/{userId}/messages', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'q' => array('location' => 'query', 'type' => 'string'), 'labelIds' => array('location' => 'query', 'type' => 'string', 'repeated' => \true), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'includeSpamTrash' => array('location' => 'query', 'type' => 'boolean'))), 'modify' => array('path' => 'gmail/v1/users/{userId}/messages/{id}/modify', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'send' => array('path' => 'gmail/v1/users/{userId}/messages/send', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'trash' => array('path' => 'gmail/v1/users/{userId}/messages/{id}/trash', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'untrash' => array('path' => 'gmail/v1/users/{userId}/messages/{id}/untrash', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true)))))); - $this->users_messages_attachments = new \WPMailSMTP\Vendor\Google_Service_Gmail_Resource_UsersMessagesAttachments($this, $this->serviceName, 'attachments', array('methods' => array('get' => array('path' => 'gmail/v1/users/{userId}/messages/{messageId}/attachments/{id}', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'messageId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true)))))); - $this->users_settings = new \WPMailSMTP\Vendor\Google_Service_Gmail_Resource_UsersSettings($this, $this->serviceName, 'settings', array('methods' => array('getAutoForwarding' => array('path' => 'gmail/v1/users/{userId}/settings/autoForwarding', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'getImap' => array('path' => 'gmail/v1/users/{userId}/settings/imap', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'getLanguage' => array('path' => 'gmail/v1/users/{userId}/settings/language', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'getPop' => array('path' => 'gmail/v1/users/{userId}/settings/pop', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'getVacation' => array('path' => 'gmail/v1/users/{userId}/settings/vacation', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'updateAutoForwarding' => array('path' => 'gmail/v1/users/{userId}/settings/autoForwarding', 'httpMethod' => 'PUT', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'updateImap' => array('path' => 'gmail/v1/users/{userId}/settings/imap', 'httpMethod' => 'PUT', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'updateLanguage' => array('path' => 'gmail/v1/users/{userId}/settings/language', 'httpMethod' => 'PUT', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'updatePop' => array('path' => 'gmail/v1/users/{userId}/settings/pop', 'httpMethod' => 'PUT', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'updateVacation' => array('path' => 'gmail/v1/users/{userId}/settings/vacation', 'httpMethod' => 'PUT', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true)))))); - $this->users_settings_delegates = new \WPMailSMTP\Vendor\Google_Service_Gmail_Resource_UsersSettingsDelegates($this, $this->serviceName, 'delegates', array('methods' => array('create' => array('path' => 'gmail/v1/users/{userId}/settings/delegates', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'delete' => array('path' => 'gmail/v1/users/{userId}/settings/delegates/{delegateEmail}', 'httpMethod' => 'DELETE', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'delegateEmail' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'get' => array('path' => 'gmail/v1/users/{userId}/settings/delegates/{delegateEmail}', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'delegateEmail' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'list' => array('path' => 'gmail/v1/users/{userId}/settings/delegates', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true)))))); - $this->users_settings_filters = new \WPMailSMTP\Vendor\Google_Service_Gmail_Resource_UsersSettingsFilters($this, $this->serviceName, 'filters', array('methods' => array('create' => array('path' => 'gmail/v1/users/{userId}/settings/filters', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'delete' => array('path' => 'gmail/v1/users/{userId}/settings/filters/{id}', 'httpMethod' => 'DELETE', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'get' => array('path' => 'gmail/v1/users/{userId}/settings/filters/{id}', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'list' => array('path' => 'gmail/v1/users/{userId}/settings/filters', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true)))))); - $this->users_settings_forwardingAddresses = new \WPMailSMTP\Vendor\Google_Service_Gmail_Resource_UsersSettingsForwardingAddresses($this, $this->serviceName, 'forwardingAddresses', array('methods' => array('create' => array('path' => 'gmail/v1/users/{userId}/settings/forwardingAddresses', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'delete' => array('path' => 'gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}', 'httpMethod' => 'DELETE', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'forwardingEmail' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'get' => array('path' => 'gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'forwardingEmail' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'list' => array('path' => 'gmail/v1/users/{userId}/settings/forwardingAddresses', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true)))))); - $this->users_settings_sendAs = new \WPMailSMTP\Vendor\Google_Service_Gmail_Resource_UsersSettingsSendAs($this, $this->serviceName, 'sendAs', array('methods' => array('create' => array('path' => 'gmail/v1/users/{userId}/settings/sendAs', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'delete' => array('path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}', 'httpMethod' => 'DELETE', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'sendAsEmail' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'get' => array('path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'sendAsEmail' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'list' => array('path' => 'gmail/v1/users/{userId}/settings/sendAs', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'patch' => array('path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}', 'httpMethod' => 'PATCH', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'sendAsEmail' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'update' => array('path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}', 'httpMethod' => 'PUT', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'sendAsEmail' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'verify' => array('path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/verify', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'sendAsEmail' => array('location' => 'path', 'type' => 'string', 'required' => \true)))))); - $this->users_settings_sendAs_smimeInfo = new \WPMailSMTP\Vendor\Google_Service_Gmail_Resource_UsersSettingsSendAsSmimeInfo($this, $this->serviceName, 'smimeInfo', array('methods' => array('delete' => array('path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}', 'httpMethod' => 'DELETE', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'sendAsEmail' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'get' => array('path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'sendAsEmail' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'insert' => array('path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'sendAsEmail' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'list' => array('path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'sendAsEmail' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'setDefault' => array('path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}/setDefault', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'sendAsEmail' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true)))))); - $this->users_threads = new \WPMailSMTP\Vendor\Google_Service_Gmail_Resource_UsersThreads($this, $this->serviceName, 'threads', array('methods' => array('delete' => array('path' => 'gmail/v1/users/{userId}/threads/{id}', 'httpMethod' => 'DELETE', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'get' => array('path' => 'gmail/v1/users/{userId}/threads/{id}', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'format' => array('location' => 'query', 'type' => 'string'), 'metadataHeaders' => array('location' => 'query', 'type' => 'string', 'repeated' => \true))), 'list' => array('path' => 'gmail/v1/users/{userId}/threads', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'includeSpamTrash' => array('location' => 'query', 'type' => 'boolean'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'q' => array('location' => 'query', 'type' => 'string'), 'labelIds' => array('location' => 'query', 'type' => 'string', 'repeated' => \true))), 'modify' => array('path' => 'gmail/v1/users/{userId}/threads/{id}/modify', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'trash' => array('path' => 'gmail/v1/users/{userId}/threads/{id}/trash', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'untrash' => array('path' => 'gmail/v1/users/{userId}/threads/{id}/untrash', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true)))))); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/AutoForwarding.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/AutoForwarding.php deleted file mode 100644 index 0a1ff75..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/AutoForwarding.php +++ /dev/null @@ -1,49 +0,0 @@ -disposition = $disposition; - } - public function getDisposition() - { - return $this->disposition; - } - public function setEmailAddress($emailAddress) - { - $this->emailAddress = $emailAddress; - } - public function getEmailAddress() - { - return $this->emailAddress; - } - public function setEnabled($enabled) - { - $this->enabled = $enabled; - } - public function getEnabled() - { - return $this->enabled; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/BatchDeleteMessagesRequest.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/BatchDeleteMessagesRequest.php deleted file mode 100644 index dfa7def..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/BatchDeleteMessagesRequest.php +++ /dev/null @@ -1,32 +0,0 @@ -ids = $ids; - } - public function getIds() - { - return $this->ids; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/BatchModifyMessagesRequest.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/BatchModifyMessagesRequest.php deleted file mode 100644 index b3d11b7..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/BatchModifyMessagesRequest.php +++ /dev/null @@ -1,50 +0,0 @@ -addLabelIds = $addLabelIds; - } - public function getAddLabelIds() - { - return $this->addLabelIds; - } - public function setIds($ids) - { - $this->ids = $ids; - } - public function getIds() - { - return $this->ids; - } - public function setRemoveLabelIds($removeLabelIds) - { - $this->removeLabelIds = $removeLabelIds; - } - public function getRemoveLabelIds() - { - return $this->removeLabelIds; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Delegate.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Delegate.php deleted file mode 100644 index 7961e26..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Delegate.php +++ /dev/null @@ -1,40 +0,0 @@ -delegateEmail = $delegateEmail; - } - public function getDelegateEmail() - { - return $this->delegateEmail; - } - public function setVerificationStatus($verificationStatus) - { - $this->verificationStatus = $verificationStatus; - } - public function getVerificationStatus() - { - return $this->verificationStatus; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Draft.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Draft.php deleted file mode 100644 index b40ea58..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Draft.php +++ /dev/null @@ -1,47 +0,0 @@ -id = $id; - } - public function getId() - { - return $this->id; - } - /** - * @param Google_Service_Gmail_Message - */ - public function setMessage(\WPMailSMTP\Vendor\Google_Service_Gmail_Message $message) - { - $this->message = $message; - } - /** - * @return Google_Service_Gmail_Message - */ - public function getMessage() - { - return $this->message; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Filter.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Filter.php deleted file mode 100644 index df9da2b..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Filter.php +++ /dev/null @@ -1,63 +0,0 @@ -action = $action; - } - /** - * @return Google_Service_Gmail_FilterAction - */ - public function getAction() - { - return $this->action; - } - /** - * @param Google_Service_Gmail_FilterCriteria - */ - public function setCriteria(\WPMailSMTP\Vendor\Google_Service_Gmail_FilterCriteria $criteria) - { - $this->criteria = $criteria; - } - /** - * @return Google_Service_Gmail_FilterCriteria - */ - public function getCriteria() - { - return $this->criteria; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/FilterAction.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/FilterAction.php deleted file mode 100644 index b158c59..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/FilterAction.php +++ /dev/null @@ -1,50 +0,0 @@ -addLabelIds = $addLabelIds; - } - public function getAddLabelIds() - { - return $this->addLabelIds; - } - public function setForward($forward) - { - $this->forward = $forward; - } - public function getForward() - { - return $this->forward; - } - public function setRemoveLabelIds($removeLabelIds) - { - $this->removeLabelIds = $removeLabelIds; - } - public function getRemoveLabelIds() - { - return $this->removeLabelIds; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/FilterCriteria.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/FilterCriteria.php deleted file mode 100644 index da908de..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/FilterCriteria.php +++ /dev/null @@ -1,103 +0,0 @@ -excludeChats = $excludeChats; - } - public function getExcludeChats() - { - return $this->excludeChats; - } - public function setFrom($from) - { - $this->from = $from; - } - public function getFrom() - { - return $this->from; - } - public function setHasAttachment($hasAttachment) - { - $this->hasAttachment = $hasAttachment; - } - public function getHasAttachment() - { - return $this->hasAttachment; - } - public function setNegatedQuery($negatedQuery) - { - $this->negatedQuery = $negatedQuery; - } - public function getNegatedQuery() - { - return $this->negatedQuery; - } - public function setQuery($query) - { - $this->query = $query; - } - public function getQuery() - { - return $this->query; - } - public function setSize($size) - { - $this->size = $size; - } - public function getSize() - { - return $this->size; - } - public function setSizeComparison($sizeComparison) - { - $this->sizeComparison = $sizeComparison; - } - public function getSizeComparison() - { - return $this->sizeComparison; - } - public function setSubject($subject) - { - $this->subject = $subject; - } - public function getSubject() - { - return $this->subject; - } - public function setTo($to) - { - $this->to = $to; - } - public function getTo() - { - return $this->to; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ForwardingAddress.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ForwardingAddress.php deleted file mode 100644 index 0e7050d..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ForwardingAddress.php +++ /dev/null @@ -1,40 +0,0 @@ -forwardingEmail = $forwardingEmail; - } - public function getForwardingEmail() - { - return $this->forwardingEmail; - } - public function setVerificationStatus($verificationStatus) - { - $this->verificationStatus = $verificationStatus; - } - public function getVerificationStatus() - { - return $this->verificationStatus; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/History.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/History.php deleted file mode 100644 index 9c858ec..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/History.php +++ /dev/null @@ -1,112 +0,0 @@ -id = $id; - } - public function getId() - { - return $this->id; - } - /** - * @param Google_Service_Gmail_HistoryLabelAdded - */ - public function setLabelsAdded($labelsAdded) - { - $this->labelsAdded = $labelsAdded; - } - /** - * @return Google_Service_Gmail_HistoryLabelAdded - */ - public function getLabelsAdded() - { - return $this->labelsAdded; - } - /** - * @param Google_Service_Gmail_HistoryLabelRemoved - */ - public function setLabelsRemoved($labelsRemoved) - { - $this->labelsRemoved = $labelsRemoved; - } - /** - * @return Google_Service_Gmail_HistoryLabelRemoved - */ - public function getLabelsRemoved() - { - return $this->labelsRemoved; - } - /** - * @param Google_Service_Gmail_Message - */ - public function setMessages($messages) - { - $this->messages = $messages; - } - /** - * @return Google_Service_Gmail_Message - */ - public function getMessages() - { - return $this->messages; - } - /** - * @param Google_Service_Gmail_HistoryMessageAdded - */ - public function setMessagesAdded($messagesAdded) - { - $this->messagesAdded = $messagesAdded; - } - /** - * @return Google_Service_Gmail_HistoryMessageAdded - */ - public function getMessagesAdded() - { - return $this->messagesAdded; - } - /** - * @param Google_Service_Gmail_HistoryMessageDeleted - */ - public function setMessagesDeleted($messagesDeleted) - { - $this->messagesDeleted = $messagesDeleted; - } - /** - * @return Google_Service_Gmail_HistoryMessageDeleted - */ - public function getMessagesDeleted() - { - return $this->messagesDeleted; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelAdded.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelAdded.php deleted file mode 100644 index 22d8f4a..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelAdded.php +++ /dev/null @@ -1,48 +0,0 @@ -labelIds = $labelIds; - } - public function getLabelIds() - { - return $this->labelIds; - } - /** - * @param Google_Service_Gmail_Message - */ - public function setMessage(\WPMailSMTP\Vendor\Google_Service_Gmail_Message $message) - { - $this->message = $message; - } - /** - * @return Google_Service_Gmail_Message - */ - public function getMessage() - { - return $this->message; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelRemoved.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelRemoved.php deleted file mode 100644 index 2ae21ac..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelRemoved.php +++ /dev/null @@ -1,48 +0,0 @@ -labelIds = $labelIds; - } - public function getLabelIds() - { - return $this->labelIds; - } - /** - * @param Google_Service_Gmail_Message - */ - public function setMessage(\WPMailSMTP\Vendor\Google_Service_Gmail_Message $message) - { - $this->message = $message; - } - /** - * @return Google_Service_Gmail_Message - */ - public function getMessage() - { - return $this->message; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageAdded.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageAdded.php deleted file mode 100644 index 3e65d20..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageAdded.php +++ /dev/null @@ -1,38 +0,0 @@ -message = $message; - } - /** - * @return Google_Service_Gmail_Message - */ - public function getMessage() - { - return $this->message; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageDeleted.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageDeleted.php deleted file mode 100644 index 68a45e1..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageDeleted.php +++ /dev/null @@ -1,38 +0,0 @@ -message = $message; - } - /** - * @return Google_Service_Gmail_Message - */ - public function getMessage() - { - return $this->message; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ImapSettings.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ImapSettings.php deleted file mode 100644 index a2aac62..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ImapSettings.php +++ /dev/null @@ -1,58 +0,0 @@ -autoExpunge = $autoExpunge; - } - public function getAutoExpunge() - { - return $this->autoExpunge; - } - public function setEnabled($enabled) - { - $this->enabled = $enabled; - } - public function getEnabled() - { - return $this->enabled; - } - public function setExpungeBehavior($expungeBehavior) - { - $this->expungeBehavior = $expungeBehavior; - } - public function getExpungeBehavior() - { - return $this->expungeBehavior; - } - public function setMaxFolderSize($maxFolderSize) - { - $this->maxFolderSize = $maxFolderSize; - } - public function getMaxFolderSize() - { - return $this->maxFolderSize; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Label.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Label.php deleted file mode 100644 index 206613b..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Label.php +++ /dev/null @@ -1,119 +0,0 @@ -color = $color; - } - /** - * @return Google_Service_Gmail_LabelColor - */ - public function getColor() - { - return $this->color; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setLabelListVisibility($labelListVisibility) - { - $this->labelListVisibility = $labelListVisibility; - } - public function getLabelListVisibility() - { - return $this->labelListVisibility; - } - public function setMessageListVisibility($messageListVisibility) - { - $this->messageListVisibility = $messageListVisibility; - } - public function getMessageListVisibility() - { - return $this->messageListVisibility; - } - public function setMessagesTotal($messagesTotal) - { - $this->messagesTotal = $messagesTotal; - } - public function getMessagesTotal() - { - return $this->messagesTotal; - } - public function setMessagesUnread($messagesUnread) - { - $this->messagesUnread = $messagesUnread; - } - public function getMessagesUnread() - { - return $this->messagesUnread; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setThreadsTotal($threadsTotal) - { - $this->threadsTotal = $threadsTotal; - } - public function getThreadsTotal() - { - return $this->threadsTotal; - } - public function setThreadsUnread($threadsUnread) - { - $this->threadsUnread = $threadsUnread; - } - public function getThreadsUnread() - { - return $this->threadsUnread; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/LabelColor.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/LabelColor.php deleted file mode 100644 index 33ca445..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/LabelColor.php +++ /dev/null @@ -1,40 +0,0 @@ -backgroundColor = $backgroundColor; - } - public function getBackgroundColor() - { - return $this->backgroundColor; - } - public function setTextColor($textColor) - { - $this->textColor = $textColor; - } - public function getTextColor() - { - return $this->textColor; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/LanguageSettings.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/LanguageSettings.php deleted file mode 100644 index d5adf60..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/LanguageSettings.php +++ /dev/null @@ -1,31 +0,0 @@ -displayLanguage = $displayLanguage; - } - public function getDisplayLanguage() - { - return $this->displayLanguage; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListDelegatesResponse.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListDelegatesResponse.php deleted file mode 100644 index 1dbd675..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListDelegatesResponse.php +++ /dev/null @@ -1,39 +0,0 @@ -delegates = $delegates; - } - /** - * @return Google_Service_Gmail_Delegate - */ - public function getDelegates() - { - return $this->delegates; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListDraftsResponse.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListDraftsResponse.php deleted file mode 100644 index 3b659b0..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListDraftsResponse.php +++ /dev/null @@ -1,57 +0,0 @@ -drafts = $drafts; - } - /** - * @return Google_Service_Gmail_Draft - */ - public function getDrafts() - { - return $this->drafts; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setResultSizeEstimate($resultSizeEstimate) - { - $this->resultSizeEstimate = $resultSizeEstimate; - } - public function getResultSizeEstimate() - { - return $this->resultSizeEstimate; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListFiltersResponse.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListFiltersResponse.php deleted file mode 100644 index 8f32a86..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListFiltersResponse.php +++ /dev/null @@ -1,39 +0,0 @@ -filter = $filter; - } - /** - * @return Google_Service_Gmail_Filter - */ - public function getFilter() - { - return $this->filter; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListForwardingAddressesResponse.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListForwardingAddressesResponse.php deleted file mode 100644 index d69ae9b..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListForwardingAddressesResponse.php +++ /dev/null @@ -1,39 +0,0 @@ -forwardingAddresses = $forwardingAddresses; - } - /** - * @return Google_Service_Gmail_ForwardingAddress - */ - public function getForwardingAddresses() - { - return $this->forwardingAddresses; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListHistoryResponse.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListHistoryResponse.php deleted file mode 100644 index 338e960..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListHistoryResponse.php +++ /dev/null @@ -1,57 +0,0 @@ -history = $history; - } - /** - * @return Google_Service_Gmail_History - */ - public function getHistory() - { - return $this->history; - } - public function setHistoryId($historyId) - { - $this->historyId = $historyId; - } - public function getHistoryId() - { - return $this->historyId; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListLabelsResponse.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListLabelsResponse.php deleted file mode 100644 index f4538bc..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListLabelsResponse.php +++ /dev/null @@ -1,39 +0,0 @@ -labels = $labels; - } - /** - * @return Google_Service_Gmail_Label - */ - public function getLabels() - { - return $this->labels; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListMessagesResponse.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListMessagesResponse.php deleted file mode 100644 index fc302f7..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListMessagesResponse.php +++ /dev/null @@ -1,57 +0,0 @@ -messages = $messages; - } - /** - * @return Google_Service_Gmail_Message - */ - public function getMessages() - { - return $this->messages; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setResultSizeEstimate($resultSizeEstimate) - { - $this->resultSizeEstimate = $resultSizeEstimate; - } - public function getResultSizeEstimate() - { - return $this->resultSizeEstimate; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListSendAsResponse.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListSendAsResponse.php deleted file mode 100644 index ea9800d..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListSendAsResponse.php +++ /dev/null @@ -1,39 +0,0 @@ -sendAs = $sendAs; - } - /** - * @return Google_Service_Gmail_SendAs - */ - public function getSendAs() - { - return $this->sendAs; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListSmimeInfoResponse.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListSmimeInfoResponse.php deleted file mode 100644 index f2c99ad..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListSmimeInfoResponse.php +++ /dev/null @@ -1,39 +0,0 @@ -smimeInfo = $smimeInfo; - } - /** - * @return Google_Service_Gmail_SmimeInfo - */ - public function getSmimeInfo() - { - return $this->smimeInfo; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListThreadsResponse.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListThreadsResponse.php deleted file mode 100644 index 6fa8bec..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListThreadsResponse.php +++ /dev/null @@ -1,57 +0,0 @@ -nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setResultSizeEstimate($resultSizeEstimate) - { - $this->resultSizeEstimate = $resultSizeEstimate; - } - public function getResultSizeEstimate() - { - return $this->resultSizeEstimate; - } - /** - * @param Google_Service_Gmail_Thread - */ - public function setThreads($threads) - { - $this->threads = $threads; - } - /** - * @return Google_Service_Gmail_Thread - */ - public function getThreads() - { - return $this->threads; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Message.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Message.php deleted file mode 100644 index 4ea0def..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Message.php +++ /dev/null @@ -1,111 +0,0 @@ -historyId = $historyId; - } - public function getHistoryId() - { - return $this->historyId; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInternalDate($internalDate) - { - $this->internalDate = $internalDate; - } - public function getInternalDate() - { - return $this->internalDate; - } - public function setLabelIds($labelIds) - { - $this->labelIds = $labelIds; - } - public function getLabelIds() - { - return $this->labelIds; - } - /** - * @param Google_Service_Gmail_MessagePart - */ - public function setPayload(\WPMailSMTP\Vendor\Google_Service_Gmail_MessagePart $payload) - { - $this->payload = $payload; - } - /** - * @return Google_Service_Gmail_MessagePart - */ - public function getPayload() - { - return $this->payload; - } - public function setRaw($raw) - { - $this->raw = $raw; - } - public function getRaw() - { - return $this->raw; - } - public function setSizeEstimate($sizeEstimate) - { - $this->sizeEstimate = $sizeEstimate; - } - public function getSizeEstimate() - { - return $this->sizeEstimate; - } - public function setSnippet($snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } - public function setThreadId($threadId) - { - $this->threadId = $threadId; - } - public function getThreadId() - { - return $this->threadId; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/MessagePart.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/MessagePart.php deleted file mode 100644 index 2b554f5..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/MessagePart.php +++ /dev/null @@ -1,98 +0,0 @@ -body = $body; - } - /** - * @return Google_Service_Gmail_MessagePartBody - */ - public function getBody() - { - return $this->body; - } - public function setFilename($filename) - { - $this->filename = $filename; - } - public function getFilename() - { - return $this->filename; - } - /** - * @param Google_Service_Gmail_MessagePartHeader - */ - public function setHeaders($headers) - { - $this->headers = $headers; - } - /** - * @return Google_Service_Gmail_MessagePartHeader - */ - public function getHeaders() - { - return $this->headers; - } - public function setMimeType($mimeType) - { - $this->mimeType = $mimeType; - } - public function getMimeType() - { - return $this->mimeType; - } - public function setPartId($partId) - { - $this->partId = $partId; - } - public function getPartId() - { - return $this->partId; - } - /** - * @param Google_Service_Gmail_MessagePart - */ - public function setParts($parts) - { - $this->parts = $parts; - } - /** - * @return Google_Service_Gmail_MessagePart - */ - public function getParts() - { - return $this->parts; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/MessagePartBody.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/MessagePartBody.php deleted file mode 100644 index 2abd12d..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/MessagePartBody.php +++ /dev/null @@ -1,49 +0,0 @@ -attachmentId = $attachmentId; - } - public function getAttachmentId() - { - return $this->attachmentId; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setSize($size) - { - $this->size = $size; - } - public function getSize() - { - return $this->size; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/MessagePartHeader.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/MessagePartHeader.php deleted file mode 100644 index 82c12ee..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/MessagePartHeader.php +++ /dev/null @@ -1,40 +0,0 @@ -name = $name; - } - public function getName() - { - return $this->name; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ModifyMessageRequest.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ModifyMessageRequest.php deleted file mode 100644 index e78bcdf..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ModifyMessageRequest.php +++ /dev/null @@ -1,41 +0,0 @@ -addLabelIds = $addLabelIds; - } - public function getAddLabelIds() - { - return $this->addLabelIds; - } - public function setRemoveLabelIds($removeLabelIds) - { - $this->removeLabelIds = $removeLabelIds; - } - public function getRemoveLabelIds() - { - return $this->removeLabelIds; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ModifyThreadRequest.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ModifyThreadRequest.php deleted file mode 100644 index 8cb1bb9..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ModifyThreadRequest.php +++ /dev/null @@ -1,41 +0,0 @@ -addLabelIds = $addLabelIds; - } - public function getAddLabelIds() - { - return $this->addLabelIds; - } - public function setRemoveLabelIds($removeLabelIds) - { - $this->removeLabelIds = $removeLabelIds; - } - public function getRemoveLabelIds() - { - return $this->removeLabelIds; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/PopSettings.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/PopSettings.php deleted file mode 100644 index e662d32..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/PopSettings.php +++ /dev/null @@ -1,40 +0,0 @@ -accessWindow = $accessWindow; - } - public function getAccessWindow() - { - return $this->accessWindow; - } - public function setDisposition($disposition) - { - $this->disposition = $disposition; - } - public function getDisposition() - { - return $this->disposition; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Profile.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Profile.php deleted file mode 100644 index 884d8c1..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Profile.php +++ /dev/null @@ -1,58 +0,0 @@ -emailAddress = $emailAddress; - } - public function getEmailAddress() - { - return $this->emailAddress; - } - public function setHistoryId($historyId) - { - $this->historyId = $historyId; - } - public function getHistoryId() - { - return $this->historyId; - } - public function setMessagesTotal($messagesTotal) - { - $this->messagesTotal = $messagesTotal; - } - public function getMessagesTotal() - { - return $this->messagesTotal; - } - public function setThreadsTotal($threadsTotal) - { - $this->threadsTotal = $threadsTotal; - } - public function getThreadsTotal() - { - return $this->threadsTotal; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/Users.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/Users.php deleted file mode 100644 index 346011f..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/Users.php +++ /dev/null @@ -1,73 +0,0 @@ - - * $gmailService = new Google_Service_Gmail(...); - * $users = $gmailService->users; - * - */ -class Google_Service_Gmail_Resource_Users extends \WPMailSMTP\Vendor\Google_Service_Resource -{ - /** - * Gets the current user's Gmail profile. (users.getProfile) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Profile - */ - public function getProfile($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = \array_merge($params, $optParams); - return $this->call('getProfile', array($params), "Google_Service_Gmail_Profile"); - } - /** - * Stop receiving push notifications for the given user mailbox. (users.stop) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - */ - public function stop($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = \array_merge($params, $optParams); - return $this->call('stop', array($params)); - } - /** - * Set up or update a push notification watch on the given user mailbox. - * (users.watch) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_WatchRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_WatchResponse - */ - public function watch($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_WatchRequest $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = \array_merge($params, $optParams); - return $this->call('watch', array($params), "Google_Service_Gmail_WatchResponse"); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersDrafts.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersDrafts.php deleted file mode 100644 index 1963a2f..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersDrafts.php +++ /dev/null @@ -1,132 +0,0 @@ - - * $gmailService = new Google_Service_Gmail(...); - * $drafts = $gmailService->drafts; - * - */ -class Google_Service_Gmail_Resource_UsersDrafts extends \WPMailSMTP\Vendor\Google_Service_Resource -{ - /** - * Creates a new draft with the `DRAFT` label. (drafts.create) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_Draft $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Draft - */ - public function create($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_Draft $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = \array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Gmail_Draft"); - } - /** - * Immediately and permanently deletes the specified draft. Does not simply - * trash it. (drafts.delete) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id The ID of the draft to delete. - * @param array $optParams Optional parameters. - */ - public function delete($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = \array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets the specified draft. (drafts.get) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id The ID of the draft to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param string format The format to return the draft in. - * @return Google_Service_Gmail_Draft - */ - public function get($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = \array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Gmail_Draft"); - } - /** - * Lists the drafts in the user's mailbox. (drafts.listUsersDrafts) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * - * @opt_param bool includeSpamTrash Include drafts from `SPAM` and `TRASH` in - * the results. - * @opt_param string q Only return draft messages matching the specified query. - * Supports the same query format as the Gmail search box. For example, - * `"from:someuser@example.com rfc822msgid: is:unread"`. - * @opt_param string pageToken Page token to retrieve a specific page of results - * in the list. - * @opt_param string maxResults Maximum number of drafts to return. - * @return Google_Service_Gmail_ListDraftsResponse - */ - public function listUsersDrafts($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = \array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Gmail_ListDraftsResponse"); - } - /** - * Sends the specified, existing draft to the recipients in the `To`, `Cc`, and - * `Bcc` headers. (drafts.send) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_Draft $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Message - */ - public function send($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_Draft $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = \array_merge($params, $optParams); - return $this->call('send', array($params), "Google_Service_Gmail_Message"); - } - /** - * Replaces a draft's content. (drafts.update) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id The ID of the draft to update. - * @param Google_Service_Gmail_Draft $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Draft - */ - public function update($userId, $id, \WPMailSMTP\Vendor\Google_Service_Gmail_Draft $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); - $params = \array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Gmail_Draft"); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersHistory.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersHistory.php deleted file mode 100644 index f3b4608..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersHistory.php +++ /dev/null @@ -1,63 +0,0 @@ - - * $gmailService = new Google_Service_Gmail(...); - * $history = $gmailService->history; - * - */ -class Google_Service_Gmail_Resource_UsersHistory extends \WPMailSMTP\Vendor\Google_Service_Resource -{ - /** - * Lists the history of all changes to the given mailbox. History results are - * returned in chronological order (increasing `historyId`). - * (history.listUsersHistory) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * - * @opt_param string startHistoryId Required. Returns history records after the - * specified `startHistoryId`. The supplied `startHistoryId` should be obtained - * from the `historyId` of a message, thread, or previous `list` response. - * History IDs increase chronologically but are not contiguous with random gaps - * in between valid IDs. Supplying an invalid or out of date `startHistoryId` - * typically returns an `HTTP 404` error code. A `historyId` is typically valid - * for at least a week, but in some rare circumstances may be valid for only a - * few hours. If you receive an `HTTP 404` error response, your application - * should perform a full sync. If you receive no `nextPageToken` in the - * response, there are no updates to retrieve and you can store the returned - * `historyId` for a future request. - * @opt_param string historyTypes History types to be returned by the function - * @opt_param string pageToken Page token to retrieve a specific page of results - * in the list. - * @opt_param string maxResults The maximum number of history records to return. - * @opt_param string labelId Only return messages with a label matching the ID. - * @return Google_Service_Gmail_ListHistoryResponse - */ - public function listUsersHistory($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = \array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Gmail_ListHistoryResponse"); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersLabels.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersLabels.php deleted file mode 100644 index e365a9b..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersLabels.php +++ /dev/null @@ -1,121 +0,0 @@ - - * $gmailService = new Google_Service_Gmail(...); - * $labels = $gmailService->labels; - * - */ -class Google_Service_Gmail_Resource_UsersLabels extends \WPMailSMTP\Vendor\Google_Service_Resource -{ - /** - * Creates a new label. (labels.create) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_Label $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Label - */ - public function create($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_Label $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = \array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Gmail_Label"); - } - /** - * Immediately and permanently deletes the specified label and removes it from - * any messages and threads that it is applied to. (labels.delete) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id The ID of the label to delete. - * @param array $optParams Optional parameters. - */ - public function delete($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = \array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets the specified label. (labels.get) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id The ID of the label to retrieve. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Label - */ - public function get($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = \array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Gmail_Label"); - } - /** - * Lists all labels in the user's mailbox. (labels.listUsersLabels) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_ListLabelsResponse - */ - public function listUsersLabels($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = \array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Gmail_ListLabelsResponse"); - } - /** - * Patch the specified label. (labels.patch) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id The ID of the label to update. - * @param Google_Service_Gmail_Label $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Label - */ - public function patch($userId, $id, \WPMailSMTP\Vendor\Google_Service_Gmail_Label $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); - $params = \array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Gmail_Label"); - } - /** - * Updates the specified label. (labels.update) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id The ID of the label to update. - * @param Google_Service_Gmail_Label $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Label - */ - public function update($userId, $id, \WPMailSMTP\Vendor\Google_Service_Gmail_Label $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); - $params = \array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Gmail_Label"); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessages.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessages.php deleted file mode 100644 index d75880c..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessages.php +++ /dev/null @@ -1,232 +0,0 @@ - - * $gmailService = new Google_Service_Gmail(...); - * $messages = $gmailService->messages; - * - */ -class Google_Service_Gmail_Resource_UsersMessages extends \WPMailSMTP\Vendor\Google_Service_Resource -{ - /** - * Deletes many messages by message ID. Provides no guarantees that messages - * were not already deleted or even existed at all. (messages.batchDelete) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_BatchDeleteMessagesRequest $postBody - * @param array $optParams Optional parameters. - */ - public function batchDelete($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_BatchDeleteMessagesRequest $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = \array_merge($params, $optParams); - return $this->call('batchDelete', array($params)); - } - /** - * Modifies the labels on the specified messages. (messages.batchModify) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_BatchModifyMessagesRequest $postBody - * @param array $optParams Optional parameters. - */ - public function batchModify($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_BatchModifyMessagesRequest $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = \array_merge($params, $optParams); - return $this->call('batchModify', array($params)); - } - /** - * Immediately and permanently deletes the specified message. This operation - * cannot be undone. Prefer `messages.trash` instead. (messages.delete) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id The ID of the message to delete. - * @param array $optParams Optional parameters. - */ - public function delete($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = \array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets the specified message. (messages.get) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id The ID of the message to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param string metadataHeaders When given and format is `METADATA`, only - * include headers specified. - * @opt_param string format The format to return the message in. - * @return Google_Service_Gmail_Message - */ - public function get($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = \array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Gmail_Message"); - } - /** - * Imports a message into only this user's mailbox, with standard email delivery - * scanning and classification similar to receiving via SMTP. Does not send a - * message. Note: This function doesn't trigger forwarding rules or filters set - * up by the user. (messages.import) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_Message $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool processForCalendar Process calendar invites in the email and - * add any extracted meetings to the Google Calendar for this user. - * @opt_param string internalDateSource Source for Gmail's internal date of the - * message. - * @opt_param bool deleted Mark the email as permanently deleted (not TRASH) and - * only visible in Google Vault to a Vault administrator. Only used for G Suite - * accounts. - * @opt_param bool neverMarkSpam Ignore the Gmail spam classifier decision and - * never mark this email as SPAM in the mailbox. - * @return Google_Service_Gmail_Message - */ - public function import($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_Message $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = \array_merge($params, $optParams); - return $this->call('import', array($params), "Google_Service_Gmail_Message"); - } - /** - * Directly inserts a message into only this user's mailbox similar to `IMAP - * APPEND`, bypassing most scanning and classification. Does not send a message. - * (messages.insert) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_Message $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string internalDateSource Source for Gmail's internal date of the - * message. - * @opt_param bool deleted Mark the email as permanently deleted (not TRASH) and - * only visible in Google Vault to a Vault administrator. Only used for G Suite - * accounts. - * @return Google_Service_Gmail_Message - */ - public function insert($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_Message $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = \array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Gmail_Message"); - } - /** - * Lists the messages in the user's mailbox. (messages.listUsersMessages) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults Maximum number of messages to return. - * @opt_param string q Only return messages matching the specified query. - * Supports the same query format as the Gmail search box. For example, - * `"from:someuser@example.com rfc822msgid: is:unread"`. Parameter cannot be - * used when accessing the api using the gmail.metadata scope. - * @opt_param string labelIds Only return messages with labels that match all of - * the specified label IDs. - * @opt_param string pageToken Page token to retrieve a specific page of results - * in the list. - * @opt_param bool includeSpamTrash Include messages from `SPAM` and `TRASH` in - * the results. - * @return Google_Service_Gmail_ListMessagesResponse - */ - public function listUsersMessages($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = \array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Gmail_ListMessagesResponse"); - } - /** - * Modifies the labels on the specified message. (messages.modify) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id The ID of the message to modify. - * @param Google_Service_Gmail_ModifyMessageRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Message - */ - public function modify($userId, $id, \WPMailSMTP\Vendor\Google_Service_Gmail_ModifyMessageRequest $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); - $params = \array_merge($params, $optParams); - return $this->call('modify', array($params), "Google_Service_Gmail_Message"); - } - /** - * Sends the specified message to the recipients in the `To`, `Cc`, and `Bcc` - * headers. (messages.send) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_Message $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Message - */ - public function send($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_Message $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = \array_merge($params, $optParams); - return $this->call('send', array($params), "Google_Service_Gmail_Message"); - } - /** - * Moves the specified message to the trash. (messages.trash) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id The ID of the message to Trash. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Message - */ - public function trash($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = \array_merge($params, $optParams); - return $this->call('trash', array($params), "Google_Service_Gmail_Message"); - } - /** - * Removes the specified message from the trash. (messages.untrash) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id The ID of the message to remove from Trash. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Message - */ - public function untrash($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = \array_merge($params, $optParams); - return $this->call('untrash', array($params), "Google_Service_Gmail_Message"); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessagesAttachments.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessagesAttachments.php deleted file mode 100644 index 742f195..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessagesAttachments.php +++ /dev/null @@ -1,46 +0,0 @@ - - * $gmailService = new Google_Service_Gmail(...); - * $attachments = $gmailService->attachments; - * - */ -class Google_Service_Gmail_Resource_UsersMessagesAttachments extends \WPMailSMTP\Vendor\Google_Service_Resource -{ - /** - * Gets the specified message attachment. (attachments.get) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $messageId The ID of the message containing the attachment. - * @param string $id The ID of the attachment. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_MessagePartBody - */ - public function get($userId, $messageId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'messageId' => $messageId, 'id' => $id); - $params = \array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Gmail_MessagePartBody"); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettings.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettings.php deleted file mode 100644 index b6b4a4b..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettings.php +++ /dev/null @@ -1,184 +0,0 @@ - - * $gmailService = new Google_Service_Gmail(...); - * $settings = $gmailService->settings; - * - */ -class Google_Service_Gmail_Resource_UsersSettings extends \WPMailSMTP\Vendor\Google_Service_Resource -{ - /** - * Gets the auto-forwarding setting for the specified account. - * (settings.getAutoForwarding) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_AutoForwarding - */ - public function getAutoForwarding($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = \array_merge($params, $optParams); - return $this->call('getAutoForwarding', array($params), "Google_Service_Gmail_AutoForwarding"); - } - /** - * Gets IMAP settings. (settings.getImap) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_ImapSettings - */ - public function getImap($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = \array_merge($params, $optParams); - return $this->call('getImap', array($params), "Google_Service_Gmail_ImapSettings"); - } - /** - * Gets language settings. (settings.getLanguage) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_LanguageSettings - */ - public function getLanguage($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = \array_merge($params, $optParams); - return $this->call('getLanguage', array($params), "Google_Service_Gmail_LanguageSettings"); - } - /** - * Gets POP settings. (settings.getPop) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_PopSettings - */ - public function getPop($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = \array_merge($params, $optParams); - return $this->call('getPop', array($params), "Google_Service_Gmail_PopSettings"); - } - /** - * Gets vacation responder settings. (settings.getVacation) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_VacationSettings - */ - public function getVacation($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = \array_merge($params, $optParams); - return $this->call('getVacation', array($params), "Google_Service_Gmail_VacationSettings"); - } - /** - * Updates the auto-forwarding setting for the specified account. A verified - * forwarding address must be specified when auto-forwarding is enabled. This - * method is only available to service account clients that have been delegated - * domain-wide authority. (settings.updateAutoForwarding) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_AutoForwarding $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_AutoForwarding - */ - public function updateAutoForwarding($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_AutoForwarding $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = \array_merge($params, $optParams); - return $this->call('updateAutoForwarding', array($params), "Google_Service_Gmail_AutoForwarding"); - } - /** - * Updates IMAP settings. (settings.updateImap) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_ImapSettings $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_ImapSettings - */ - public function updateImap($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_ImapSettings $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = \array_merge($params, $optParams); - return $this->call('updateImap', array($params), "Google_Service_Gmail_ImapSettings"); - } - /** - * Updates language settings. If successful, the return object contains the - * `displayLanguage` that was saved for the user, which may differ from the - * value passed into the request. This is because the requested - * `displayLanguage` may not be directly supported by Gmail but have a close - * variant that is, and so the variant may be chosen and saved instead. - * (settings.updateLanguage) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_LanguageSettings $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_LanguageSettings - */ - public function updateLanguage($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_LanguageSettings $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = \array_merge($params, $optParams); - return $this->call('updateLanguage', array($params), "Google_Service_Gmail_LanguageSettings"); - } - /** - * Updates POP settings. (settings.updatePop) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_PopSettings $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_PopSettings - */ - public function updatePop($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_PopSettings $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = \array_merge($params, $optParams); - return $this->call('updatePop', array($params), "Google_Service_Gmail_PopSettings"); - } - /** - * Updates vacation responder settings. (settings.updateVacation) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_VacationSettings $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_VacationSettings - */ - public function updateVacation($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_VacationSettings $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = \array_merge($params, $optParams); - return $this->call('updateVacation', array($params), "Google_Service_Gmail_VacationSettings"); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsDelegates.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsDelegates.php deleted file mode 100644 index 795ccb5..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsDelegates.php +++ /dev/null @@ -1,109 +0,0 @@ - - * $gmailService = new Google_Service_Gmail(...); - * $delegates = $gmailService->delegates; - * - */ -class Google_Service_Gmail_Resource_UsersSettingsDelegates extends \WPMailSMTP\Vendor\Google_Service_Resource -{ - /** - * Adds a delegate with its verification status set directly to `accepted`, - * without sending any verification email. The delegate user must be a member of - * the same G Suite organization as the delegator user. Gmail imposes - * limitations on the number of delegates and delegators each user in a G Suite - * organization can have. These limits depend on your organization, but in - * general each user can have up to 25 delegates and up to 10 delegators. Note - * that a delegate user must be referred to by their primary email address, and - * not an email alias. Also note that when a new delegate is created, there may - * be up to a one minute delay before the new delegate is available for use. - * This method is only available to service account clients that have been - * delegated domain-wide authority. (delegates.create) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_Delegate $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Delegate - */ - public function create($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_Delegate $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = \array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Gmail_Delegate"); - } - /** - * Removes the specified delegate (which can be of any verification status), and - * revokes any verification that may have been required for using it. Note that - * a delegate user must be referred to by their primary email address, and not - * an email alias. This method is only available to service account clients that - * have been delegated domain-wide authority. (delegates.delete) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param string $delegateEmail The email address of the user to be removed as a - * delegate. - * @param array $optParams Optional parameters. - */ - public function delete($userId, $delegateEmail, $optParams = array()) - { - $params = array('userId' => $userId, 'delegateEmail' => $delegateEmail); - $params = \array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets the specified delegate. Note that a delegate user must be referred to by - * their primary email address, and not an email alias. This method is only - * available to service account clients that have been delegated domain-wide - * authority. (delegates.get) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param string $delegateEmail The email address of the user whose delegate - * relationship is to be retrieved. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Delegate - */ - public function get($userId, $delegateEmail, $optParams = array()) - { - $params = array('userId' => $userId, 'delegateEmail' => $delegateEmail); - $params = \array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Gmail_Delegate"); - } - /** - * Lists the delegates for the specified account. This method is only available - * to service account clients that have been delegated domain-wide authority. - * (delegates.listUsersSettingsDelegates) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_ListDelegatesResponse - */ - public function listUsersSettingsDelegates($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = \array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Gmail_ListDelegatesResponse"); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsFilters.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsFilters.php deleted file mode 100644 index f93ccda..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsFilters.php +++ /dev/null @@ -1,89 +0,0 @@ - - * $gmailService = new Google_Service_Gmail(...); - * $filters = $gmailService->filters; - * - */ -class Google_Service_Gmail_Resource_UsersSettingsFilters extends \WPMailSMTP\Vendor\Google_Service_Resource -{ - /** - * Creates a filter. Note: you can only create a maximum of 1,000 filters. - * (filters.create) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_Filter $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Filter - */ - public function create($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_Filter $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = \array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Gmail_Filter"); - } - /** - * Deletes a filter. (filters.delete) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param string $id The ID of the filter to be deleted. - * @param array $optParams Optional parameters. - */ - public function delete($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = \array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets a filter. (filters.get) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param string $id The ID of the filter to be fetched. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Filter - */ - public function get($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = \array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Gmail_Filter"); - } - /** - * Lists the message filters of a Gmail user. (filters.listUsersSettingsFilters) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_ListFiltersResponse - */ - public function listUsersSettingsFilters($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = \array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Gmail_ListFiltersResponse"); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsForwardingAddresses.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsForwardingAddresses.php deleted file mode 100644 index 10a5cc5..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsForwardingAddresses.php +++ /dev/null @@ -1,97 +0,0 @@ - - * $gmailService = new Google_Service_Gmail(...); - * $forwardingAddresses = $gmailService->forwardingAddresses; - * - */ -class Google_Service_Gmail_Resource_UsersSettingsForwardingAddresses extends \WPMailSMTP\Vendor\Google_Service_Resource -{ - /** - * Creates a forwarding address. If ownership verification is required, a - * message will be sent to the recipient and the resource's verification status - * will be set to `pending`; otherwise, the resource will be created with - * verification status set to `accepted`. This method is only available to - * service account clients that have been delegated domain-wide authority. - * (forwardingAddresses.create) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_ForwardingAddress $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_ForwardingAddress - */ - public function create($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_ForwardingAddress $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = \array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Gmail_ForwardingAddress"); - } - /** - * Deletes the specified forwarding address and revokes any verification that - * may have been required. This method is only available to service account - * clients that have been delegated domain-wide authority. - * (forwardingAddresses.delete) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param string $forwardingEmail The forwarding address to be deleted. - * @param array $optParams Optional parameters. - */ - public function delete($userId, $forwardingEmail, $optParams = array()) - { - $params = array('userId' => $userId, 'forwardingEmail' => $forwardingEmail); - $params = \array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets the specified forwarding address. (forwardingAddresses.get) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param string $forwardingEmail The forwarding address to be retrieved. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_ForwardingAddress - */ - public function get($userId, $forwardingEmail, $optParams = array()) - { - $params = array('userId' => $userId, 'forwardingEmail' => $forwardingEmail); - $params = \array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Gmail_ForwardingAddress"); - } - /** - * Lists the forwarding addresses for the specified account. - * (forwardingAddresses.listUsersSettingsForwardingAddresses) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_ListForwardingAddressesResponse - */ - public function listUsersSettingsForwardingAddresses($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = \array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Gmail_ListForwardingAddressesResponse"); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAs.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAs.php deleted file mode 100644 index 6ae901c..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAs.php +++ /dev/null @@ -1,153 +0,0 @@ - - * $gmailService = new Google_Service_Gmail(...); - * $sendAs = $gmailService->sendAs; - * - */ -class Google_Service_Gmail_Resource_UsersSettingsSendAs extends \WPMailSMTP\Vendor\Google_Service_Resource -{ - /** - * Creates a custom "from" send-as alias. If an SMTP MSA is specified, Gmail - * will attempt to connect to the SMTP service to validate the configuration - * before creating the alias. If ownership verification is required for the - * alias, a message will be sent to the email address and the resource's - * verification status will be set to `pending`; otherwise, the resource will be - * created with verification status set to `accepted`. If a signature is - * provided, Gmail will sanitize the HTML before saving it with the alias. This - * method is only available to service account clients that have been delegated - * domain-wide authority. (sendAs.create) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_SendAs $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_SendAs - */ - public function create($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_SendAs $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = \array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Gmail_SendAs"); - } - /** - * Deletes the specified send-as alias. Revokes any verification that may have - * been required for using it. This method is only available to service account - * clients that have been delegated domain-wide authority. (sendAs.delete) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param string $sendAsEmail The send-as alias to be deleted. - * @param array $optParams Optional parameters. - */ - public function delete($userId, $sendAsEmail, $optParams = array()) - { - $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail); - $params = \array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets the specified send-as alias. Fails with an HTTP 404 error if the - * specified address is not a member of the collection. (sendAs.get) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param string $sendAsEmail The send-as alias to be retrieved. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_SendAs - */ - public function get($userId, $sendAsEmail, $optParams = array()) - { - $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail); - $params = \array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Gmail_SendAs"); - } - /** - * Lists the send-as aliases for the specified account. The result includes the - * primary send-as address associated with the account as well as any custom - * "from" aliases. (sendAs.listUsersSettingsSendAs) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_ListSendAsResponse - */ - public function listUsersSettingsSendAs($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = \array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Gmail_ListSendAsResponse"); - } - /** - * Patch the specified send-as alias. (sendAs.patch) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param string $sendAsEmail The send-as alias to be updated. - * @param Google_Service_Gmail_SendAs $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_SendAs - */ - public function patch($userId, $sendAsEmail, \WPMailSMTP\Vendor\Google_Service_Gmail_SendAs $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail, 'postBody' => $postBody); - $params = \array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Gmail_SendAs"); - } - /** - * Updates a send-as alias. If a signature is provided, Gmail will sanitize the - * HTML before saving it with the alias. Addresses other than the primary - * address for the account can only be updated by service account clients that - * have been delegated domain-wide authority. (sendAs.update) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param string $sendAsEmail The send-as alias to be updated. - * @param Google_Service_Gmail_SendAs $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_SendAs - */ - public function update($userId, $sendAsEmail, \WPMailSMTP\Vendor\Google_Service_Gmail_SendAs $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail, 'postBody' => $postBody); - $params = \array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Gmail_SendAs"); - } - /** - * Sends a verification email to the specified send-as alias address. The - * verification status must be `pending`. This method is only available to - * service account clients that have been delegated domain-wide authority. - * (sendAs.verify) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param string $sendAsEmail The send-as alias to be verified. - * @param array $optParams Optional parameters. - */ - public function verify($userId, $sendAsEmail, $optParams = array()) - { - $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail); - $params = \array_merge($params, $optParams); - return $this->call('verify', array($params)); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAsSmimeInfo.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAsSmimeInfo.php deleted file mode 100644 index 7c2ae54..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAsSmimeInfo.php +++ /dev/null @@ -1,117 +0,0 @@ - - * $gmailService = new Google_Service_Gmail(...); - * $smimeInfo = $gmailService->smimeInfo; - * - */ -class Google_Service_Gmail_Resource_UsersSettingsSendAsSmimeInfo extends \WPMailSMTP\Vendor\Google_Service_Resource -{ - /** - * Deletes the specified S/MIME config for the specified send-as alias. - * (smimeInfo.delete) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $sendAsEmail The email address that appears in the "From:" - * header for mail sent using this alias. - * @param string $id The immutable ID for the SmimeInfo. - * @param array $optParams Optional parameters. - */ - public function delete($userId, $sendAsEmail, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail, 'id' => $id); - $params = \array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets the specified S/MIME config for the specified send-as alias. - * (smimeInfo.get) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $sendAsEmail The email address that appears in the "From:" - * header for mail sent using this alias. - * @param string $id The immutable ID for the SmimeInfo. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_SmimeInfo - */ - public function get($userId, $sendAsEmail, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail, 'id' => $id); - $params = \array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Gmail_SmimeInfo"); - } - /** - * Insert (upload) the given S/MIME config for the specified send-as alias. Note - * that pkcs12 format is required for the key. (smimeInfo.insert) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $sendAsEmail The email address that appears in the "From:" - * header for mail sent using this alias. - * @param Google_Service_Gmail_SmimeInfo $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_SmimeInfo - */ - public function insert($userId, $sendAsEmail, \WPMailSMTP\Vendor\Google_Service_Gmail_SmimeInfo $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail, 'postBody' => $postBody); - $params = \array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Gmail_SmimeInfo"); - } - /** - * Lists S/MIME configs for the specified send-as alias. - * (smimeInfo.listUsersSettingsSendAsSmimeInfo) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $sendAsEmail The email address that appears in the "From:" - * header for mail sent using this alias. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_ListSmimeInfoResponse - */ - public function listUsersSettingsSendAsSmimeInfo($userId, $sendAsEmail, $optParams = array()) - { - $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail); - $params = \array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Gmail_ListSmimeInfoResponse"); - } - /** - * Sets the default S/MIME config for the specified send-as alias. - * (smimeInfo.setDefault) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $sendAsEmail The email address that appears in the "From:" - * header for mail sent using this alias. - * @param string $id The immutable ID for the SmimeInfo. - * @param array $optParams Optional parameters. - */ - public function setDefault($userId, $sendAsEmail, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail, 'id' => $id); - $params = \array_merge($params, $optParams); - return $this->call('setDefault', array($params)); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersThreads.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersThreads.php deleted file mode 100644 index 84151ff..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersThreads.php +++ /dev/null @@ -1,137 +0,0 @@ - - * $gmailService = new Google_Service_Gmail(...); - * $threads = $gmailService->threads; - * - */ -class Google_Service_Gmail_Resource_UsersThreads extends \WPMailSMTP\Vendor\Google_Service_Resource -{ - /** - * Immediately and permanently deletes the specified thread. This operation - * cannot be undone. Prefer `threads.trash` instead. (threads.delete) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id ID of the Thread to delete. - * @param array $optParams Optional parameters. - */ - public function delete($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = \array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets the specified thread. (threads.get) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id The ID of the thread to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param string format The format to return the messages in. - * @opt_param string metadataHeaders When given and format is METADATA, only - * include headers specified. - * @return Google_Service_Gmail_Thread - */ - public function get($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = \array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Gmail_Thread"); - } - /** - * Lists the threads in the user's mailbox. (threads.listUsersThreads) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults Maximum number of threads to return. - * @opt_param bool includeSpamTrash Include threads from `SPAM` and `TRASH` in - * the results. - * @opt_param string pageToken Page token to retrieve a specific page of results - * in the list. - * @opt_param string q Only return threads matching the specified query. - * Supports the same query format as the Gmail search box. For example, - * `"from:someuser@example.com rfc822msgid: is:unread"`. Parameter cannot be - * used when accessing the api using the gmail.metadata scope. - * @opt_param string labelIds Only return threads with labels that match all of - * the specified label IDs. - * @return Google_Service_Gmail_ListThreadsResponse - */ - public function listUsersThreads($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = \array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Gmail_ListThreadsResponse"); - } - /** - * Modifies the labels applied to the thread. This applies to all messages in - * the thread. (threads.modify) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id The ID of the thread to modify. - * @param Google_Service_Gmail_ModifyThreadRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Thread - */ - public function modify($userId, $id, \WPMailSMTP\Vendor\Google_Service_Gmail_ModifyThreadRequest $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); - $params = \array_merge($params, $optParams); - return $this->call('modify', array($params), "Google_Service_Gmail_Thread"); - } - /** - * Moves the specified thread to the trash. (threads.trash) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id The ID of the thread to Trash. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Thread - */ - public function trash($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = \array_merge($params, $optParams); - return $this->call('trash', array($params), "Google_Service_Gmail_Thread"); - } - /** - * Removes the specified thread from the trash. (threads.untrash) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id The ID of the thread to remove from Trash. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Thread - */ - public function untrash($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = \array_merge($params, $optParams); - return $this->call('untrash', array($params), "Google_Service_Gmail_Thread"); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SendAs.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SendAs.php deleted file mode 100644 index eec2742..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SendAs.php +++ /dev/null @@ -1,110 +0,0 @@ -displayName = $displayName; - } - public function getDisplayName() - { - return $this->displayName; - } - public function setIsDefault($isDefault) - { - $this->isDefault = $isDefault; - } - public function getIsDefault() - { - return $this->isDefault; - } - public function setIsPrimary($isPrimary) - { - $this->isPrimary = $isPrimary; - } - public function getIsPrimary() - { - return $this->isPrimary; - } - public function setReplyToAddress($replyToAddress) - { - $this->replyToAddress = $replyToAddress; - } - public function getReplyToAddress() - { - return $this->replyToAddress; - } - public function setSendAsEmail($sendAsEmail) - { - $this->sendAsEmail = $sendAsEmail; - } - public function getSendAsEmail() - { - return $this->sendAsEmail; - } - public function setSignature($signature) - { - $this->signature = $signature; - } - public function getSignature() - { - return $this->signature; - } - /** - * @param Google_Service_Gmail_SmtpMsa - */ - public function setSmtpMsa(\WPMailSMTP\Vendor\Google_Service_Gmail_SmtpMsa $smtpMsa) - { - $this->smtpMsa = $smtpMsa; - } - /** - * @return Google_Service_Gmail_SmtpMsa - */ - public function getSmtpMsa() - { - return $this->smtpMsa; - } - public function setTreatAsAlias($treatAsAlias) - { - $this->treatAsAlias = $treatAsAlias; - } - public function getTreatAsAlias() - { - return $this->treatAsAlias; - } - public function setVerificationStatus($verificationStatus) - { - $this->verificationStatus = $verificationStatus; - } - public function getVerificationStatus() - { - return $this->verificationStatus; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SmimeInfo.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SmimeInfo.php deleted file mode 100644 index 5ec67f9..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SmimeInfo.php +++ /dev/null @@ -1,85 +0,0 @@ -encryptedKeyPassword = $encryptedKeyPassword; - } - public function getEncryptedKeyPassword() - { - return $this->encryptedKeyPassword; - } - public function setExpiration($expiration) - { - $this->expiration = $expiration; - } - public function getExpiration() - { - return $this->expiration; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIsDefault($isDefault) - { - $this->isDefault = $isDefault; - } - public function getIsDefault() - { - return $this->isDefault; - } - public function setIssuerCn($issuerCn) - { - $this->issuerCn = $issuerCn; - } - public function getIssuerCn() - { - return $this->issuerCn; - } - public function setPem($pem) - { - $this->pem = $pem; - } - public function getPem() - { - return $this->pem; - } - public function setPkcs12($pkcs12) - { - $this->pkcs12 = $pkcs12; - } - public function getPkcs12() - { - return $this->pkcs12; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SmtpMsa.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SmtpMsa.php deleted file mode 100644 index 357aa80..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SmtpMsa.php +++ /dev/null @@ -1,67 +0,0 @@ -host = $host; - } - public function getHost() - { - return $this->host; - } - public function setPassword($password) - { - $this->password = $password; - } - public function getPassword() - { - return $this->password; - } - public function setPort($port) - { - $this->port = $port; - } - public function getPort() - { - return $this->port; - } - public function setSecurityMode($securityMode) - { - $this->securityMode = $securityMode; - } - public function getSecurityMode() - { - return $this->securityMode; - } - public function setUsername($username) - { - $this->username = $username; - } - public function getUsername() - { - return $this->username; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Thread.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Thread.php deleted file mode 100644 index 07b1a1a..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Thread.php +++ /dev/null @@ -1,66 +0,0 @@ -historyId = $historyId; - } - public function getHistoryId() - { - return $this->historyId; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - /** - * @param Google_Service_Gmail_Message - */ - public function setMessages($messages) - { - $this->messages = $messages; - } - /** - * @return Google_Service_Gmail_Message - */ - public function getMessages() - { - return $this->messages; - } - public function setSnippet($snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/VacationSettings.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/VacationSettings.php deleted file mode 100644 index c6c3ba7..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/VacationSettings.php +++ /dev/null @@ -1,94 +0,0 @@ -enableAutoReply = $enableAutoReply; - } - public function getEnableAutoReply() - { - return $this->enableAutoReply; - } - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - public function setResponseBodyHtml($responseBodyHtml) - { - $this->responseBodyHtml = $responseBodyHtml; - } - public function getResponseBodyHtml() - { - return $this->responseBodyHtml; - } - public function setResponseBodyPlainText($responseBodyPlainText) - { - $this->responseBodyPlainText = $responseBodyPlainText; - } - public function getResponseBodyPlainText() - { - return $this->responseBodyPlainText; - } - public function setResponseSubject($responseSubject) - { - $this->responseSubject = $responseSubject; - } - public function getResponseSubject() - { - return $this->responseSubject; - } - public function setRestrictToContacts($restrictToContacts) - { - $this->restrictToContacts = $restrictToContacts; - } - public function getRestrictToContacts() - { - return $this->restrictToContacts; - } - public function setRestrictToDomain($restrictToDomain) - { - $this->restrictToDomain = $restrictToDomain; - } - public function getRestrictToDomain() - { - return $this->restrictToDomain; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/WatchRequest.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/WatchRequest.php deleted file mode 100644 index 48afc65..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/WatchRequest.php +++ /dev/null @@ -1,50 +0,0 @@ -labelFilterAction = $labelFilterAction; - } - public function getLabelFilterAction() - { - return $this->labelFilterAction; - } - public function setLabelIds($labelIds) - { - $this->labelIds = $labelIds; - } - public function getLabelIds() - { - return $this->labelIds; - } - public function setTopicName($topicName) - { - $this->topicName = $topicName; - } - public function getTopicName() - { - return $this->topicName; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/WatchResponse.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/WatchResponse.php deleted file mode 100644 index 359fb9f..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/WatchResponse.php +++ /dev/null @@ -1,40 +0,0 @@ -expiration = $expiration; - } - public function getExpiration() - { - return $this->expiration; - } - public function setHistoryId($historyId) - { - $this->historyId = $historyId; - } - public function getHistoryId() - { - return $this->historyId; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/LICENSE b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/LICENSE deleted file mode 100644 index a148ba5..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/LICENSE +++ /dev/null @@ -1,203 +0,0 @@ -Apache License -Version 2.0, January 2004 -http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - -"License" shall mean the terms and conditions for use, reproduction, -and distribution as defined by Sections 1 through 9 of this document. - -"Licensor" shall mean the copyright owner or entity authorized by -the copyright owner that is granting the License. - -"Legal Entity" shall mean the union of the acting entity and all -other entities that control, are controlled by, or are under common -control with that entity. For the purposes of this definition, -"control" means (i) the power, direct or indirect, to cause the -direction or management of such entity, whether by contract or -otherwise, or (ii) ownership of fifty percent (50%) or more of the -outstanding shares, or (iii) beneficial ownership of such entity. - -"You" (or "Your") shall mean an individual or Legal Entity -exercising permissions granted by this License. - -"Source" form shall mean the preferred form for making modifications, -including but not limited to software source code, documentation -source, and configuration files. - -"Object" form shall mean any form resulting from mechanical -transformation or translation of a Source form, including but -not limited to compiled object code, generated documentation, -and conversions to other media types. - -"Work" shall mean the work of authorship, whether in Source or -Object form, made available under the License, as indicated by a -copyright notice that is included in or attached to the work -(an example is provided in the Appendix below). - -"Derivative Works" shall mean any work, whether in Source or Object -form, that is based on (or derived from) the Work and for which the -editorial revisions, annotations, elaborations, or other modifications -represent, as a whole, an original work of authorship. For the purposes -of this License, Derivative Works shall not include works that remain -separable from, or merely link (or bind by name) to the interfaces of, -the Work and Derivative Works thereof. - -"Contribution" shall mean any work of authorship, including -the original version of the Work and any modifications or additions -to that Work or Derivative Works thereof, that is intentionally -submitted to Licensor for inclusion in the Work by the copyright owner -or by an individual or Legal Entity authorized to submit on behalf of -the copyright owner. For the purposes of this definition, "submitted" -means any form of electronic, verbal, or written communication sent -to the Licensor or its representatives, including but not limited to -communication on electronic mailing lists, source code control systems, -and issue tracking systems that are managed by, or on behalf of, the -Licensor for the purpose of discussing and improving the Work, but -excluding communication that is conspicuously marked or otherwise -designated in writing by the copyright owner as "Not a Contribution." - -"Contributor" shall mean Licensor and any individual or Legal Entity -on behalf of whom a Contribution has been received by Licensor and -subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of -this License, each Contributor hereby grants to You a perpetual, -worldwide, non-exclusive, no-charge, royalty-free, irrevocable -copyright license to reproduce, prepare Derivative Works of, -publicly display, publicly perform, sublicense, and distribute the -Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of -this License, each Contributor hereby grants to You a perpetual, -worldwide, non-exclusive, no-charge, royalty-free, irrevocable -(except as stated in this section) patent license to make, have made, -use, offer to sell, sell, import, and otherwise transfer the Work, -where such license applies only to those patent claims licensable -by such Contributor that are necessarily infringed by their -Contribution(s) alone or by combination of their Contribution(s) -with the Work to which such Contribution(s) was submitted. If You -institute patent litigation against any entity (including a -cross-claim or counterclaim in a lawsuit) alleging that the Work -or a Contribution incorporated within the Work constitutes direct -or contributory patent infringement, then any patent licenses -granted to You under this License for that Work shall terminate -as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the -Work or Derivative Works thereof in any medium, with or without -modifications, and in Source or Object form, provided that You -meet the following conditions: - -(a) You must give any other recipients of the Work or -Derivative Works a copy of this License; and - -(b) You must cause any modified files to carry prominent notices -stating that You changed the files; and - -(c) You must retain, in the Source form of any Derivative Works -that You distribute, all copyright, patent, trademark, and -attribution notices from the Source form of the Work, -excluding those notices that do not pertain to any part of -the Derivative Works; and - -(d) If the Work includes a "NOTICE" text file as part of its -distribution, then any Derivative Works that You distribute must -include a readable copy of the attribution notices contained -within such NOTICE file, excluding those notices that do not -pertain to any part of the Derivative Works, in at least one -of the following places: within a NOTICE text file distributed -as part of the Derivative Works; within the Source form or -documentation, if provided along with the Derivative Works; or, -within a display generated by the Derivative Works, if and -wherever such third-party notices normally appear. The contents -of the NOTICE file are for informational purposes only and -do not modify the License. You may add Your own attribution -notices within Derivative Works that You distribute, alongside -or as an addendum to the NOTICE text from the Work, provided -that such additional attribution notices cannot be construed -as modifying the License. - -You may add Your own copyright statement to Your modifications and -may provide additional or different license terms and conditions -for use, reproduction, or distribution of Your modifications, or -for any such Derivative Works as a whole, provided Your use, -reproduction, and distribution of the Work otherwise complies with -the conditions stated in this License. - -5. Submission of Contributions. Unless You explicitly state otherwise, -any Contribution intentionally submitted for inclusion in the Work -by You to the Licensor shall be under the terms and conditions of -this License, without any additional terms or conditions. -Notwithstanding the above, nothing herein shall supersede or modify -the terms of any separate license agreement you may have executed -with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade -names, trademarks, service marks, or product names of the Licensor, -except as required for reasonable and customary use in describing the -origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or -agreed to in writing, Licensor provides the Work (and each -Contributor provides its Contributions) on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or -implied, including, without limitation, any warranties or conditions -of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A -PARTICULAR PURPOSE. You are solely responsible for determining the -appropriateness of using or redistributing the Work and assume any -risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, -whether in tort (including negligence), contract, or otherwise, -unless required by applicable law (such as deliberate and grossly -negligent acts) or agreed to in writing, shall any Contributor be -liable to You for damages, including any direct, indirect, special, -incidental, or consequential damages of any character arising as a -result of this License or out of the use or inability to use the -Work (including but not limited to damages for loss of goodwill, -work stoppage, computer failure or malfunction, or any and all -other commercial damages or losses), even if such Contributor -has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing -the Work or Derivative Works thereof, You may choose to offer, -and charge a fee for, acceptance of support, warranty, indemnity, -or other liability obligations and/or rights consistent with this -License. However, in accepting such obligations, You may act only -on Your own behalf and on Your sole responsibility, not on behalf -of any other Contributor, and only if You agree to indemnify, -defend, and hold each Contributor harmless for any liability -incurred by, or claims asserted against, such Contributor by reason -of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -APPENDIX: How to apply the Apache License to your work. - -To apply the Apache License to your work, attach the following -boilerplate notice, with the fields enclosed by brackets "[]" -replaced with your own identifying information. (Don't include -the brackets!) The text should be enclosed in the appropriate -comment syntax for the file format. We also recommend that a -file or class name and description of purpose be included on the -same "printed page" as the copyright notice for easier -identification within third-party archives. - -Copyright [yyyy] [name of copyright owner] - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AccessToken/Revoke.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AccessToken/Revoke.php deleted file mode 100644 index 76268ab..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AccessToken/Revoke.php +++ /dev/null @@ -1,64 +0,0 @@ -http = $http; - } - /** - * Revoke an OAuth2 access token or refresh token. This method will revoke the current access - * token, if a token isn't provided. - * - * @param string|array $token The token (access token or a refresh token) that should be revoked. - * @return boolean Returns True if the revocation was successful, otherwise False. - */ - public function revokeToken($token) - { - if (\is_array($token)) { - if (isset($token['refresh_token'])) { - $token = $token['refresh_token']; - } else { - $token = $token['access_token']; - } - } - $body = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\stream_for(\http_build_query(array('token' => $token))); - $request = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', \WPMailSMTP\Vendor\Google_Client::OAUTH2_REVOKE_URI, ['Cache-Control' => 'no-store', 'Content-Type' => 'application/x-www-form-urlencoded'], $body); - $httpHandler = \WPMailSMTP\Vendor\Google\Auth\HttpHandler\HttpHandlerFactory::build($this->http); - $response = $httpHandler($request); - return $response->getStatusCode() == 200; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AccessToken/Verify.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AccessToken/Verify.php deleted file mode 100644 index a160a36..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AccessToken/Verify.php +++ /dev/null @@ -1,218 +0,0 @@ -http = $http; - $this->cache = $cache; - $this->jwt = $jwt ?: $this->getJwtService(); - } - /** - * Verifies an id token and returns the authenticated apiLoginTicket. - * Throws an exception if the id token is not valid. - * The audience parameter can be used to control which id tokens are - * accepted. By default, the id token must have been issued to this OAuth2 client. - * - * @param string $idToken the ID token in JWT format - * @param string $audience Optional. The audience to verify against JWt "aud" - * @return array the token payload, if successful - */ - public function verifyIdToken($idToken, $audience = null) - { - if (empty($idToken)) { - throw new \LogicException('id_token cannot be null'); - } - // set phpseclib constants if applicable - $this->setPhpsecConstants(); - // Check signature - $certs = $this->getFederatedSignOnCerts(); - foreach ($certs as $cert) { - $bigIntClass = $this->getBigIntClass(); - $rsaClass = $this->getRsaClass(); - $modulus = new $bigIntClass($this->jwt->urlsafeB64Decode($cert['n']), 256); - $exponent = new $bigIntClass($this->jwt->urlsafeB64Decode($cert['e']), 256); - $rsa = new $rsaClass(); - $rsa->loadKey(array('n' => $modulus, 'e' => $exponent)); - try { - $payload = $this->jwt->decode($idToken, $rsa->getPublicKey(), array('RS256')); - if (\property_exists($payload, 'aud')) { - if ($audience && $payload->aud != $audience) { - return \false; - } - } - // support HTTP and HTTPS issuers - // @see https://developers.google.com/identity/sign-in/web/backend-auth - $issuers = array(self::OAUTH2_ISSUER, self::OAUTH2_ISSUER_HTTPS); - if (!isset($payload->iss) || !\in_array($payload->iss, $issuers)) { - return \false; - } - return (array) $payload; - } catch (\WPMailSMTP\Vendor\ExpiredException $e) { - return \false; - } catch (\WPMailSMTP\Vendor\Firebase\JWT\ExpiredException $e) { - return \false; - } catch (\WPMailSMTP\Vendor\Firebase\JWT\SignatureInvalidException $e) { - // continue - } catch (\DomainException $e) { - // continue - } - } - return \false; - } - private function getCache() - { - return $this->cache; - } - /** - * Retrieve and cache a certificates file. - * - * @param $url string location - * @throws Google_Exception - * @return array certificates - */ - private function retrieveCertsFromLocation($url) - { - // If we're retrieving a local file, just grab it. - if (0 !== \strpos($url, 'http')) { - if (!($file = \file_get_contents($url))) { - throw new \WPMailSMTP\Vendor\Google_Exception("Failed to retrieve verification certificates: '" . $url . "'."); - } - return \json_decode($file, \true); - } - $response = $this->http->get($url); - if ($response->getStatusCode() == 200) { - return \json_decode((string) $response->getBody(), \true); - } - throw new \WPMailSMTP\Vendor\Google_Exception(\sprintf('Failed to retrieve verification certificates: "%s".', $response->getBody()->getContents()), $response->getStatusCode()); - } - // Gets federated sign-on certificates to use for verifying identity tokens. - // Returns certs as array structure, where keys are key ids, and values - // are PEM encoded certificates. - private function getFederatedSignOnCerts() - { - $certs = null; - if ($cache = $this->getCache()) { - $cacheItem = $cache->getItem('federated_signon_certs_v3'); - $certs = $cacheItem->get(); - } - if (!$certs) { - $certs = $this->retrieveCertsFromLocation(self::FEDERATED_SIGNON_CERT_URL); - if ($cache) { - $cacheItem->expiresAt(new \DateTime('+1 hour')); - $cacheItem->set($certs); - $cache->save($cacheItem); - } - } - if (!isset($certs['keys'])) { - throw new \InvalidArgumentException('federated sign-on certs expects "keys" to be set'); - } - return $certs['keys']; - } - private function getJwtService() - { - $jwtClass = 'JWT'; - if (\class_exists('WPMailSMTP\\Vendor\\Firebase\\JWT\\JWT')) { - $jwtClass = 'WPMailSMTP\\Vendor\\Firebase\\JWT\\JWT'; - } - if (\property_exists($jwtClass, 'leeway') && $jwtClass::$leeway < 1) { - // Ensures JWT leeway is at least 1 - // @see https://github.com/google/google-api-php-client/issues/827 - $jwtClass::$leeway = 1; - } - return new $jwtClass(); - } - private function getRsaClass() - { - if (\class_exists('WPMailSMTP\\Vendor\\phpseclib\\Crypt\\RSA')) { - return 'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\RSA'; - } - return 'Crypt_RSA'; - } - private function getBigIntClass() - { - if (\class_exists('WPMailSMTP\\Vendor\\phpseclib\\Math\\BigInteger')) { - return 'WPMailSMTP\\Vendor\\phpseclib\\Math\\BigInteger'; - } - return 'Math_BigInteger'; - } - private function getOpenSslConstant() - { - if (\class_exists('WPMailSMTP\\Vendor\\phpseclib\\Crypt\\RSA')) { - return 'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\RSA::MODE_OPENSSL'; - } - if (\class_exists('WPMailSMTP\\Vendor\\Crypt_RSA')) { - return 'CRYPT_RSA_MODE_OPENSSL'; - } - throw new \Exception('Cannot find RSA class'); - } - /** - * phpseclib calls "phpinfo" by default, which requires special - * whitelisting in the AppEngine VM environment. This function - * sets constants to bypass the need for phpseclib to check phpinfo - * - * @see phpseclib/Math/BigInteger - * @see https://github.com/GoogleCloudPlatform/getting-started-php/issues/85 - */ - private function setPhpsecConstants() - { - if (\filter_var(\getenv('GAE_VM'), \FILTER_VALIDATE_BOOLEAN)) { - if (!\defined('WPMailSMTP\\Vendor\\MATH_BIGINTEGER_OPENSSL_ENABLED')) { - \define('WPMailSMTP\\Vendor\\MATH_BIGINTEGER_OPENSSL_ENABLED', \true); - } - if (!\defined('WPMailSMTP\\Vendor\\CRYPT_RSA_MODE')) { - \define('WPMailSMTP\\Vendor\\CRYPT_RSA_MODE', \constant($this->getOpenSslConstant())); - } - } - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AuthHandler/AuthHandlerFactory.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AuthHandler/AuthHandlerFactory.php deleted file mode 100644 index 356ff8c..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AuthHandler/AuthHandlerFactory.php +++ /dev/null @@ -1,49 +0,0 @@ -cache = $cache; - $this->cacheConfig = $cacheConfig; - } - public function attachCredentials(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $http, \WPMailSMTP\Vendor\Google\Auth\CredentialsLoader $credentials, callable $tokenCallback = null) - { - // use the provided cache - if ($this->cache) { - $credentials = new \WPMailSMTP\Vendor\Google\Auth\FetchAuthTokenCache($credentials, $this->cacheConfig, $this->cache); - } - // if we end up needing to make an HTTP request to retrieve credentials, we - // can use our existing one, but we need to throw exceptions so the error - // bubbles up. - $authHttp = $this->createAuthHttp($http); - $authHttpHandler = \WPMailSMTP\Vendor\Google\Auth\HttpHandler\HttpHandlerFactory::build($authHttp); - $subscriber = new \WPMailSMTP\Vendor\Google\Auth\Subscriber\AuthTokenSubscriber($credentials, $authHttpHandler, $tokenCallback); - $http->setDefaultOption('auth', 'google_auth'); - $http->getEmitter()->attach($subscriber); - return $http; - } - public function attachToken(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $http, array $token, array $scopes) - { - $tokenFunc = function ($scopes) use($token) { - return $token['access_token']; - }; - $subscriber = new \WPMailSMTP\Vendor\Google\Auth\Subscriber\ScopedAccessTokenSubscriber($tokenFunc, $scopes, $this->cacheConfig, $this->cache); - $http->setDefaultOption('auth', 'scoped'); - $http->getEmitter()->attach($subscriber); - return $http; - } - public function attachKey(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $http, $key) - { - $subscriber = new \WPMailSMTP\Vendor\Google\Auth\Subscriber\SimpleSubscriber(['key' => $key]); - $http->setDefaultOption('auth', 'simple'); - $http->getEmitter()->attach($subscriber); - return $http; - } - private function createAuthHttp(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $http) - { - return new \WPMailSMTP\Vendor\GuzzleHttp\Client(['base_url' => $http->getBaseUrl(), 'defaults' => ['exceptions' => \true, 'verify' => $http->getDefaultOption('verify'), 'proxy' => $http->getDefaultOption('proxy')]]); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AuthHandler/Guzzle6AuthHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AuthHandler/Guzzle6AuthHandler.php deleted file mode 100644 index 4d53169..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AuthHandler/Guzzle6AuthHandler.php +++ /dev/null @@ -1,72 +0,0 @@ -cache = $cache; - $this->cacheConfig = $cacheConfig; - } - public function attachCredentials(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $http, \WPMailSMTP\Vendor\Google\Auth\CredentialsLoader $credentials, callable $tokenCallback = null) - { - // use the provided cache - if ($this->cache) { - $credentials = new \WPMailSMTP\Vendor\Google\Auth\FetchAuthTokenCache($credentials, $this->cacheConfig, $this->cache); - } - // if we end up needing to make an HTTP request to retrieve credentials, we - // can use our existing one, but we need to throw exceptions so the error - // bubbles up. - $authHttp = $this->createAuthHttp($http); - $authHttpHandler = \WPMailSMTP\Vendor\Google\Auth\HttpHandler\HttpHandlerFactory::build($authHttp); - $middleware = new \WPMailSMTP\Vendor\Google\Auth\Middleware\AuthTokenMiddleware($credentials, $authHttpHandler, $tokenCallback); - $config = $http->getConfig(); - $config['handler']->remove('google_auth'); - $config['handler']->push($middleware, 'google_auth'); - $config['auth'] = 'google_auth'; - $http = new \WPMailSMTP\Vendor\GuzzleHttp\Client($config); - return $http; - } - public function attachToken(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $http, array $token, array $scopes) - { - $tokenFunc = function ($scopes) use($token) { - return $token['access_token']; - }; - $middleware = new \WPMailSMTP\Vendor\Google\Auth\Middleware\ScopedAccessTokenMiddleware($tokenFunc, $scopes, $this->cacheConfig, $this->cache); - $config = $http->getConfig(); - $config['handler']->remove('google_auth'); - $config['handler']->push($middleware, 'google_auth'); - $config['auth'] = 'scoped'; - $http = new \WPMailSMTP\Vendor\GuzzleHttp\Client($config); - return $http; - } - public function attachKey(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $http, $key) - { - $middleware = new \WPMailSMTP\Vendor\Google\Auth\Middleware\SimpleMiddleware(['key' => $key]); - $config = $http->getConfig(); - $config['handler']->remove('google_auth'); - $config['handler']->push($middleware, 'google_auth'); - $config['auth'] = 'simple'; - $http = new \WPMailSMTP\Vendor\GuzzleHttp\Client($config); - return $http; - } - private function createAuthHttp(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $http) - { - return new \WPMailSMTP\Vendor\GuzzleHttp\Client(['base_uri' => $http->getConfig('base_uri'), 'exceptions' => \true, 'verify' => $http->getConfig('verify'), 'proxy' => $http->getConfig('proxy')]); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AuthHandler/Guzzle7AuthHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AuthHandler/Guzzle7AuthHandler.php deleted file mode 100644 index f8c5483..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AuthHandler/Guzzle7AuthHandler.php +++ /dev/null @@ -1,25 +0,0 @@ -config = \array_merge([ - 'application_name' => '', - // Don't change these unless you're working against a special development - // or testing environment. - 'base_path' => self::API_BASE_PATH, - // https://developers.google.com/console - 'client_id' => '', - 'client_secret' => '', - // Path to JSON credentials or an array representing those credentials - // @see Google_Client::setAuthConfig - 'credentials' => null, - // @see Google_Client::setScopes - 'scopes' => null, - // Sets X-Goog-User-Project, which specifies a user project to bill - // for access charges associated with the request - 'quota_project' => null, - 'redirect_uri' => null, - 'state' => null, - // Simple API access key, also from the API console. Ensure you get - // a Server key, and not a Browser key. - 'developer_key' => '', - // For use with Google Cloud Platform - // fetch the ApplicationDefaultCredentials, if applicable - // @see https://developers.google.com/identity/protocols/application-default-credentials - 'use_application_default_credentials' => \false, - 'signing_key' => null, - 'signing_algorithm' => null, - 'subject' => null, - // Other OAuth2 parameters. - 'hd' => '', - 'prompt' => '', - 'openid.realm' => '', - 'include_granted_scopes' => null, - 'login_hint' => '', - 'request_visible_actions' => '', - 'access_type' => 'online', - 'approval_prompt' => 'auto', - // Task Runner retry configuration - // @see Google_Task_Runner - 'retry' => array(), - 'retry_map' => null, - // cache config for downstream auth caching - 'cache_config' => [], - // function to be called when an access token is fetched - // follows the signature function ($cacheKey, $accessToken) - 'token_callback' => null, - // Service class used in Google_Client::verifyIdToken. - // Explicitly pass this in to avoid setting JWT::$leeway - 'jwt' => null, - // Setting api_format_v2 will return more detailed error messages - // from certain APIs. - 'api_format_v2' => \false, - ], $config); - if (!\is_null($this->config['credentials'])) { - $this->setAuthConfig($this->config['credentials']); - unset($this->config['credentials']); - } - if (!\is_null($this->config['scopes'])) { - $this->setScopes($this->config['scopes']); - unset($this->config['scopes']); - } - } - /** - * Get a string containing the version of the library. - * - * @return string - */ - public function getLibraryVersion() - { - return self::LIBVER; - } - /** - * For backwards compatibility - * alias for fetchAccessTokenWithAuthCode - * - * @param $code string code from accounts.google.com - * @return array access token - * @deprecated - */ - public function authenticate($code) - { - return $this->fetchAccessTokenWithAuthCode($code); - } - /** - * Attempt to exchange a code for an valid authentication token. - * Helper wrapped around the OAuth 2.0 implementation. - * - * @param $code string code from accounts.google.com - * @return array access token - */ - public function fetchAccessTokenWithAuthCode($code) - { - if (\strlen($code) == 0) { - throw new \InvalidArgumentException("Invalid code"); - } - $auth = $this->getOAuth2Service(); - $auth->setCode($code); - $auth->setRedirectUri($this->getRedirectUri()); - $httpHandler = \WPMailSMTP\Vendor\Google\Auth\HttpHandler\HttpHandlerFactory::build($this->getHttpClient()); - $creds = $auth->fetchAuthToken($httpHandler); - if ($creds && isset($creds['access_token'])) { - $creds['created'] = \time(); - $this->setAccessToken($creds); - } - return $creds; - } - /** - * For backwards compatibility - * alias for fetchAccessTokenWithAssertion - * - * @return array access token - * @deprecated - */ - public function refreshTokenWithAssertion() - { - return $this->fetchAccessTokenWithAssertion(); - } - /** - * Fetches a fresh access token with a given assertion token. - * @param ClientInterface $authHttp optional. - * @return array access token - */ - public function fetchAccessTokenWithAssertion(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $authHttp = null) - { - if (!$this->isUsingApplicationDefaultCredentials()) { - throw new \DomainException('set the JSON service account credentials using' . ' Google_Client::setAuthConfig or set the path to your JSON file' . ' with the "GOOGLE_APPLICATION_CREDENTIALS" environment variable' . ' and call Google_Client::useApplicationDefaultCredentials to' . ' refresh a token with assertion.'); - } - $this->getLogger()->log('info', 'OAuth2 access token refresh with Signed JWT assertion grants.'); - $credentials = $this->createApplicationDefaultCredentials(); - $httpHandler = \WPMailSMTP\Vendor\Google\Auth\HttpHandler\HttpHandlerFactory::build($authHttp); - $creds = $credentials->fetchAuthToken($httpHandler); - if ($creds && isset($creds['access_token'])) { - $creds['created'] = \time(); - $this->setAccessToken($creds); - } - return $creds; - } - /** - * For backwards compatibility - * alias for fetchAccessTokenWithRefreshToken - * - * @param string $refreshToken - * @return array access token - */ - public function refreshToken($refreshToken) - { - return $this->fetchAccessTokenWithRefreshToken($refreshToken); - } - /** - * Fetches a fresh OAuth 2.0 access token with the given refresh token. - * @param string $refreshToken - * @return array access token - */ - public function fetchAccessTokenWithRefreshToken($refreshToken = null) - { - if (null === $refreshToken) { - if (!isset($this->token['refresh_token'])) { - throw new \LogicException('refresh token must be passed in or set as part of setAccessToken'); - } - $refreshToken = $this->token['refresh_token']; - } - $this->getLogger()->info('OAuth2 access token refresh'); - $auth = $this->getOAuth2Service(); - $auth->setRefreshToken($refreshToken); - $httpHandler = \WPMailSMTP\Vendor\Google\Auth\HttpHandler\HttpHandlerFactory::build($this->getHttpClient()); - $creds = $auth->fetchAuthToken($httpHandler); - if ($creds && isset($creds['access_token'])) { - $creds['created'] = \time(); - if (!isset($creds['refresh_token'])) { - $creds['refresh_token'] = $refreshToken; - } - $this->setAccessToken($creds); - } - return $creds; - } - /** - * Create a URL to obtain user authorization. - * The authorization endpoint allows the user to first - * authenticate, and then grant/deny the access request. - * @param string|array $scope The scope is expressed as an array or list of space-delimited strings. - * @return string - */ - public function createAuthUrl($scope = null) - { - if (empty($scope)) { - $scope = $this->prepareScopes(); - } - if (\is_array($scope)) { - $scope = \implode(' ', $scope); - } - // only accept one of prompt or approval_prompt - $approvalPrompt = $this->config['prompt'] ? null : $this->config['approval_prompt']; - // include_granted_scopes should be string "true", string "false", or null - $includeGrantedScopes = $this->config['include_granted_scopes'] === null ? null : \var_export($this->config['include_granted_scopes'], \true); - $params = \array_filter(['access_type' => $this->config['access_type'], 'approval_prompt' => $approvalPrompt, 'hd' => $this->config['hd'], 'include_granted_scopes' => $includeGrantedScopes, 'login_hint' => $this->config['login_hint'], 'openid.realm' => $this->config['openid.realm'], 'prompt' => $this->config['prompt'], 'response_type' => 'code', 'scope' => $scope, 'state' => $this->config['state']]); - // If the list of scopes contains plus.login, add request_visible_actions - // to auth URL. - $rva = $this->config['request_visible_actions']; - if (\strlen($rva) > 0 && \false !== \strpos($scope, 'plus.login')) { - $params['request_visible_actions'] = $rva; - } - $auth = $this->getOAuth2Service(); - return (string) $auth->buildFullAuthorizationUri($params); - } - /** - * Adds auth listeners to the HTTP client based on the credentials - * set in the Google API Client object - * - * @param GuzzleHttp\ClientInterface $http the http client object. - * @return GuzzleHttp\ClientInterface the http client object - */ - public function authorize(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $http = null) - { - $credentials = null; - $token = null; - $scopes = null; - if (null === $http) { - $http = $this->getHttpClient(); - } - // These conditionals represent the decision tree for authentication - // 1. Check for Application Default Credentials - // 2. Check for API Key - // 3a. Check for an Access Token - // 3b. If access token exists but is expired, try to refresh it - if ($this->isUsingApplicationDefaultCredentials()) { - $credentials = $this->createApplicationDefaultCredentials(); - } elseif ($token = $this->getAccessToken()) { - $scopes = $this->prepareScopes(); - // add refresh subscriber to request a new token - if (isset($token['refresh_token']) && $this->isAccessTokenExpired()) { - $credentials = $this->createUserRefreshCredentials($scopes, $token['refresh_token']); - } - } - $authHandler = $this->getAuthHandler(); - if ($credentials) { - $callback = $this->config['token_callback']; - $http = $authHandler->attachCredentials($http, $credentials, $callback); - } elseif ($token) { - $http = $authHandler->attachToken($http, $token, (array) $scopes); - } elseif ($key = $this->config['developer_key']) { - $http = $authHandler->attachKey($http, $key); - } - return $http; - } - /** - * Set the configuration to use application default credentials for - * authentication - * - * @see https://developers.google.com/identity/protocols/application-default-credentials - * @param boolean $useAppCreds - */ - public function useApplicationDefaultCredentials($useAppCreds = \true) - { - $this->config['use_application_default_credentials'] = $useAppCreds; - } - /** - * To prevent useApplicationDefaultCredentials from inappropriately being - * called in a conditional - * - * @see https://developers.google.com/identity/protocols/application-default-credentials - */ - public function isUsingApplicationDefaultCredentials() - { - return $this->config['use_application_default_credentials']; - } - /** - * Set the access token used for requests. - * - * Note that at the time requests are sent, tokens are cached. A token will be - * cached for each combination of service and authentication scopes. If a - * cache pool is not provided, creating a new instance of the client will - * allow modification of access tokens. If a persistent cache pool is - * provided, in order to change the access token, you must clear the cached - * token by calling `$client->getCache()->clear()`. (Use caution in this case, - * as calling `clear()` will remove all cache items, including any items not - * related to Google API PHP Client.) - * - * @param string|array $token - * @throws InvalidArgumentException - */ - public function setAccessToken($token) - { - if (\is_string($token)) { - if ($json = \json_decode($token, \true)) { - $token = $json; - } else { - // assume $token is just the token string - $token = array('access_token' => $token); - } - } - if ($token == null) { - throw new \InvalidArgumentException('invalid json token'); - } - if (!isset($token['access_token'])) { - throw new \InvalidArgumentException("Invalid token format"); - } - $this->token = $token; - } - public function getAccessToken() - { - return $this->token; - } - /** - * @return string|null - */ - public function getRefreshToken() - { - if (isset($this->token['refresh_token'])) { - return $this->token['refresh_token']; - } - return null; - } - /** - * Returns if the access_token is expired. - * @return bool Returns True if the access_token is expired. - */ - public function isAccessTokenExpired() - { - if (!$this->token) { - return \true; - } - $created = 0; - if (isset($this->token['created'])) { - $created = $this->token['created']; - } elseif (isset($this->token['id_token'])) { - // check the ID token for "iat" - // signature verification is not required here, as we are just - // using this for convenience to save a round trip request - // to the Google API server - $idToken = $this->token['id_token']; - if (\substr_count($idToken, '.') == 2) { - $parts = \explode('.', $idToken); - $payload = \json_decode(\base64_decode($parts[1]), \true); - if ($payload && isset($payload['iat'])) { - $created = $payload['iat']; - } - } - } - // If the token is set to expire in the next 30 seconds. - return $created + ($this->token['expires_in'] - 30) < \time(); - } - /** - * @deprecated See UPGRADING.md for more information - */ - public function getAuth() - { - throw new \BadMethodCallException('This function no longer exists. See UPGRADING.md for more information'); - } - /** - * @deprecated See UPGRADING.md for more information - */ - public function setAuth($auth) - { - throw new \BadMethodCallException('This function no longer exists. See UPGRADING.md for more information'); - } - /** - * Set the OAuth 2.0 Client ID. - * @param string $clientId - */ - public function setClientId($clientId) - { - $this->config['client_id'] = $clientId; - } - public function getClientId() - { - return $this->config['client_id']; - } - /** - * Set the OAuth 2.0 Client Secret. - * @param string $clientSecret - */ - public function setClientSecret($clientSecret) - { - $this->config['client_secret'] = $clientSecret; - } - public function getClientSecret() - { - return $this->config['client_secret']; - } - /** - * Set the OAuth 2.0 Redirect URI. - * @param string $redirectUri - */ - public function setRedirectUri($redirectUri) - { - $this->config['redirect_uri'] = $redirectUri; - } - public function getRedirectUri() - { - return $this->config['redirect_uri']; - } - /** - * Set OAuth 2.0 "state" parameter to achieve per-request customization. - * @see http://tools.ietf.org/html/draft-ietf-oauth-v2-22#section-3.1.2.2 - * @param string $state - */ - public function setState($state) - { - $this->config['state'] = $state; - } - /** - * @param string $accessType Possible values for access_type include: - * {@code "offline"} to request offline access from the user. - * {@code "online"} to request online access from the user. - */ - public function setAccessType($accessType) - { - $this->config['access_type'] = $accessType; - } - /** - * @param string $approvalPrompt Possible values for approval_prompt include: - * {@code "force"} to force the approval UI to appear. - * {@code "auto"} to request auto-approval when possible. (This is the default value) - */ - public function setApprovalPrompt($approvalPrompt) - { - $this->config['approval_prompt'] = $approvalPrompt; - } - /** - * Set the login hint, email address or sub id. - * @param string $loginHint - */ - public function setLoginHint($loginHint) - { - $this->config['login_hint'] = $loginHint; - } - /** - * Set the application name, this is included in the User-Agent HTTP header. - * @param string $applicationName - */ - public function setApplicationName($applicationName) - { - $this->config['application_name'] = $applicationName; - } - /** - * If 'plus.login' is included in the list of requested scopes, you can use - * this method to define types of app activities that your app will write. - * You can find a list of available types here: - * @link https://developers.google.com/+/api/moment-types - * - * @param array $requestVisibleActions Array of app activity types - */ - public function setRequestVisibleActions($requestVisibleActions) - { - if (\is_array($requestVisibleActions)) { - $requestVisibleActions = \implode(" ", $requestVisibleActions); - } - $this->config['request_visible_actions'] = $requestVisibleActions; - } - /** - * Set the developer key to use, these are obtained through the API Console. - * @see http://code.google.com/apis/console-help/#generatingdevkeys - * @param string $developerKey - */ - public function setDeveloperKey($developerKey) - { - $this->config['developer_key'] = $developerKey; - } - /** - * Set the hd (hosted domain) parameter streamlines the login process for - * Google Apps hosted accounts. By including the domain of the user, you - * restrict sign-in to accounts at that domain. - * @param $hd string - the domain to use. - */ - public function setHostedDomain($hd) - { - $this->config['hd'] = $hd; - } - /** - * Set the prompt hint. Valid values are none, consent and select_account. - * If no value is specified and the user has not previously authorized - * access, then the user is shown a consent screen. - * @param $prompt string - * {@code "none"} Do not display any authentication or consent screens. Must not be specified with other values. - * {@code "consent"} Prompt the user for consent. - * {@code "select_account"} Prompt the user to select an account. - */ - public function setPrompt($prompt) - { - $this->config['prompt'] = $prompt; - } - /** - * openid.realm is a parameter from the OpenID 2.0 protocol, not from OAuth - * 2.0. It is used in OpenID 2.0 requests to signify the URL-space for which - * an authentication request is valid. - * @param $realm string - the URL-space to use. - */ - public function setOpenidRealm($realm) - { - $this->config['openid.realm'] = $realm; - } - /** - * If this is provided with the value true, and the authorization request is - * granted, the authorization will include any previous authorizations - * granted to this user/application combination for other scopes. - * @param $include boolean - the URL-space to use. - */ - public function setIncludeGrantedScopes($include) - { - $this->config['include_granted_scopes'] = $include; - } - /** - * sets function to be called when an access token is fetched - * @param callable $tokenCallback - function ($cacheKey, $accessToken) - */ - public function setTokenCallback(callable $tokenCallback) - { - $this->config['token_callback'] = $tokenCallback; - } - /** - * Revoke an OAuth2 access token or refresh token. This method will revoke the current access - * token, if a token isn't provided. - * - * @param string|array|null $token The token (access token or a refresh token) that should be revoked. - * @return boolean Returns True if the revocation was successful, otherwise False. - */ - public function revokeToken($token = null) - { - $tokenRevoker = new \WPMailSMTP\Vendor\Google_AccessToken_Revoke($this->getHttpClient()); - return $tokenRevoker->revokeToken($token ?: $this->getAccessToken()); - } - /** - * Verify an id_token. This method will verify the current id_token, if one - * isn't provided. - * - * @throws LogicException If no token was provided and no token was set using `setAccessToken`. - * @throws UnexpectedValueException If the token is not a valid JWT. - * @param string|null $idToken The token (id_token) that should be verified. - * @return array|false Returns the token payload as an array if the verification was - * successful, false otherwise. - */ - public function verifyIdToken($idToken = null) - { - $tokenVerifier = new \WPMailSMTP\Vendor\Google_AccessToken_Verify($this->getHttpClient(), $this->getCache(), $this->config['jwt']); - if (null === $idToken) { - $token = $this->getAccessToken(); - if (!isset($token['id_token'])) { - throw new \LogicException('id_token must be passed in or set as part of setAccessToken'); - } - $idToken = $token['id_token']; - } - return $tokenVerifier->verifyIdToken($idToken, $this->getClientId()); - } - /** - * Set the scopes to be requested. Must be called before createAuthUrl(). - * Will remove any previously configured scopes. - * @param string|array $scope_or_scopes, ie: - * array( - * 'https://www.googleapis.com/auth/plus.login', - * 'https://www.googleapis.com/auth/moderator' - * ); - */ - public function setScopes($scope_or_scopes) - { - $this->requestedScopes = array(); - $this->addScope($scope_or_scopes); - } - /** - * This functions adds a scope to be requested as part of the OAuth2.0 flow. - * Will append any scopes not previously requested to the scope parameter. - * A single string will be treated as a scope to request. An array of strings - * will each be appended. - * @param $scope_or_scopes string|array e.g. "profile" - */ - public function addScope($scope_or_scopes) - { - if (\is_string($scope_or_scopes) && !\in_array($scope_or_scopes, $this->requestedScopes)) { - $this->requestedScopes[] = $scope_or_scopes; - } else { - if (\is_array($scope_or_scopes)) { - foreach ($scope_or_scopes as $scope) { - $this->addScope($scope); - } - } - } - } - /** - * Returns the list of scopes requested by the client - * @return array the list of scopes - * - */ - public function getScopes() - { - return $this->requestedScopes; - } - /** - * @return string|null - * @visible For Testing - */ - public function prepareScopes() - { - if (empty($this->requestedScopes)) { - return null; - } - return \implode(' ', $this->requestedScopes); - } - /** - * Helper method to execute deferred HTTP requests. - * - * @param $request Psr\Http\Message\RequestInterface|Google_Http_Batch - * @param string $expectedClass - * @throws Google_Exception - * @return object of the type of the expected class or Psr\Http\Message\ResponseInterface. - */ - public function execute(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, $expectedClass = null) - { - $request = $request->withHeader('User-Agent', \sprintf('%s %s%s', $this->config['application_name'], self::USER_AGENT_SUFFIX, $this->getLibraryVersion()))->withHeader('x-goog-api-client', \sprintf('gl-php/%s gdcl/%s', \phpversion(), $this->getLibraryVersion())); - if ($this->config['api_format_v2']) { - $request = $request->withHeader('X-GOOG-API-FORMAT-VERSION', 2); - } - // call the authorize method - // this is where most of the grunt work is done - $http = $this->authorize(); - return \WPMailSMTP\Vendor\Google_Http_REST::execute($http, $request, $expectedClass, $this->config['retry'], $this->config['retry_map']); - } - /** - * Declare whether batch calls should be used. This may increase throughput - * by making multiple requests in one connection. - * - * @param boolean $useBatch True if the batch support should - * be enabled. Defaults to False. - */ - public function setUseBatch($useBatch) - { - // This is actually an alias for setDefer. - $this->setDefer($useBatch); - } - /** - * Are we running in Google AppEngine? - * return bool - */ - public function isAppEngine() - { - return isset($_SERVER['SERVER_SOFTWARE']) && \strpos($_SERVER['SERVER_SOFTWARE'], 'Google App Engine') !== \false; - } - public function setConfig($name, $value) - { - $this->config[$name] = $value; - } - public function getConfig($name, $default = null) - { - return isset($this->config[$name]) ? $this->config[$name] : $default; - } - /** - * For backwards compatibility - * alias for setAuthConfig - * - * @param string $file the configuration file - * @throws Google_Exception - * @deprecated - */ - public function setAuthConfigFile($file) - { - $this->setAuthConfig($file); - } - /** - * Set the auth config from new or deprecated JSON config. - * This structure should match the file downloaded from - * the "Download JSON" button on in the Google Developer - * Console. - * @param string|array $config the configuration json - * @throws Google_Exception - */ - public function setAuthConfig($config) - { - if (\is_string($config)) { - if (!\file_exists($config)) { - throw new \InvalidArgumentException(\sprintf('file "%s" does not exist', $config)); - } - $json = \file_get_contents($config); - if (!($config = \json_decode($json, \true))) { - throw new \LogicException('invalid json for auth config'); - } - } - $key = isset($config['installed']) ? 'installed' : 'web'; - if (isset($config['type']) && $config['type'] == 'service_account') { - // application default credentials - $this->useApplicationDefaultCredentials(); - // set the information from the config - $this->setClientId($config['client_id']); - $this->config['client_email'] = $config['client_email']; - $this->config['signing_key'] = $config['private_key']; - $this->config['signing_algorithm'] = 'HS256'; - } elseif (isset($config[$key])) { - // old-style - $this->setClientId($config[$key]['client_id']); - $this->setClientSecret($config[$key]['client_secret']); - if (isset($config[$key]['redirect_uris'])) { - $this->setRedirectUri($config[$key]['redirect_uris'][0]); - } - } else { - // new-style - $this->setClientId($config['client_id']); - $this->setClientSecret($config['client_secret']); - if (isset($config['redirect_uris'])) { - $this->setRedirectUri($config['redirect_uris'][0]); - } - } - } - /** - * Use when the service account has been delegated domain wide access. - * - * @param string $subject an email address account to impersonate - */ - public function setSubject($subject) - { - $this->config['subject'] = $subject; - } - /** - * Declare whether making API calls should make the call immediately, or - * return a request which can be called with ->execute(); - * - * @param boolean $defer True if calls should not be executed right away. - */ - public function setDefer($defer) - { - $this->deferExecution = $defer; - } - /** - * Whether or not to return raw requests - * @return boolean - */ - public function shouldDefer() - { - return $this->deferExecution; - } - /** - * @return Google\Auth\OAuth2 implementation - */ - public function getOAuth2Service() - { - if (!isset($this->auth)) { - $this->auth = $this->createOAuth2Service(); - } - return $this->auth; - } - /** - * create a default google auth object - */ - protected function createOAuth2Service() - { - $auth = new \WPMailSMTP\Vendor\Google\Auth\OAuth2(['clientId' => $this->getClientId(), 'clientSecret' => $this->getClientSecret(), 'authorizationUri' => self::OAUTH2_AUTH_URL, 'tokenCredentialUri' => self::OAUTH2_TOKEN_URI, 'redirectUri' => $this->getRedirectUri(), 'issuer' => $this->config['client_id'], 'signingKey' => $this->config['signing_key'], 'signingAlgorithm' => $this->config['signing_algorithm']]); - return $auth; - } - /** - * Set the Cache object - * @param Psr\Cache\CacheItemPoolInterface $cache - */ - public function setCache(\WPMailSMTP\Vendor\Psr\Cache\CacheItemPoolInterface $cache) - { - $this->cache = $cache; - } - /** - * @return Psr\Cache\CacheItemPoolInterface Cache implementation - */ - public function getCache() - { - if (!$this->cache) { - $this->cache = $this->createDefaultCache(); - } - return $this->cache; - } - /** - * @param array $cacheConfig - */ - public function setCacheConfig(array $cacheConfig) - { - $this->config['cache_config'] = $cacheConfig; - } - /** - * Set the Logger object - * @param Psr\Log\LoggerInterface $logger - */ - public function setLogger(\WPMailSMTP\Vendor\Psr\Log\LoggerInterface $logger) - { - $this->logger = $logger; - } - /** - * @return Psr\Log\LoggerInterface implementation - */ - public function getLogger() - { - if (!isset($this->logger)) { - $this->logger = $this->createDefaultLogger(); - } - return $this->logger; - } - protected function createDefaultLogger() - { - $logger = new \WPMailSMTP\Vendor\Monolog\Logger('google-api-php-client'); - if ($this->isAppEngine()) { - $handler = new \WPMailSMTP\Vendor\Monolog\Handler\SyslogHandler('app', \LOG_USER, \WPMailSMTP\Vendor\Monolog\Logger::NOTICE); - } else { - $handler = new \WPMailSMTP\Vendor\Monolog\Handler\StreamHandler('php://stderr', \WPMailSMTP\Vendor\Monolog\Logger::NOTICE); - } - $logger->pushHandler($handler); - return $logger; - } - protected function createDefaultCache() - { - return new \WPMailSMTP\Vendor\Google\Auth\Cache\MemoryCacheItemPool(); - } - /** - * Set the Http Client object - * @param GuzzleHttp\ClientInterface $http - */ - public function setHttpClient(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $http) - { - $this->http = $http; - } - /** - * @return GuzzleHttp\ClientInterface implementation - */ - public function getHttpClient() - { - if (null === $this->http) { - $this->http = $this->createDefaultHttpClient(); - } - return $this->http; - } - /** - * Set the API format version. - * - * `true` will use V2, which may return more useful error messages. - * - * @param bool $value - */ - public function setApiFormatV2($value) - { - $this->config['api_format_v2'] = (bool) $value; - } - protected function createDefaultHttpClient() - { - $guzzleVersion = null; - if (\defined('\\WPMailSMTP\\Vendor\\GuzzleHttp\\ClientInterface::MAJOR_VERSION')) { - $guzzleVersion = \WPMailSMTP\Vendor\GuzzleHttp\ClientInterface::MAJOR_VERSION; - } elseif (\defined('\\WPMailSMTP\\Vendor\\GuzzleHttp\\ClientInterface::VERSION')) { - $guzzleVersion = (int) \substr(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface::VERSION, 0, 1); - } - $options = ['exceptions' => \false]; - if (5 === $guzzleVersion) { - $options = ['base_url' => $this->config['base_path'], 'defaults' => $options]; - if ($this->isAppEngine()) { - // set StreamHandler on AppEngine by default - $options['handler'] = new \WPMailSMTP\Vendor\GuzzleHttp\Ring\Client\StreamHandler(); - $options['defaults']['verify'] = '/etc/ca-certificates.crt'; - } - } elseif (6 === $guzzleVersion || 7 === $guzzleVersion) { - // guzzle 6 or 7 - $options['base_uri'] = $this->config['base_path']; - } else { - throw new \LogicException('Could not find supported version of Guzzle.'); - } - return new \WPMailSMTP\Vendor\GuzzleHttp\Client($options); - } - private function createApplicationDefaultCredentials() - { - $scopes = $this->prepareScopes(); - $sub = $this->config['subject']; - $signingKey = $this->config['signing_key']; - // create credentials using values supplied in setAuthConfig - if ($signingKey) { - $serviceAccountCredentials = array('client_id' => $this->config['client_id'], 'client_email' => $this->config['client_email'], 'private_key' => $signingKey, 'type' => 'service_account', 'quota_project' => $this->config['quota_project']); - $credentials = \WPMailSMTP\Vendor\Google\Auth\CredentialsLoader::makeCredentials($scopes, $serviceAccountCredentials); - } else { - $credentials = \WPMailSMTP\Vendor\Google\Auth\ApplicationDefaultCredentials::getCredentials($scopes, null, null, null, $this->config['quota_project']); - } - // for service account domain-wide authority (impersonating a user) - // @see https://developers.google.com/identity/protocols/OAuth2ServiceAccount - if ($sub) { - if (!$credentials instanceof \WPMailSMTP\Vendor\Google\Auth\Credentials\ServiceAccountCredentials) { - throw new \DomainException('domain-wide authority requires service account credentials'); - } - $credentials->setSub($sub); - } - return $credentials; - } - protected function getAuthHandler() - { - // Be very careful using the cache, as the underlying auth library's cache - // implementation is naive, and the cache keys do not account for user - // sessions. - // - // @see https://github.com/google/google-api-php-client/issues/821 - return \WPMailSMTP\Vendor\Google_AuthHandler_AuthHandlerFactory::build($this->getCache(), $this->config['cache_config']); - } - private function createUserRefreshCredentials($scope, $refreshToken) - { - $creds = \array_filter(array('client_id' => $this->getClientId(), 'client_secret' => $this->getClientSecret(), 'refresh_token' => $refreshToken)); - return new \WPMailSMTP\Vendor\Google\Auth\Credentials\UserRefreshCredentials($scope, $creds); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Collection.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Collection.php deleted file mode 100644 index 75c3360..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Collection.php +++ /dev/null @@ -1,87 +0,0 @@ -{$this->collection_key}) && \is_array($this->{$this->collection_key})) { - \reset($this->{$this->collection_key}); - } - } - public function current() - { - $this->coerceType($this->key()); - if (\is_array($this->{$this->collection_key})) { - return \current($this->{$this->collection_key}); - } - } - public function key() - { - if (isset($this->{$this->collection_key}) && \is_array($this->{$this->collection_key})) { - return \key($this->{$this->collection_key}); - } - } - public function next() - { - return \next($this->{$this->collection_key}); - } - public function valid() - { - $key = $this->key(); - return $key !== null && $key !== \false; - } - public function count() - { - if (!isset($this->{$this->collection_key})) { - return 0; - } - return \count($this->{$this->collection_key}); - } - public function offsetExists($offset) - { - if (!\is_numeric($offset)) { - return parent::offsetExists($offset); - } - return isset($this->{$this->collection_key}[$offset]); - } - public function offsetGet($offset) - { - if (!\is_numeric($offset)) { - return parent::offsetGet($offset); - } - $this->coerceType($offset); - return $this->{$this->collection_key}[$offset]; - } - public function offsetSet($offset, $value) - { - if (!\is_numeric($offset)) { - return parent::offsetSet($offset, $value); - } - $this->{$this->collection_key}[$offset] = $value; - } - public function offsetUnset($offset) - { - if (!\is_numeric($offset)) { - return parent::offsetUnset($offset); - } - unset($this->{$this->collection_key}[$offset]); - } - private function coerceType($offset) - { - $keyType = $this->keyType($this->collection_key); - if ($keyType && !\is_object($this->{$this->collection_key}[$offset])) { - $this->{$this->collection_key}[$offset] = new $keyType($this->{$this->collection_key}[$offset]); - } - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Exception.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Exception.php deleted file mode 100644 index 89b3098..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Exception.php +++ /dev/null @@ -1,22 +0,0 @@ -client = $client; - $this->boundary = $boundary ?: \mt_rand(); - $this->rootUrl = \rtrim($rootUrl ?: $this->client->getConfig('base_path'), '/'); - $this->batchPath = $batchPath ?: self::BATCH_PATH; - } - public function add(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, $key = \false) - { - if (\false == $key) { - $key = \mt_rand(); - } - $this->requests[$key] = $request; - } - public function execute() - { - $body = ''; - $classes = array(); - $batchHttpTemplate = <<ErrorHandler::register($logger);
- *
- * @author Jordi Boggiano ' . \htmlspecialchars($td, \ENT_NOQUOTES, 'UTF-8') . ''; - } - return "
- * $activationStrategy = new ChannelLevelActivationStrategy(
- * Logger::CRITICAL,
- * array(
- * 'request' => Logger::ALERT,
- * 'sensitive' => Logger::ERROR,
- * )
- * );
- * $handler = new FingersCrossedHandler(new StreamHandler('php://stderr'), $activationStrategy);
- *
- *
- * @author Mike Meessen
- */
-interface ProcessorInterface
-{
- /**
- * @return array The processed records
- */
- public function __invoke(array $records);
-}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php
deleted file mode 100644
index 53483cb..0000000
--- a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php
+++ /dev/null
@@ -1,45 +0,0 @@
-
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-namespace WPMailSMTP\Vendor\Monolog\Processor;
-
-use WPMailSMTP\Vendor\Monolog\Utils;
-/**
- * Processes a record's message according to PSR-3 rules
- *
- * It replaces {foo} with the value from $context['foo']
- *
- * @author Jordi Boggiano ' . \base64_encode($raw['prime1']) . "
- * $application = new Monolog\Logger('application');
- * $api = new Monolog\Logger('api');
- *
- * Monolog\Registry::addLogger($application);
- * Monolog\Registry::addLogger($api);
- *
- * function testLogger()
- * {
- * Monolog\Registry::api()->addError('Sent to $api Logger instance');
- * Monolog\Registry::application()->addError('Sent to $application Logger instance');
- * }
- *
- *
- * @author Tomas Tatarko
- * createKey());
- *
- * $plaintext = 'terrafrost';
- *
- * $rsa->loadKey($privatekey);
- * $signature = $rsa->sign($plaintext);
- *
- * $rsa->loadKey($publickey);
- * echo $rsa->verify($plaintext, $signature) ? 'verified' : 'unverified';
- * ?>
- *
- *
- * @category Crypt
- * @package RSA
- * @author Jim Wigginton ' . \base64_encode($raw['prime2']) . "
\r\n" . '