Changeset 3401937
- Timestamp:
- 11/24/2025 02:47:27 PM (4 months ago)
- Location:
- acymailing
- Files:
-
- 30 edited
- 1 copied
-
tags/10.6.6 (copied) (copied from acymailing/trunk)
-
tags/10.6.6/back/Controllers/DashboardController.php (modified) (1 diff)
-
tags/10.6.6/back/Core/wordpress/extension.php (modified) (6 diffs)
-
tags/10.6.6/back/Core/wplangindexer.php (modified) (1 diff)
-
tags/10.6.6/back/Helpers/CronHelper.php (modified) (3 diffs)
-
tags/10.6.6/back/Helpers/Update/Configuration.php (modified) (1 diff)
-
tags/10.6.6/back/Helpers/UpdateHelper.php (modified) (1 diff)
-
tags/10.6.6/back/Helpers/global/curl.php (modified) (2 diffs)
-
tags/10.6.6/back/Helpers/global/view.php (modified) (1 diff)
-
tags/10.6.6/back/Views/Configuration/tmpl/queue.php (modified) (1 diff)
-
tags/10.6.6/index.php (modified) (1 diff)
-
tags/10.6.6/language/acymailing.pot (modified) (1 diff)
-
tags/10.6.6/language/en-US.com_acym.ini (modified) (1 diff)
-
tags/10.6.6/media/js/back/configuration.min.js (modified) (1 diff)
-
tags/10.6.6/readme.txt (modified) (2 diffs)
-
tags/10.6.6/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/back/Controllers/DashboardController.php (modified) (1 diff)
-
trunk/back/Core/wordpress/extension.php (modified) (6 diffs)
-
trunk/back/Core/wplangindexer.php (modified) (1 diff)
-
trunk/back/Helpers/CronHelper.php (modified) (3 diffs)
-
trunk/back/Helpers/Update/Configuration.php (modified) (1 diff)
-
trunk/back/Helpers/UpdateHelper.php (modified) (1 diff)
-
trunk/back/Helpers/global/curl.php (modified) (2 diffs)
-
trunk/back/Helpers/global/view.php (modified) (1 diff)
-
trunk/back/Views/Configuration/tmpl/queue.php (modified) (1 diff)
-
trunk/index.php (modified) (1 diff)
-
trunk/language/acymailing.pot (modified) (1 diff)
-
trunk/language/en-US.com_acym.ini (modified) (1 diff)
-
trunk/media/js/back/configuration.min.js (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
acymailing/tags/10.6.6/back/Controllers/DashboardController.php
r3400526 r3401937 45 45 $splashJson = acym_fileGetContent(ACYM_NEW_FEATURES_SPLASHSCREEN_JSON); 46 46 $version = json_decode($splashJson); 47 if (version_compare($this->config->get('previous_version', '10.6. 5'), $version->max_version, '>=')) {47 if (version_compare($this->config->get('previous_version', '10.6.6'), $version->max_version, '>=')) { 48 48 @unlink(ACYM_NEW_FEATURES_SPLASHSCREEN_JSON); 49 49 $this->listing(); -
acymailing/tags/10.6.6/back/Core/wordpress/extension.php
r3400526 r3401937 31 31 'title' => acym_translation('ACYM_ARTICLE'), 32 32 'folder_name' => 'post', 33 'version' => '10.6. 5',33 'version' => '10.6.6', 34 34 'active' => '1', 35 35 'category' => 'Content management', … … 37 37 'uptodate' => '1', 38 38 'description' => '- Insert WordPress posts in your emails<br/>- Insert the latest posts of a category in an automatic email', 39 'latest_version' => '10.6. 5',39 'latest_version' => '10.6.6', 40 40 'type' => 'CORE', 41 41 ], … … 43 43 'title' => acym_translation('ACYM_PAGE'), 44 44 'folder_name' => 'page', 45 'version' => '10.6. 5',45 'version' => '10.6.6', 46 46 'active' => '1', 47 47 'category' => 'Content management', … … 49 49 'uptodate' => '1', 50 50 'description' => '- Insert pages in your emails', 51 'latest_version' => '10.6. 5',51 'latest_version' => '10.6.6', 52 52 'type' => 'CORE', 53 53 ], … … 55 55 'title' => acym_translation('ACYM_CREATE_USER'), 56 56 'folder_name' => 'createuser', 57 'version' => '10.6. 5',57 'version' => '10.6.6', 58 58 'active' => '1', 59 59 'category' => 'User management', … … 61 61 'uptodate' => '1', 62 62 'description' => '- Automatically creates a site user when an AcyMailing subscriber is created', 63 'latest_version' => '10.6. 5',63 'latest_version' => '10.6.6', 64 64 'type' => 'CORE', 65 65 ], -
acymailing/tags/10.6.6/back/Core/wplangindexer.php
r3400526 r3401937 1 1 <?php 2 2 3 __('Only use a dedicated sending process when experiencing issues on automated tasks. This might not work for all servers!', 'acymailing'); 4 __('Executing automated tasks may take a lot of time. If you\'re experiencing issues you may try using a dedicated process to send queued emails.', 'acymailing'); 5 __('Use dedicated sending process', 'acymailing'); 3 6 __('An error occurred while retrieving the triggers of automatic campaigns. Please reconfigure the sending settings, save and reactivate them. Campaign ids: %s', 'acymailing'); 4 7 __('Go to automatic campaigns', 'acymailing'); -
acymailing/tags/10.6.6/back/Helpers/CronHelper.php
r3398904 r3401937 338 338 } 339 339 340 if ($this->isSendingCall || !acym_level(ACYM_ENTERPRISE) || !function_exists('curl_multi_exec')) { 340 if (!$this->isSendingCall && acym_level(ACYM_ENTERPRISE) && function_exists('curl_multi_exec')) { 341 $this->handleMultiCron(); 342 } 343 344 if ($this->isSendingCall || $this->config->get('dedicated_send_process', 0) != 1) { 341 345 $this->sendQueuedEmails(); 342 } else {343 $this->handleMultiCron();344 346 } 345 347 } … … 362 364 if (empty($emailsPerBatches)) { 363 365 return; 366 } 367 368 $nbBatches = $this->config->get('queue_batch_auto', 1); 369 $nbBatches = intval($nbBatches); 370 371 if ($this->config->get('dedicated_send_process', 0) == 1) { 372 $startCron = 0; 373 } else { 374 if ($nbBatches < 2) { 375 return; 376 } 377 378 $startCron = 1; 364 379 } 365 380 … … 369 384 } 370 385 371 $nbBatches = $this->config->get('queue_batch_auto', 1);372 $nbBatches = intval($nbBatches);373 374 386 $urls = []; 375 for ($i = 0; $i < $nbBatches; $i++) {387 for ($i = $startCron; $i < $nbBatches; $i++) { 376 388 $urls[] = acym_frontendLink('cron&task=cron&type=sending&startqueue='.($emailsPerBatches * $i).$cronParams); 377 389 } -
acymailing/tags/10.6.6/back/Helpers/Update/Configuration.php
r3400526 r3401937 123 123 $allPref['Essential'] = ACYM_ESSENTIAL; 124 124 $allPref['Enterprise'] = ACYM_ENTERPRISE; 125 $allPref['previous_version'] = '10.6. 5';125 $allPref['previous_version'] = '10.6.6'; 126 126 127 127 $allPref['display_built_by'] = acym_level(ACYM_ESSENTIAL) ? 0 : 1; -
acymailing/tags/10.6.6/back/Helpers/UpdateHelper.php
r3400526 r3401937 22 22 23 23 private string $level = 'starter'; 24 private string $version = '10.6. 5';24 private string $version = '10.6.6'; 25 25 private string $previousVersion; 26 26 private bool $isUpdating = false; -
acymailing/tags/10.6.6/back/Helpers/global/curl.php
r3398904 r3401937 108 108 curl_setopt($ch, CURLOPT_URL, $url); 109 109 curl_setopt($ch, CURLOPT_HEADER, 0); 110 curl_setopt($ch, CURLOPT_TIMEOUT, 1);111 110 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 112 111 curl_multi_add_handle($mh, $ch); … … 127 126 foreach ($handles as $handle) { 128 127 curl_multi_remove_handle($mh, $handle); 129 curl_close($handle);130 128 } 131 129 curl_multi_close($mh); -
acymailing/tags/10.6.6/back/Helpers/global/view.php
r3397048 r3401937 420 420 'ACYM_EXTRA_INFORMATION', 421 421 'ACYM_SELECT_A_PAGE', 422 'ACYM_DEDICATED_SENDING_PROCESS_WARNING', 422 423 ]; 423 424 -
acymailing/tags/10.6.6/back/Views/Configuration/tmpl/queue.php
r3397048 r3401937 226 226 </div> 227 227 </div> 228 <div class="cell medium-3 automatic_only automatic_manual"> 229 <?php 230 echo acym_translation('ACYM_USE_DEDICATED_SENDING_PROCESS'); 231 echo acym_info(['textShownInTooltip' => 'ACYM_USE_DEDICATED_SENDING_PROCESS_DESC']); ?> 232 </div> 233 <div class="cell medium-9 grid-x automatic_only automatic_manual"> 234 <div class="cell medium-6 large-4 xlarge-3 xxlarge-2"> 235 <?php 236 echo acym_switch( 237 'config[dedicated_send_process]', 238 $this->config->get('dedicated_send_process', 0) 239 ); 240 ?> 241 </div> 242 </div> 228 243 <?php } ?> 229 244 </div> -
acymailing/tags/10.6.6/index.php
r3400526 r3401937 6 6 * Author URI: https://www.acymailing.com 7 7 * License: GPLv3 8 * Version: 10.6. 58 * Version: 10.6.6 9 9 * Text Domain: acymailing 10 10 * Domain Path: /language -
acymailing/tags/10.6.6/language/acymailing.pot
r3400526 r3401937 1 1 msgid "" 2 2 msgstr "" 3 "Project-Id-Version: AcyMailing 10.6. 5\n"3 "Project-Id-Version: AcyMailing 10.6.6\n" 4 4 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/acymailing\n" 5 5 "MIME-Version: 1.0\n" 6 6 "Content-Type: text/plain; charset=UTF-8\n" 7 7 "Content-Transfer-Encoding: 8bit\n" 8 "POT-Creation-Date: 2025-11-2 1\n"8 "POT-Creation-Date: 2025-11-24\n" 9 9 "X-Domain: acymailing\n" 10 10 11 11 12 msgid "Only use a dedicated sending process when experiencing issues on automated tasks. This might not work for all servers!" 13 msgstr "" 14 15 msgid "Executing automated tasks may take a lot of time. If you're experiencing issues you may try using a dedicated process to send queued emails." 16 msgstr "" 17 18 msgid "Use dedicated sending process" 19 msgstr "" 20 12 21 msgid "An error occurred while retrieving the triggers of automatic campaigns. Please reconfigure the sending settings, save and reactivate them. Campaign ids: %s" 13 22 msgstr "" -
acymailing/tags/10.6.6/language/en-US.com_acym.ini
r3400526 r3401937 1 ACYM_VERSION="10.6. 5"1 ACYM_VERSION="10.6.6" 2 2 3 3 4 ACYM_DEDICATED_SENDING_PROCESS_WARNING="Only use a dedicated sending process when experiencing issues on automated tasks. This might not work for all servers!" 5 ACYM_USE_DEDICATED_SENDING_PROCESS_DESC="Executing automated tasks may take a lot of time. If you're experiencing issues you may try using a dedicated process to send queued emails." 6 ACYM_USE_DEDICATED_SENDING_PROCESS="Use dedicated sending process" 4 7 ACYM_ERROR_WHILE_RECOVERING_TRIGGERS_NOTIF_X="An error occurred while retrieving the triggers of automatic campaigns. Please reconfigure the sending settings, save and reactivate them. Campaign ids: %s" 5 8 ACYM_GOTO_CAMPAIGNS_AUTO="Go to automatic campaigns" -
acymailing/tags/10.6.6/media/js/back/configuration.min.js
r3270429 r3401937 1 jQuery(function(e){const n=".acym__configuration__mail-settings",t="#acym__configuration__sml__form";function a(n,t){const a=e(`input[name="${t}[mailer_method]"]`);a.on("change",function(){e(`${n} .send_settings`).hide();const a=e(`input[name="${t}[mailer_method]"]:checked`).val(),c=e(`${n} #${a}_settings`);c.length>0&&c.show()}),a.trigger("change")}function c(n,t){let a=e(`#${n}`).val();a=acym_helper.parseJson(a);const c=e(".acym__sending__methods__choose .acym__selection__card-selected");if(0===c.length)return;const o=e(`[name="config[${t}]"]`),i=o.closest(".acym__configuration__mail__option").find(".acym__configuration__mail__info__disabled"),_=o.closest(".acym__configuration__mail__option").find("> .switch-label"),l=o.closest(".acym__configuration__mail__option").find(".switch-paddle");void 0===a[c.attr("data-acym-method")]||a[c.attr("data-acym-method")]?(o.next().removeAttr("disabled"),l.removeClass("disabled").removeAttr("data-acym-tooltip"),i.closest(".acym__tooltip__info").hide()):(1===parseInt(o.val())&&_.trigger("click"),l.addClass("disabled").attr("data-acym-tooltip",i.find(".acym__tooltip__text ").html()),o.next().attr("disabled","true"),i.closest(".acym__tooltip__info").show()),acym_helperTooltip.setTooltip()}function o(e){_(e,".acym__configuration__mail-settings"),l()}function i(e){_(e,"#acym__configuration__sml__form")}function _(e,n){const t=document.querySelector(`${n} #${e.id}_settings`);t&&t.scrollIntoView({behavior:"smooth",block:"center"})}function l(){c("acym__config__mail__embed__image__blocked","embed_images"),c("acym__config__mail__embed__attachment__blocked","embed_files")}e('[name="config[bounce_server]"]').off("input").on("input",function(){const n=e(this).val().toLowerCase(),t=["imap.gmail.com","outlook.office365.com"].includes(n);t?(e(".acym__bounce__classic__auth__params").hide(),e(".acym__bounce__oauth2__auth__params").show(),e('[name="config[bounce_port]"]').val(993),e('[name="config[bounce_connection]"]').val("imap"),e('[name="config[bounce_secured]"]').val("ssl"),e('[name="config[bounce_certif]"]').val(1),"outlook.office365.com"===n?e("#acym__oauth2_bounce_params__tenant").show():e("#acym__oauth2_bounce_params__tenant").hide()):(e(".acym__bounce__oauth2__auth__params").hide(),e(".acym__bounce__classic__auth__params").show())}).trigger("input"),a(),function(){const n=e(`${t} input[name^="config["]`);for(let e=0;e<n.length;e++)n[e].setAttribute("name",n[e].getAttribute("name").replace("config","sml"))}(),a(t,"sml"),function(){const n=e(".acym__configuration__sml__edit"),a=e("#acym__configuration__sml__cancel-edit"),c=e("#acym__configuration__sml__method__id"),o=acym_helper.parseJson(e("#acym__configuration__sml__methods").val()),i=e(t),_=e("#acym__configuration__sml__toggle");n.on("click",function(){_.hide(),i.show();const n=e(this).closest(".acym__configuration__sml__actions").attr("data-acym-method-id");c.val(n),a.show();const l=o[n],s=e(`[name="sml[mailer_method]"][value="${l.mailer_method}"]`).closest(".acym__sending__methods__one");s.find(".acym__selection__card").click();const r=e(`${t} input[name^="sml["]`);for(let e=0;e<r.length;e++){const n=r[e].name.replaceAll(/(sml\[)|\]/gi,"");"mailer_method"!==n&&(r[e].value=l[r[e].name.replaceAll(/(sml\[)|\]/gi,"")])}}),a.on("click",function(){c.val(""),e("#acym__configuration__sml__name").val(""),i.hide(),_.show()})}(),function(){const n=e(".acym__configuration__sml__delete"),t=e('[data-task="addNewSml"]'),a=e("#acym__configuration__sml__method__id");n.on("click",function(){const n=e(this).closest(".acym__configuration__sml__actions").attr("data-acym-method-id");a.val(n),t.attr("data-task","deleteSml"),t.click()})}(),function(){const n=e("#acym__configuration__sml__toggle"),a=e(t);n.on("click",function(){a.show(),n.hide()})}(),a(n,"config"),e("#available_ports_check").off("click").on("click",function(n){n.preventDefault();let t=e(this).parent();t.html('<i class="acymicon-circle-o-notch acymicon-spin"></i>'),e.get(ACYM_AJAX_URL+"&ctrl=configuration&task=ports",function(e){t.html(e)})}),e(".acym_autoselect").off("click").on("click",function(){this.select()}),e("#checkdb_button").off("click").on("click",function(n){n.preventDefault(),e("#checkdb_report").html('<i class="acymicon-circle-o-notch acymicon-spin"></i>'),e.get(ACYM_AJAX_URL+"&ctrl=configuration&task=checkDBAjax",function(n){e("#checkdb_report").html(n)})}),e("#scanfiles_button").off("click").on("click",function(n){n.preventDefault(),e("#scanfiles_report").html('<i class="acymicon-circle-o-notch acymicon-spin"></i>'),acym_helper.get(ACYM_AJAX_URL,{ctrl:"configuration",task:"scanSiteFiles"}).then(n=>{e("#scanfiles_report").html(n.message)})}),e('input[name="config[auto_bounce]"]').off("change").on("change",function(){e("#acym__configuration__bounce__auto_bounce__configuration").toggle()}),function(){let n=e("#acym__configuration__cron__report--send-to"),t=n.attr("placeholder");n.select2({width:"100%",placeholder:t,tags:!0,theme:"foundation",tokenSeparators:[","," "],createTag:function(n){let t=e.trim(n.term);return acym_helper.emailValid(t)?{id:t,text:t,newTag:!0}:null}})}(),e("#acym__configuration__button__license").off("click").on("click",function(){let n=e("#acym__configuration__license-key").val(),t=parseInt(e(this).attr("data-acym-linked"));if(""===n)return alert(ACYM_JS_TXT.ACYM_PLEASE_SET_A_LICENSE_KEY),!1;let a=t?"unlinkLicense":"attachLicense";e('[name="task"]').val(a),e.acymConfigSave(),e("#acym_form").submit()}),e("#acym__configuration__button__cron").off("click").on("click",function(){let n=parseInt(e(this).attr("data-acym-active")),t=n?"deactivateCron":"activateCron";e('[name="task"]').val(t),e("#acym_form").submit()}),function(){let n="";e("#configmultilingual_default").on("change",function(){let t=e(this).val(),a=e("#configmultilingual_languages");a.find('option[value="'+t+'"]').prop("disabled",!0).prop("selected",!1),a.find('option[value="'+n+'"]').prop("disabled",!1),a.select2({theme:"foundation",width:"100%"}),n=t}).trigger("change"),e.acymConfigSave=function(){e('[name="config[sender_info_translation]"]').length>0&&acym_helperSelectionMultilingual.changeLanguage_configuration(acym_helperSelectionMultilingual.mainLanguage),e('[name="config[unsub_survey_translation]"]').length>0&&acym_helperSelectionMultilingual.changeLanguage_configuration_subscription(acym_helperSelectionMultilingual.mainLanguage),e('input[id^="delayvar"]').trigger("change");let n=e("#configmultilingual_languages").val(),t=e('[name="previous_multilingual_languages"]').val();if(acym_helper.empty(t))return!0;t=t.split(",");let a=acym_helper.empty(n)?t:t.filter(e=>!n.includes(e));return!!acym_helper.empty(a)||(e.each(a,function(n){a[n]=e('#configmultilingual_default option[value="'+a[n]+'"]').text()}),!!acym_helper.confirm(acym_helper.sprintf(ACYM_JS_TXT.ACYM_REMOVE_LANG_CONFIRMATION,a.join(", "))))}}(),function(){let n=e("#acym__configuration__acl__zone");e("#acym__configuration__acl__toggle").off("click").on("click",function(){n.slideToggle()}).trigger("click")}(),acym_helperMailer.setTestCredentialsSendingMethods(),acym_helperMailer.setButtonCopyFromPlugin(),acym_helperMailer.setSynchroExistingUsers(),acym_helperSelectionPage.setSelectionElement(!0,!0,o,void 0,{prefix:n}),acym_helperSelectionPage.setSelectionElement(!0,!0,i,void 0,{prefix:t}),l(),acym_helperSelectionMultilingual.init("configuration"),acym_helperSelectionMultilingual.init("configuration_subscription"),e('[data-task="downloadExportChangesFile"]').on("click",function(){setTimeout(function(){e("#formSubmit")[0].disabled=!1,e('[name="task"]').val("")},5)}),function(){let n=e(".acym__allowed__hosts__select");n.select2({width:"100%",placeholder:n.attr("placeholder"),tags:!0,theme:"foundation",tokenSeparators:[" "],createTag:function(e){let n=jQuery.trim(e.term);return""===n?null:{id:n,text:n}}})}(),function(){const n=e(".acym__survey__answer__select");n.select2({width:"100%",placeholder:n.attr("placeholder"),tags:!0,theme:"foundation",tokenSeparators:[""]})}(),acym_helperMailer.acymailerAddDomains(),acym_helperMailer.displayCnameRecord(),acym_helperMailer.deleteDomain(),acym_helperMailer.domainSuggestion(),acym_helperMailer.updateStatus(),e("#acymailer_domain").on("keypress",function(n){"Enter"===n.key&&(n.preventDefault(),e("#acym__configuration__sending__method-addDomain").trigger("click"))}),jQuery("#acym__configuration__activate__acymailer").off("click").on("click",function(){jQuery('[data-tab-identifier="mail_settings"]').trigger("click"),jQuery("#acymailer").trigger("click")}),function(){const n=e('select[name^="config[acl_"]'),t={},a=e=>e.slice(4,-2);n.each(function(){t[a(e(this).attr("name"))]=e(this).val()}),n.on("change",function(){const n=a(e(this).attr("name"));let c=e(this).val();null===c&&(c=[]),0===c.length?c=["all"]:c.includes("all")&&(t[n].includes("all")?c.length>1&&(c=c.splice(c.indexOf("all")-1,1)):c=["all"]),e(this).val(c).trigger("change.select2"),t[n]=c})}(),jQuery('[name="config[embed_files]"]').off("change").on("change",function(){setTimeout(()=>{const e=jQuery("#attachments_position");"1"===jQuery(this).val()?e.css("display","none"):e.css("display","")},10)}),jQuery(".auto_sending_input").on("change",function(){const e=parseInt(jQuery('[name="config[queue_batch_auto]"]').val()),n=parseInt(jQuery('[name="config[queue_nbmail_auto]"]').val()),t=parseInt(jQuery('[name="config[cron_frequency]"]').val());let a=0===t?900:t;const c=a>600?600:a,o=parseInt(jQuery('[name="config[email_frequency]"]').val());let i=n;o>0&&(i=n*(o+1));let _=n;i>c&&(_=n*c/i);const l=_*e*3600/a;jQuery("#automatic_sending_speed_preview").html(parseInt(l)),jQuery("#automatic_sending_speed_no_wait").css("display",o>0&&i>c?"inline-block":"none"),jQuery("#automatic_sending_speed_too_much").css("display",0===o&&i>c?"inline-block":"none"),jQuery("#automatic_sending_speed_too_many_batches").css("display",e>5?"inline-block":"none")}).trigger("change"),function(){const n=e("#acym__mailbox__edition__configuration__test-loader"),t=e("#acym__mailbox__edition__configuration__test-result"),a=e("#acym__mailbox__edition__configuration__test-icon"),c=e("#acym__mailbox__edition__configuration__test-test"),o={"config[bounce_server]":"mailbox[server]","config[bounce_username]":"mailbox[username]","config[bounce_password]":"mailbox[password]","config[bounce_connection]":"mailbox[connection_method]","config[bounce_secured]":"mailbox[secure_method]","config[bounce_certif]":"mailbox[self_signed]","config[bounce_port]":"mailbox[port]"},i=Object.keys(o).map(e=>e);c.off("click").on("click",function(){n.css("display","flex"),t.empty(),a.hide().removeClass("acymicon-check-circle acym__color__green acymicon-times-circle acym__color__red"),t.removeAttr("data-acym-tooltip").removeClass("acym__tooltip");const c=e(this).closest("form").serializeArray(),_=(e=>e.filter(({name:e})=>i.includes(e)).map(({name:e,value:n})=>o[e]?{name:o[e],value:n}:{name:e,value:n}))(c).concat([{name:"mailbox[id]",value:"configuration"},{name:"ctrl",value:"bounces"},{name:"task",value:"testMailboxAction"}]);acym_helper.post(ACYM_AJAX_URL,_).then(({error:e,message:c,data:o})=>{n.hide(),t.html(c),e?(o.report&&o.report.length&&(t.attr("data-acym-tooltip",o.report.join("<br>")),acym_helperTooltip.setTooltip()),a.addClass("acymicon-times-circle acym__color__red")):a.addClass("acymicon-check-circle acym__color__green"),a.css("display","flex")})})}(),function(){const n=e("#bounceAddress1"),t=e("#bounceAddress2");n.on("input",function(){t.val(e(this).val())}),t.on("input",function(){n.val(e(this).val())})}(),function(){const n=e(".acym__multilingual__selection h4").eq(1);n.length&&n.addClass("xlarge-3 medium-5 small-9");let t=e(".acym__customs__answer__answer[data-response]").length;e("#acym__custom_answer__add-answer").off("click").on("click",function(){let n='<div class="grid-x cell acym__customs__answers acym__content acym_noshadow grid-margin-x margin-y">';n+='<input type="text" name="config[unsub_survey][]" class="cell medium-10 acym__customs__answer__answer" data-response="'+t+'" value="">',n+='<i class="cell acymicon-close small-1 acym__color__red cursor-pointer acym__custom__delete__value"></i>',n+="</div>",e(".acym__customs__answers__listing__sortable").append(n),t++}),e(".acym__customs__answers__listing__sortable").on("click",".acym__custom__delete__value",function(){const n=e(this).closest(".acym__customs__answers");let t=parseInt(n.find(".acym__customs__answer__answer").data("response"));n.remove();for(let e in acym_helperSelectionMultilingual.translation)acym_helperSelectionMultilingual.translation[e].unsub_survey.splice(t,1);e(".acym__customs__answers__listing__sortable .acym__customs__answers").each(function(n){e(this).find(".acym__customs__answer__answer").data("response",n)})})}(),function(){const n=e("#acym__config__settings__color-picker");"function"==typeof n.spectrum&&n.spectrum({showInput:!0,preferredFormat:"hex"})}(),e("#acym__unsubscribe__logo").on("click",function(){acym_helperImage.openMediaManager(function(n){e("#acym__unsubscribe__logo_value").val(n.url).trigger("change"),e(".acym__unsub__logo__text").html(n.url+' <i class="acymicon-trash-o margin-left-1 acym__color__red acym__unsub__logo__remove"></i>')})}),e("#acym__unsubscribe__image").on("click",function(){acym_helperImage.openMediaManager(function(n){e("#acym__unsubscribe__image_value").val(n.url).trigger("change"),e(".acym__unsub__image__text").html(n.url+' <i class="acymicon-trash-o margin-left-1 acym__color__red acym__unsub__image__remove"></i>')})}),e(document).on("click",".acym__unsub__logo__remove",function(){e("#acym__unsubscribe__logo_value").val("").trigger("change"),e(".acym__unsub__logo__text").empty()}),e(document).on("click",".acym__unsub__image__remove",function(){e("#acym__unsubscribe__image_value").val("").trigger("change"),e(".acym__unsub__image__text").empty()})});1 jQuery(function(e){const n=".acym__configuration__mail-settings",t="#acym__configuration__sml__form";function a(n,t){const a=e(`input[name="${t}[mailer_method]"]`);a.on("change",function(){e(`${n} .send_settings`).hide();const a=e(`input[name="${t}[mailer_method]"]:checked`).val(),c=e(`${n} #${a}_settings`);c.length>0&&c.show()}),a.trigger("change")}function c(n,t){let a=e(`#${n}`).val();a=acym_helper.parseJson(a);const c=e(".acym__sending__methods__choose .acym__selection__card-selected");if(0===c.length)return;const i=e(`[name="config[${t}]"]`),o=i.closest(".acym__configuration__mail__option").find(".acym__configuration__mail__info__disabled"),_=i.closest(".acym__configuration__mail__option").find("> .switch-label"),l=i.closest(".acym__configuration__mail__option").find(".switch-paddle");void 0===a[c.attr("data-acym-method")]||a[c.attr("data-acym-method")]?(i.next().removeAttr("disabled"),l.removeClass("disabled").removeAttr("data-acym-tooltip"),o.closest(".acym__tooltip__info").hide()):(1===parseInt(i.val())&&_.trigger("click"),l.addClass("disabled").attr("data-acym-tooltip",o.find(".acym__tooltip__text ").html()),i.next().attr("disabled","true"),o.closest(".acym__tooltip__info").show()),acym_helperTooltip.setTooltip()}function i(e){_(e,".acym__configuration__mail-settings"),l()}function o(e){_(e,"#acym__configuration__sml__form")}function _(e,n){const t=document.querySelector(`${n} #${e.id}_settings`);t&&t.scrollIntoView({behavior:"smooth",block:"center"})}function l(){c("acym__config__mail__embed__image__blocked","embed_images"),c("acym__config__mail__embed__attachment__blocked","embed_files")}e('[name="config[bounce_server]"]').off("input").on("input",function(){const n=e(this).val().toLowerCase(),t=["imap.gmail.com","outlook.office365.com"].includes(n);t?(e(".acym__bounce__classic__auth__params").hide(),e(".acym__bounce__oauth2__auth__params").show(),e('[name="config[bounce_port]"]').val(993),e('[name="config[bounce_connection]"]').val("imap"),e('[name="config[bounce_secured]"]').val("ssl"),e('[name="config[bounce_certif]"]').val(1),"outlook.office365.com"===n?e("#acym__oauth2_bounce_params__tenant").show():e("#acym__oauth2_bounce_params__tenant").hide()):(e(".acym__bounce__oauth2__auth__params").hide(),e(".acym__bounce__classic__auth__params").show())}).trigger("input"),a(),function(){const n=e(`${t} input[name^="config["]`);for(let e=0;e<n.length;e++)n[e].setAttribute("name",n[e].getAttribute("name").replace("config","sml"))}(),a(t,"sml"),function(){const n=e(".acym__configuration__sml__edit"),a=e("#acym__configuration__sml__cancel-edit"),c=e("#acym__configuration__sml__method__id"),i=acym_helper.parseJson(e("#acym__configuration__sml__methods").val()),o=e(t),_=e("#acym__configuration__sml__toggle");n.on("click",function(){_.hide(),o.show();const n=e(this).closest(".acym__configuration__sml__actions").attr("data-acym-method-id");c.val(n),a.show();const l=i[n],s=e(`[name="sml[mailer_method]"][value="${l.mailer_method}"]`).closest(".acym__sending__methods__one");s.find(".acym__selection__card").click();const r=e(`${t} input[name^="sml["]`);for(let e=0;e<r.length;e++){const n=r[e].name.replaceAll(/(sml\[)|\]/gi,"");"mailer_method"!==n&&(r[e].value=l[r[e].name.replaceAll(/(sml\[)|\]/gi,"")])}}),a.on("click",function(){c.val(""),e("#acym__configuration__sml__name").val(""),o.hide(),_.show()})}(),function(){const n=e(".acym__configuration__sml__delete"),t=e('[data-task="addNewSml"]'),a=e("#acym__configuration__sml__method__id");n.on("click",function(){const n=e(this).closest(".acym__configuration__sml__actions").attr("data-acym-method-id");a.val(n),t.attr("data-task","deleteSml"),t.click()})}(),function(){const n=e("#acym__configuration__sml__toggle"),a=e(t);n.on("click",function(){a.show(),n.hide()})}(),a(n,"config"),e("#available_ports_check").off("click").on("click",function(n){n.preventDefault();let t=e(this).parent();t.html('<i class="acymicon-circle-o-notch acymicon-spin"></i>'),e.get(ACYM_AJAX_URL+"&ctrl=configuration&task=ports",function(e){t.html(e)})}),e(".acym_autoselect").off("click").on("click",function(){this.select()}),e("#checkdb_button").off("click").on("click",function(n){n.preventDefault(),e("#checkdb_report").html('<i class="acymicon-circle-o-notch acymicon-spin"></i>'),e.get(ACYM_AJAX_URL+"&ctrl=configuration&task=checkDBAjax",function(n){e("#checkdb_report").html(n)})}),e("#scanfiles_button").off("click").on("click",function(n){n.preventDefault(),e("#scanfiles_report").html('<i class="acymicon-circle-o-notch acymicon-spin"></i>'),acym_helper.get(ACYM_AJAX_URL,{ctrl:"configuration",task:"scanSiteFiles"}).then(n=>{e("#scanfiles_report").html(n.message)})}),e('input[name="config[auto_bounce]"]').off("change").on("change",function(){e("#acym__configuration__bounce__auto_bounce__configuration").toggle()}),function(){let n=e("#acym__configuration__cron__report--send-to"),t=n.attr("placeholder");n.select2({width:"100%",placeholder:t,tags:!0,theme:"foundation",tokenSeparators:[","," "],createTag:function(n){let t=e.trim(n.term);return acym_helper.emailValid(t)?{id:t,text:t,newTag:!0}:null}})}(),e("#acym__configuration__button__license").off("click").on("click",function(){let n=e("#acym__configuration__license-key").val(),t=parseInt(e(this).attr("data-acym-linked"));if(""===n)return alert(ACYM_JS_TXT.ACYM_PLEASE_SET_A_LICENSE_KEY),!1;let a=t?"unlinkLicense":"attachLicense";e('[name="task"]').val(a),e.acymConfigSave(),e("#acym_form").submit()}),e("#acym__configuration__button__cron").off("click").on("click",function(){let n=parseInt(e(this).attr("data-acym-active")),t=n?"deactivateCron":"activateCron";e('[name="task"]').val(t),e("#acym_form").submit()}),function(){let n="";e("#configmultilingual_default").on("change",function(){let t=e(this).val(),a=e("#configmultilingual_languages");a.find('option[value="'+t+'"]').prop("disabled",!0).prop("selected",!1),a.find('option[value="'+n+'"]').prop("disabled",!1),a.select2({theme:"foundation",width:"100%"}),n=t}).trigger("change"),e.acymConfigSave=function(){e('[name="config[sender_info_translation]"]').length>0&&acym_helperSelectionMultilingual.changeLanguage_configuration(acym_helperSelectionMultilingual.mainLanguage),e('[name="config[unsub_survey_translation]"]').length>0&&acym_helperSelectionMultilingual.changeLanguage_configuration_subscription(acym_helperSelectionMultilingual.mainLanguage),e('input[id^="delayvar"]').trigger("change");let n=e("#configmultilingual_languages").val(),t=e('[name="previous_multilingual_languages"]').val();if(acym_helper.empty(t))return!0;t=t.split(",");let a=acym_helper.empty(n)?t:t.filter(e=>!n.includes(e));return!!acym_helper.empty(a)||(e.each(a,function(n){a[n]=e('#configmultilingual_default option[value="'+a[n]+'"]').text()}),!!acym_helper.confirm(acym_helper.sprintf(ACYM_JS_TXT.ACYM_REMOVE_LANG_CONFIRMATION,a.join(", "))))}}(),function(){let n=e("#acym__configuration__acl__zone");e("#acym__configuration__acl__toggle").off("click").on("click",function(){n.slideToggle()}).trigger("click")}(),acym_helperMailer.setTestCredentialsSendingMethods(),acym_helperMailer.setButtonCopyFromPlugin(),acym_helperMailer.setSynchroExistingUsers(),acym_helperSelectionPage.setSelectionElement(!0,!0,i,void 0,{prefix:n}),acym_helperSelectionPage.setSelectionElement(!0,!0,o,void 0,{prefix:t}),l(),acym_helperSelectionMultilingual.init("configuration"),acym_helperSelectionMultilingual.init("configuration_subscription"),e('[data-task="downloadExportChangesFile"]').on("click",function(){setTimeout(function(){e("#formSubmit")[0].disabled=!1,e('[name="task"]').val("")},5)}),function(){let n=e(".acym__allowed__hosts__select");n.select2({width:"100%",placeholder:n.attr("placeholder"),tags:!0,theme:"foundation",tokenSeparators:[" "],createTag:function(e){let n=jQuery.trim(e.term);return""===n?null:{id:n,text:n}}})}(),function(){const n=e(".acym__survey__answer__select");n.select2({width:"100%",placeholder:n.attr("placeholder"),tags:!0,theme:"foundation",tokenSeparators:[""]})}(),acym_helperMailer.acymailerAddDomains(),acym_helperMailer.displayCnameRecord(),acym_helperMailer.deleteDomain(),acym_helperMailer.domainSuggestion(),acym_helperMailer.updateStatus(),e("#acymailer_domain").on("keypress",function(n){"Enter"===n.key&&(n.preventDefault(),e("#acym__configuration__sending__method-addDomain").trigger("click"))}),jQuery("#acym__configuration__activate__acymailer").off("click").on("click",function(){jQuery('[data-tab-identifier="mail_settings"]').trigger("click"),jQuery("#acymailer").trigger("click")}),function(){const n=e('select[name^="config[acl_"]'),t={},a=e=>e.slice(4,-2);n.each(function(){t[a(e(this).attr("name"))]=e(this).val()}),n.on("change",function(){const n=a(e(this).attr("name"));let c=e(this).val();null===c&&(c=[]),0===c.length?c=["all"]:c.includes("all")&&(t[n].includes("all")?c.length>1&&(c=c.splice(c.indexOf("all")-1,1)):c=["all"]),e(this).val(c).trigger("change.select2"),t[n]=c})}(),jQuery('[name="config[embed_files]"]').off("change").on("change",function(){setTimeout(()=>{const e=jQuery("#attachments_position");"1"===jQuery(this).val()?e.css("display","none"):e.css("display","")},10)}),jQuery(".auto_sending_input").on("change",function(){const e=parseInt(jQuery('[name="config[queue_batch_auto]"]').val()),n=parseInt(jQuery('[name="config[queue_nbmail_auto]"]').val()),t=parseInt(jQuery('[name="config[cron_frequency]"]').val());let a=0===t?900:t;const c=a>600?600:a,i=parseInt(jQuery('[name="config[email_frequency]"]').val());let o=n;i>0&&(o=n*(i+1));let _=n;o>c&&(_=n*c/o);const l=_*e*3600/a;jQuery("#automatic_sending_speed_preview").html(parseInt(l)),jQuery("#automatic_sending_speed_no_wait").css("display",i>0&&o>c?"inline-block":"none"),jQuery("#automatic_sending_speed_too_much").css("display",0===i&&o>c?"inline-block":"none"),jQuery("#automatic_sending_speed_too_many_batches").css("display",e>5?"inline-block":"none")}).trigger("change"),function(){const n=e("#acym__mailbox__edition__configuration__test-loader"),t=e("#acym__mailbox__edition__configuration__test-result"),a=e("#acym__mailbox__edition__configuration__test-icon"),c=e("#acym__mailbox__edition__configuration__test-test"),i={"config[bounce_server]":"mailbox[server]","config[bounce_username]":"mailbox[username]","config[bounce_password]":"mailbox[password]","config[bounce_connection]":"mailbox[connection_method]","config[bounce_secured]":"mailbox[secure_method]","config[bounce_certif]":"mailbox[self_signed]","config[bounce_port]":"mailbox[port]"},o=Object.keys(i).map(e=>e);c.off("click").on("click",function(){n.css("display","flex"),t.empty(),a.hide().removeClass("acymicon-check-circle acym__color__green acymicon-times-circle acym__color__red"),t.removeAttr("data-acym-tooltip").removeClass("acym__tooltip");const c=e(this).closest("form").serializeArray(),_=(e=>e.filter(({name:e})=>o.includes(e)).map(({name:e,value:n})=>i[e]?{name:i[e],value:n}:{name:e,value:n}))(c).concat([{name:"mailbox[id]",value:"configuration"},{name:"ctrl",value:"bounces"},{name:"task",value:"testMailboxAction"}]);acym_helper.post(ACYM_AJAX_URL,_).then(({error:e,message:c,data:i})=>{n.hide(),t.html(c),e?(i.report&&i.report.length&&(t.attr("data-acym-tooltip",i.report.join("<br>")),acym_helperTooltip.setTooltip()),a.addClass("acymicon-times-circle acym__color__red")):a.addClass("acymicon-check-circle acym__color__green"),a.css("display","flex")})})}(),function(){const n=e("#bounceAddress1"),t=e("#bounceAddress2");n.on("input",function(){t.val(e(this).val())}),t.on("input",function(){n.val(e(this).val())})}(),function(){const n=e(".acym__multilingual__selection h4").eq(1);n.length&&n.addClass("xlarge-3 medium-5 small-9");let t=e(".acym__customs__answer__answer[data-response]").length;e("#acym__custom_answer__add-answer").off("click").on("click",function(){let n='<div class="grid-x cell acym__customs__answers acym__content acym_noshadow grid-margin-x margin-y">';n+='<input type="text" name="config[unsub_survey][]" class="cell medium-10 acym__customs__answer__answer" data-response="'+t+'" value="">',n+='<i class="cell acymicon-close small-1 acym__color__red cursor-pointer acym__custom__delete__value"></i>',n+="</div>",e(".acym__customs__answers__listing__sortable").append(n),t++}),e(".acym__customs__answers__listing__sortable").on("click",".acym__custom__delete__value",function(){const n=e(this).closest(".acym__customs__answers");let t=parseInt(n.find(".acym__customs__answer__answer").data("response"));n.remove();for(let e in acym_helperSelectionMultilingual.translation)acym_helperSelectionMultilingual.translation[e].unsub_survey.splice(t,1);e(".acym__customs__answers__listing__sortable .acym__customs__answers").each(function(n){e(this).find(".acym__customs__answer__answer").data("response",n)})})}(),function(){const n=e("#acym__config__settings__color-picker");"function"==typeof n.spectrum&&n.spectrum({showInput:!0,preferredFormat:"hex"})}(),e("#acym__unsubscribe__logo").on("click",function(){acym_helperImage.openMediaManager(function(n){e("#acym__unsubscribe__logo_value").val(n.url).trigger("change"),e(".acym__unsub__logo__text").html(n.url+' <i class="acymicon-trash-o margin-left-1 acym__color__red acym__unsub__logo__remove"></i>')})}),e("#acym__unsubscribe__image").on("click",function(){acym_helperImage.openMediaManager(function(n){e("#acym__unsubscribe__image_value").val(n.url).trigger("change"),e(".acym__unsub__image__text").html(n.url+' <i class="acymicon-trash-o margin-left-1 acym__color__red acym__unsub__image__remove"></i>')})}),e(document).on("click",".acym__unsub__logo__remove",function(){e("#acym__unsubscribe__logo_value").val("").trigger("change"),e(".acym__unsub__logo__text").empty()}),e(document).on("click",".acym__unsub__image__remove",function(){e("#acym__unsubscribe__image_value").val("").trigger("change"),e(".acym__unsub__image__text").empty()}),e('[name="config[dedicated_send_process]"]').on("change",function(n){setTimeout(()=>{1!==Number(e(this).val())||confirm(ACYM_JS_TXT.ACYM_DEDICATED_SENDING_PROCESS_WARNING)||e(`[for="${e(this).data("switch")}"]`).trigger("click")},100)})}); -
acymailing/tags/10.6.6/readme.txt
r3400526 r3401937 4 4 Requires at least: 5.5 5 5 Tested up to: 6.8 6 Stable tag: 10.6. 56 Stable tag: 10.6.6 7 7 Requires PHP: 7.4.0 8 8 License: GPLv3 … … 114 114 == Changelog == 115 115 116 = 10.6.5 - November 21, 2025 = 117 * The sending test option has been fixed when the current user doesn't have an AcyMailing user. 118 * We fixed an error that could occur on the summary of the campaigns when your admin account does not have an AcyMailing user. 119 * We added a security that alerts you when the frequency of an automatic campaign is empty or has been modified on a plugin update. 116 = 10.6.6 - November 24, 2025 = 117 * The automated sending of queued emails has been reverted to the v10.5.2 version, and a new option has been added to activate deferred sending for performance improvement. 120 118 121 119 [See the whole changelog here.](https://www.acymailing.com/changelog) -
acymailing/tags/10.6.6/vendor/composer/installed.php
r3400526 r3401937 4 4 'pretty_version' => 'dev-develop', 5 5 'version' => 'dev-develop', 6 'reference' => ' 7a9153a6745a5b06e279ee61d7401410de45a9dc',6 'reference' => 'b1aec8ffa9f160d912360aaa5201721eb3e7d2e2', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-develop', 15 15 'version' => 'dev-develop', 16 'reference' => ' 7a9153a6745a5b06e279ee61d7401410de45a9dc',16 'reference' => 'b1aec8ffa9f160d912360aaa5201721eb3e7d2e2', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', -
acymailing/trunk/back/Controllers/DashboardController.php
r3400526 r3401937 45 45 $splashJson = acym_fileGetContent(ACYM_NEW_FEATURES_SPLASHSCREEN_JSON); 46 46 $version = json_decode($splashJson); 47 if (version_compare($this->config->get('previous_version', '10.6. 5'), $version->max_version, '>=')) {47 if (version_compare($this->config->get('previous_version', '10.6.6'), $version->max_version, '>=')) { 48 48 @unlink(ACYM_NEW_FEATURES_SPLASHSCREEN_JSON); 49 49 $this->listing(); -
acymailing/trunk/back/Core/wordpress/extension.php
r3400526 r3401937 31 31 'title' => acym_translation('ACYM_ARTICLE'), 32 32 'folder_name' => 'post', 33 'version' => '10.6. 5',33 'version' => '10.6.6', 34 34 'active' => '1', 35 35 'category' => 'Content management', … … 37 37 'uptodate' => '1', 38 38 'description' => '- Insert WordPress posts in your emails<br/>- Insert the latest posts of a category in an automatic email', 39 'latest_version' => '10.6. 5',39 'latest_version' => '10.6.6', 40 40 'type' => 'CORE', 41 41 ], … … 43 43 'title' => acym_translation('ACYM_PAGE'), 44 44 'folder_name' => 'page', 45 'version' => '10.6. 5',45 'version' => '10.6.6', 46 46 'active' => '1', 47 47 'category' => 'Content management', … … 49 49 'uptodate' => '1', 50 50 'description' => '- Insert pages in your emails', 51 'latest_version' => '10.6. 5',51 'latest_version' => '10.6.6', 52 52 'type' => 'CORE', 53 53 ], … … 55 55 'title' => acym_translation('ACYM_CREATE_USER'), 56 56 'folder_name' => 'createuser', 57 'version' => '10.6. 5',57 'version' => '10.6.6', 58 58 'active' => '1', 59 59 'category' => 'User management', … … 61 61 'uptodate' => '1', 62 62 'description' => '- Automatically creates a site user when an AcyMailing subscriber is created', 63 'latest_version' => '10.6. 5',63 'latest_version' => '10.6.6', 64 64 'type' => 'CORE', 65 65 ], -
acymailing/trunk/back/Core/wplangindexer.php
r3400526 r3401937 1 1 <?php 2 2 3 __('Only use a dedicated sending process when experiencing issues on automated tasks. This might not work for all servers!', 'acymailing'); 4 __('Executing automated tasks may take a lot of time. If you\'re experiencing issues you may try using a dedicated process to send queued emails.', 'acymailing'); 5 __('Use dedicated sending process', 'acymailing'); 3 6 __('An error occurred while retrieving the triggers of automatic campaigns. Please reconfigure the sending settings, save and reactivate them. Campaign ids: %s', 'acymailing'); 4 7 __('Go to automatic campaigns', 'acymailing'); -
acymailing/trunk/back/Helpers/CronHelper.php
r3398904 r3401937 338 338 } 339 339 340 if ($this->isSendingCall || !acym_level(ACYM_ENTERPRISE) || !function_exists('curl_multi_exec')) { 340 if (!$this->isSendingCall && acym_level(ACYM_ENTERPRISE) && function_exists('curl_multi_exec')) { 341 $this->handleMultiCron(); 342 } 343 344 if ($this->isSendingCall || $this->config->get('dedicated_send_process', 0) != 1) { 341 345 $this->sendQueuedEmails(); 342 } else {343 $this->handleMultiCron();344 346 } 345 347 } … … 362 364 if (empty($emailsPerBatches)) { 363 365 return; 366 } 367 368 $nbBatches = $this->config->get('queue_batch_auto', 1); 369 $nbBatches = intval($nbBatches); 370 371 if ($this->config->get('dedicated_send_process', 0) == 1) { 372 $startCron = 0; 373 } else { 374 if ($nbBatches < 2) { 375 return; 376 } 377 378 $startCron = 1; 364 379 } 365 380 … … 369 384 } 370 385 371 $nbBatches = $this->config->get('queue_batch_auto', 1);372 $nbBatches = intval($nbBatches);373 374 386 $urls = []; 375 for ($i = 0; $i < $nbBatches; $i++) {387 for ($i = $startCron; $i < $nbBatches; $i++) { 376 388 $urls[] = acym_frontendLink('cron&task=cron&type=sending&startqueue='.($emailsPerBatches * $i).$cronParams); 377 389 } -
acymailing/trunk/back/Helpers/Update/Configuration.php
r3400526 r3401937 123 123 $allPref['Essential'] = ACYM_ESSENTIAL; 124 124 $allPref['Enterprise'] = ACYM_ENTERPRISE; 125 $allPref['previous_version'] = '10.6. 5';125 $allPref['previous_version'] = '10.6.6'; 126 126 127 127 $allPref['display_built_by'] = acym_level(ACYM_ESSENTIAL) ? 0 : 1; -
acymailing/trunk/back/Helpers/UpdateHelper.php
r3400526 r3401937 22 22 23 23 private string $level = 'starter'; 24 private string $version = '10.6. 5';24 private string $version = '10.6.6'; 25 25 private string $previousVersion; 26 26 private bool $isUpdating = false; -
acymailing/trunk/back/Helpers/global/curl.php
r3398904 r3401937 108 108 curl_setopt($ch, CURLOPT_URL, $url); 109 109 curl_setopt($ch, CURLOPT_HEADER, 0); 110 curl_setopt($ch, CURLOPT_TIMEOUT, 1);111 110 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 112 111 curl_multi_add_handle($mh, $ch); … … 127 126 foreach ($handles as $handle) { 128 127 curl_multi_remove_handle($mh, $handle); 129 curl_close($handle);130 128 } 131 129 curl_multi_close($mh); -
acymailing/trunk/back/Helpers/global/view.php
r3397048 r3401937 420 420 'ACYM_EXTRA_INFORMATION', 421 421 'ACYM_SELECT_A_PAGE', 422 'ACYM_DEDICATED_SENDING_PROCESS_WARNING', 422 423 ]; 423 424 -
acymailing/trunk/back/Views/Configuration/tmpl/queue.php
r3397048 r3401937 226 226 </div> 227 227 </div> 228 <div class="cell medium-3 automatic_only automatic_manual"> 229 <?php 230 echo acym_translation('ACYM_USE_DEDICATED_SENDING_PROCESS'); 231 echo acym_info(['textShownInTooltip' => 'ACYM_USE_DEDICATED_SENDING_PROCESS_DESC']); ?> 232 </div> 233 <div class="cell medium-9 grid-x automatic_only automatic_manual"> 234 <div class="cell medium-6 large-4 xlarge-3 xxlarge-2"> 235 <?php 236 echo acym_switch( 237 'config[dedicated_send_process]', 238 $this->config->get('dedicated_send_process', 0) 239 ); 240 ?> 241 </div> 242 </div> 228 243 <?php } ?> 229 244 </div> -
acymailing/trunk/index.php
r3400526 r3401937 6 6 * Author URI: https://www.acymailing.com 7 7 * License: GPLv3 8 * Version: 10.6. 58 * Version: 10.6.6 9 9 * Text Domain: acymailing 10 10 * Domain Path: /language -
acymailing/trunk/language/acymailing.pot
r3400526 r3401937 1 1 msgid "" 2 2 msgstr "" 3 "Project-Id-Version: AcyMailing 10.6. 5\n"3 "Project-Id-Version: AcyMailing 10.6.6\n" 4 4 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/acymailing\n" 5 5 "MIME-Version: 1.0\n" 6 6 "Content-Type: text/plain; charset=UTF-8\n" 7 7 "Content-Transfer-Encoding: 8bit\n" 8 "POT-Creation-Date: 2025-11-2 1\n"8 "POT-Creation-Date: 2025-11-24\n" 9 9 "X-Domain: acymailing\n" 10 10 11 11 12 msgid "Only use a dedicated sending process when experiencing issues on automated tasks. This might not work for all servers!" 13 msgstr "" 14 15 msgid "Executing automated tasks may take a lot of time. If you're experiencing issues you may try using a dedicated process to send queued emails." 16 msgstr "" 17 18 msgid "Use dedicated sending process" 19 msgstr "" 20 12 21 msgid "An error occurred while retrieving the triggers of automatic campaigns. Please reconfigure the sending settings, save and reactivate them. Campaign ids: %s" 13 22 msgstr "" -
acymailing/trunk/language/en-US.com_acym.ini
r3400526 r3401937 1 ACYM_VERSION="10.6. 5"1 ACYM_VERSION="10.6.6" 2 2 3 3 4 ACYM_DEDICATED_SENDING_PROCESS_WARNING="Only use a dedicated sending process when experiencing issues on automated tasks. This might not work for all servers!" 5 ACYM_USE_DEDICATED_SENDING_PROCESS_DESC="Executing automated tasks may take a lot of time. If you're experiencing issues you may try using a dedicated process to send queued emails." 6 ACYM_USE_DEDICATED_SENDING_PROCESS="Use dedicated sending process" 4 7 ACYM_ERROR_WHILE_RECOVERING_TRIGGERS_NOTIF_X="An error occurred while retrieving the triggers of automatic campaigns. Please reconfigure the sending settings, save and reactivate them. Campaign ids: %s" 5 8 ACYM_GOTO_CAMPAIGNS_AUTO="Go to automatic campaigns" -
acymailing/trunk/media/js/back/configuration.min.js
r3270429 r3401937 1 jQuery(function(e){const n=".acym__configuration__mail-settings",t="#acym__configuration__sml__form";function a(n,t){const a=e(`input[name="${t}[mailer_method]"]`);a.on("change",function(){e(`${n} .send_settings`).hide();const a=e(`input[name="${t}[mailer_method]"]:checked`).val(),c=e(`${n} #${a}_settings`);c.length>0&&c.show()}),a.trigger("change")}function c(n,t){let a=e(`#${n}`).val();a=acym_helper.parseJson(a);const c=e(".acym__sending__methods__choose .acym__selection__card-selected");if(0===c.length)return;const o=e(`[name="config[${t}]"]`),i=o.closest(".acym__configuration__mail__option").find(".acym__configuration__mail__info__disabled"),_=o.closest(".acym__configuration__mail__option").find("> .switch-label"),l=o.closest(".acym__configuration__mail__option").find(".switch-paddle");void 0===a[c.attr("data-acym-method")]||a[c.attr("data-acym-method")]?(o.next().removeAttr("disabled"),l.removeClass("disabled").removeAttr("data-acym-tooltip"),i.closest(".acym__tooltip__info").hide()):(1===parseInt(o.val())&&_.trigger("click"),l.addClass("disabled").attr("data-acym-tooltip",i.find(".acym__tooltip__text ").html()),o.next().attr("disabled","true"),i.closest(".acym__tooltip__info").show()),acym_helperTooltip.setTooltip()}function o(e){_(e,".acym__configuration__mail-settings"),l()}function i(e){_(e,"#acym__configuration__sml__form")}function _(e,n){const t=document.querySelector(`${n} #${e.id}_settings`);t&&t.scrollIntoView({behavior:"smooth",block:"center"})}function l(){c("acym__config__mail__embed__image__blocked","embed_images"),c("acym__config__mail__embed__attachment__blocked","embed_files")}e('[name="config[bounce_server]"]').off("input").on("input",function(){const n=e(this).val().toLowerCase(),t=["imap.gmail.com","outlook.office365.com"].includes(n);t?(e(".acym__bounce__classic__auth__params").hide(),e(".acym__bounce__oauth2__auth__params").show(),e('[name="config[bounce_port]"]').val(993),e('[name="config[bounce_connection]"]').val("imap"),e('[name="config[bounce_secured]"]').val("ssl"),e('[name="config[bounce_certif]"]').val(1),"outlook.office365.com"===n?e("#acym__oauth2_bounce_params__tenant").show():e("#acym__oauth2_bounce_params__tenant").hide()):(e(".acym__bounce__oauth2__auth__params").hide(),e(".acym__bounce__classic__auth__params").show())}).trigger("input"),a(),function(){const n=e(`${t} input[name^="config["]`);for(let e=0;e<n.length;e++)n[e].setAttribute("name",n[e].getAttribute("name").replace("config","sml"))}(),a(t,"sml"),function(){const n=e(".acym__configuration__sml__edit"),a=e("#acym__configuration__sml__cancel-edit"),c=e("#acym__configuration__sml__method__id"),o=acym_helper.parseJson(e("#acym__configuration__sml__methods").val()),i=e(t),_=e("#acym__configuration__sml__toggle");n.on("click",function(){_.hide(),i.show();const n=e(this).closest(".acym__configuration__sml__actions").attr("data-acym-method-id");c.val(n),a.show();const l=o[n],s=e(`[name="sml[mailer_method]"][value="${l.mailer_method}"]`).closest(".acym__sending__methods__one");s.find(".acym__selection__card").click();const r=e(`${t} input[name^="sml["]`);for(let e=0;e<r.length;e++){const n=r[e].name.replaceAll(/(sml\[)|\]/gi,"");"mailer_method"!==n&&(r[e].value=l[r[e].name.replaceAll(/(sml\[)|\]/gi,"")])}}),a.on("click",function(){c.val(""),e("#acym__configuration__sml__name").val(""),i.hide(),_.show()})}(),function(){const n=e(".acym__configuration__sml__delete"),t=e('[data-task="addNewSml"]'),a=e("#acym__configuration__sml__method__id");n.on("click",function(){const n=e(this).closest(".acym__configuration__sml__actions").attr("data-acym-method-id");a.val(n),t.attr("data-task","deleteSml"),t.click()})}(),function(){const n=e("#acym__configuration__sml__toggle"),a=e(t);n.on("click",function(){a.show(),n.hide()})}(),a(n,"config"),e("#available_ports_check").off("click").on("click",function(n){n.preventDefault();let t=e(this).parent();t.html('<i class="acymicon-circle-o-notch acymicon-spin"></i>'),e.get(ACYM_AJAX_URL+"&ctrl=configuration&task=ports",function(e){t.html(e)})}),e(".acym_autoselect").off("click").on("click",function(){this.select()}),e("#checkdb_button").off("click").on("click",function(n){n.preventDefault(),e("#checkdb_report").html('<i class="acymicon-circle-o-notch acymicon-spin"></i>'),e.get(ACYM_AJAX_URL+"&ctrl=configuration&task=checkDBAjax",function(n){e("#checkdb_report").html(n)})}),e("#scanfiles_button").off("click").on("click",function(n){n.preventDefault(),e("#scanfiles_report").html('<i class="acymicon-circle-o-notch acymicon-spin"></i>'),acym_helper.get(ACYM_AJAX_URL,{ctrl:"configuration",task:"scanSiteFiles"}).then(n=>{e("#scanfiles_report").html(n.message)})}),e('input[name="config[auto_bounce]"]').off("change").on("change",function(){e("#acym__configuration__bounce__auto_bounce__configuration").toggle()}),function(){let n=e("#acym__configuration__cron__report--send-to"),t=n.attr("placeholder");n.select2({width:"100%",placeholder:t,tags:!0,theme:"foundation",tokenSeparators:[","," "],createTag:function(n){let t=e.trim(n.term);return acym_helper.emailValid(t)?{id:t,text:t,newTag:!0}:null}})}(),e("#acym__configuration__button__license").off("click").on("click",function(){let n=e("#acym__configuration__license-key").val(),t=parseInt(e(this).attr("data-acym-linked"));if(""===n)return alert(ACYM_JS_TXT.ACYM_PLEASE_SET_A_LICENSE_KEY),!1;let a=t?"unlinkLicense":"attachLicense";e('[name="task"]').val(a),e.acymConfigSave(),e("#acym_form").submit()}),e("#acym__configuration__button__cron").off("click").on("click",function(){let n=parseInt(e(this).attr("data-acym-active")),t=n?"deactivateCron":"activateCron";e('[name="task"]').val(t),e("#acym_form").submit()}),function(){let n="";e("#configmultilingual_default").on("change",function(){let t=e(this).val(),a=e("#configmultilingual_languages");a.find('option[value="'+t+'"]').prop("disabled",!0).prop("selected",!1),a.find('option[value="'+n+'"]').prop("disabled",!1),a.select2({theme:"foundation",width:"100%"}),n=t}).trigger("change"),e.acymConfigSave=function(){e('[name="config[sender_info_translation]"]').length>0&&acym_helperSelectionMultilingual.changeLanguage_configuration(acym_helperSelectionMultilingual.mainLanguage),e('[name="config[unsub_survey_translation]"]').length>0&&acym_helperSelectionMultilingual.changeLanguage_configuration_subscription(acym_helperSelectionMultilingual.mainLanguage),e('input[id^="delayvar"]').trigger("change");let n=e("#configmultilingual_languages").val(),t=e('[name="previous_multilingual_languages"]').val();if(acym_helper.empty(t))return!0;t=t.split(",");let a=acym_helper.empty(n)?t:t.filter(e=>!n.includes(e));return!!acym_helper.empty(a)||(e.each(a,function(n){a[n]=e('#configmultilingual_default option[value="'+a[n]+'"]').text()}),!!acym_helper.confirm(acym_helper.sprintf(ACYM_JS_TXT.ACYM_REMOVE_LANG_CONFIRMATION,a.join(", "))))}}(),function(){let n=e("#acym__configuration__acl__zone");e("#acym__configuration__acl__toggle").off("click").on("click",function(){n.slideToggle()}).trigger("click")}(),acym_helperMailer.setTestCredentialsSendingMethods(),acym_helperMailer.setButtonCopyFromPlugin(),acym_helperMailer.setSynchroExistingUsers(),acym_helperSelectionPage.setSelectionElement(!0,!0,o,void 0,{prefix:n}),acym_helperSelectionPage.setSelectionElement(!0,!0,i,void 0,{prefix:t}),l(),acym_helperSelectionMultilingual.init("configuration"),acym_helperSelectionMultilingual.init("configuration_subscription"),e('[data-task="downloadExportChangesFile"]').on("click",function(){setTimeout(function(){e("#formSubmit")[0].disabled=!1,e('[name="task"]').val("")},5)}),function(){let n=e(".acym__allowed__hosts__select");n.select2({width:"100%",placeholder:n.attr("placeholder"),tags:!0,theme:"foundation",tokenSeparators:[" "],createTag:function(e){let n=jQuery.trim(e.term);return""===n?null:{id:n,text:n}}})}(),function(){const n=e(".acym__survey__answer__select");n.select2({width:"100%",placeholder:n.attr("placeholder"),tags:!0,theme:"foundation",tokenSeparators:[""]})}(),acym_helperMailer.acymailerAddDomains(),acym_helperMailer.displayCnameRecord(),acym_helperMailer.deleteDomain(),acym_helperMailer.domainSuggestion(),acym_helperMailer.updateStatus(),e("#acymailer_domain").on("keypress",function(n){"Enter"===n.key&&(n.preventDefault(),e("#acym__configuration__sending__method-addDomain").trigger("click"))}),jQuery("#acym__configuration__activate__acymailer").off("click").on("click",function(){jQuery('[data-tab-identifier="mail_settings"]').trigger("click"),jQuery("#acymailer").trigger("click")}),function(){const n=e('select[name^="config[acl_"]'),t={},a=e=>e.slice(4,-2);n.each(function(){t[a(e(this).attr("name"))]=e(this).val()}),n.on("change",function(){const n=a(e(this).attr("name"));let c=e(this).val();null===c&&(c=[]),0===c.length?c=["all"]:c.includes("all")&&(t[n].includes("all")?c.length>1&&(c=c.splice(c.indexOf("all")-1,1)):c=["all"]),e(this).val(c).trigger("change.select2"),t[n]=c})}(),jQuery('[name="config[embed_files]"]').off("change").on("change",function(){setTimeout(()=>{const e=jQuery("#attachments_position");"1"===jQuery(this).val()?e.css("display","none"):e.css("display","")},10)}),jQuery(".auto_sending_input").on("change",function(){const e=parseInt(jQuery('[name="config[queue_batch_auto]"]').val()),n=parseInt(jQuery('[name="config[queue_nbmail_auto]"]').val()),t=parseInt(jQuery('[name="config[cron_frequency]"]').val());let a=0===t?900:t;const c=a>600?600:a,o=parseInt(jQuery('[name="config[email_frequency]"]').val());let i=n;o>0&&(i=n*(o+1));let _=n;i>c&&(_=n*c/i);const l=_*e*3600/a;jQuery("#automatic_sending_speed_preview").html(parseInt(l)),jQuery("#automatic_sending_speed_no_wait").css("display",o>0&&i>c?"inline-block":"none"),jQuery("#automatic_sending_speed_too_much").css("display",0===o&&i>c?"inline-block":"none"),jQuery("#automatic_sending_speed_too_many_batches").css("display",e>5?"inline-block":"none")}).trigger("change"),function(){const n=e("#acym__mailbox__edition__configuration__test-loader"),t=e("#acym__mailbox__edition__configuration__test-result"),a=e("#acym__mailbox__edition__configuration__test-icon"),c=e("#acym__mailbox__edition__configuration__test-test"),o={"config[bounce_server]":"mailbox[server]","config[bounce_username]":"mailbox[username]","config[bounce_password]":"mailbox[password]","config[bounce_connection]":"mailbox[connection_method]","config[bounce_secured]":"mailbox[secure_method]","config[bounce_certif]":"mailbox[self_signed]","config[bounce_port]":"mailbox[port]"},i=Object.keys(o).map(e=>e);c.off("click").on("click",function(){n.css("display","flex"),t.empty(),a.hide().removeClass("acymicon-check-circle acym__color__green acymicon-times-circle acym__color__red"),t.removeAttr("data-acym-tooltip").removeClass("acym__tooltip");const c=e(this).closest("form").serializeArray(),_=(e=>e.filter(({name:e})=>i.includes(e)).map(({name:e,value:n})=>o[e]?{name:o[e],value:n}:{name:e,value:n}))(c).concat([{name:"mailbox[id]",value:"configuration"},{name:"ctrl",value:"bounces"},{name:"task",value:"testMailboxAction"}]);acym_helper.post(ACYM_AJAX_URL,_).then(({error:e,message:c,data:o})=>{n.hide(),t.html(c),e?(o.report&&o.report.length&&(t.attr("data-acym-tooltip",o.report.join("<br>")),acym_helperTooltip.setTooltip()),a.addClass("acymicon-times-circle acym__color__red")):a.addClass("acymicon-check-circle acym__color__green"),a.css("display","flex")})})}(),function(){const n=e("#bounceAddress1"),t=e("#bounceAddress2");n.on("input",function(){t.val(e(this).val())}),t.on("input",function(){n.val(e(this).val())})}(),function(){const n=e(".acym__multilingual__selection h4").eq(1);n.length&&n.addClass("xlarge-3 medium-5 small-9");let t=e(".acym__customs__answer__answer[data-response]").length;e("#acym__custom_answer__add-answer").off("click").on("click",function(){let n='<div class="grid-x cell acym__customs__answers acym__content acym_noshadow grid-margin-x margin-y">';n+='<input type="text" name="config[unsub_survey][]" class="cell medium-10 acym__customs__answer__answer" data-response="'+t+'" value="">',n+='<i class="cell acymicon-close small-1 acym__color__red cursor-pointer acym__custom__delete__value"></i>',n+="</div>",e(".acym__customs__answers__listing__sortable").append(n),t++}),e(".acym__customs__answers__listing__sortable").on("click",".acym__custom__delete__value",function(){const n=e(this).closest(".acym__customs__answers");let t=parseInt(n.find(".acym__customs__answer__answer").data("response"));n.remove();for(let e in acym_helperSelectionMultilingual.translation)acym_helperSelectionMultilingual.translation[e].unsub_survey.splice(t,1);e(".acym__customs__answers__listing__sortable .acym__customs__answers").each(function(n){e(this).find(".acym__customs__answer__answer").data("response",n)})})}(),function(){const n=e("#acym__config__settings__color-picker");"function"==typeof n.spectrum&&n.spectrum({showInput:!0,preferredFormat:"hex"})}(),e("#acym__unsubscribe__logo").on("click",function(){acym_helperImage.openMediaManager(function(n){e("#acym__unsubscribe__logo_value").val(n.url).trigger("change"),e(".acym__unsub__logo__text").html(n.url+' <i class="acymicon-trash-o margin-left-1 acym__color__red acym__unsub__logo__remove"></i>')})}),e("#acym__unsubscribe__image").on("click",function(){acym_helperImage.openMediaManager(function(n){e("#acym__unsubscribe__image_value").val(n.url).trigger("change"),e(".acym__unsub__image__text").html(n.url+' <i class="acymicon-trash-o margin-left-1 acym__color__red acym__unsub__image__remove"></i>')})}),e(document).on("click",".acym__unsub__logo__remove",function(){e("#acym__unsubscribe__logo_value").val("").trigger("change"),e(".acym__unsub__logo__text").empty()}),e(document).on("click",".acym__unsub__image__remove",function(){e("#acym__unsubscribe__image_value").val("").trigger("change"),e(".acym__unsub__image__text").empty()})});1 jQuery(function(e){const n=".acym__configuration__mail-settings",t="#acym__configuration__sml__form";function a(n,t){const a=e(`input[name="${t}[mailer_method]"]`);a.on("change",function(){e(`${n} .send_settings`).hide();const a=e(`input[name="${t}[mailer_method]"]:checked`).val(),c=e(`${n} #${a}_settings`);c.length>0&&c.show()}),a.trigger("change")}function c(n,t){let a=e(`#${n}`).val();a=acym_helper.parseJson(a);const c=e(".acym__sending__methods__choose .acym__selection__card-selected");if(0===c.length)return;const i=e(`[name="config[${t}]"]`),o=i.closest(".acym__configuration__mail__option").find(".acym__configuration__mail__info__disabled"),_=i.closest(".acym__configuration__mail__option").find("> .switch-label"),l=i.closest(".acym__configuration__mail__option").find(".switch-paddle");void 0===a[c.attr("data-acym-method")]||a[c.attr("data-acym-method")]?(i.next().removeAttr("disabled"),l.removeClass("disabled").removeAttr("data-acym-tooltip"),o.closest(".acym__tooltip__info").hide()):(1===parseInt(i.val())&&_.trigger("click"),l.addClass("disabled").attr("data-acym-tooltip",o.find(".acym__tooltip__text ").html()),i.next().attr("disabled","true"),o.closest(".acym__tooltip__info").show()),acym_helperTooltip.setTooltip()}function i(e){_(e,".acym__configuration__mail-settings"),l()}function o(e){_(e,"#acym__configuration__sml__form")}function _(e,n){const t=document.querySelector(`${n} #${e.id}_settings`);t&&t.scrollIntoView({behavior:"smooth",block:"center"})}function l(){c("acym__config__mail__embed__image__blocked","embed_images"),c("acym__config__mail__embed__attachment__blocked","embed_files")}e('[name="config[bounce_server]"]').off("input").on("input",function(){const n=e(this).val().toLowerCase(),t=["imap.gmail.com","outlook.office365.com"].includes(n);t?(e(".acym__bounce__classic__auth__params").hide(),e(".acym__bounce__oauth2__auth__params").show(),e('[name="config[bounce_port]"]').val(993),e('[name="config[bounce_connection]"]').val("imap"),e('[name="config[bounce_secured]"]').val("ssl"),e('[name="config[bounce_certif]"]').val(1),"outlook.office365.com"===n?e("#acym__oauth2_bounce_params__tenant").show():e("#acym__oauth2_bounce_params__tenant").hide()):(e(".acym__bounce__oauth2__auth__params").hide(),e(".acym__bounce__classic__auth__params").show())}).trigger("input"),a(),function(){const n=e(`${t} input[name^="config["]`);for(let e=0;e<n.length;e++)n[e].setAttribute("name",n[e].getAttribute("name").replace("config","sml"))}(),a(t,"sml"),function(){const n=e(".acym__configuration__sml__edit"),a=e("#acym__configuration__sml__cancel-edit"),c=e("#acym__configuration__sml__method__id"),i=acym_helper.parseJson(e("#acym__configuration__sml__methods").val()),o=e(t),_=e("#acym__configuration__sml__toggle");n.on("click",function(){_.hide(),o.show();const n=e(this).closest(".acym__configuration__sml__actions").attr("data-acym-method-id");c.val(n),a.show();const l=i[n],s=e(`[name="sml[mailer_method]"][value="${l.mailer_method}"]`).closest(".acym__sending__methods__one");s.find(".acym__selection__card").click();const r=e(`${t} input[name^="sml["]`);for(let e=0;e<r.length;e++){const n=r[e].name.replaceAll(/(sml\[)|\]/gi,"");"mailer_method"!==n&&(r[e].value=l[r[e].name.replaceAll(/(sml\[)|\]/gi,"")])}}),a.on("click",function(){c.val(""),e("#acym__configuration__sml__name").val(""),o.hide(),_.show()})}(),function(){const n=e(".acym__configuration__sml__delete"),t=e('[data-task="addNewSml"]'),a=e("#acym__configuration__sml__method__id");n.on("click",function(){const n=e(this).closest(".acym__configuration__sml__actions").attr("data-acym-method-id");a.val(n),t.attr("data-task","deleteSml"),t.click()})}(),function(){const n=e("#acym__configuration__sml__toggle"),a=e(t);n.on("click",function(){a.show(),n.hide()})}(),a(n,"config"),e("#available_ports_check").off("click").on("click",function(n){n.preventDefault();let t=e(this).parent();t.html('<i class="acymicon-circle-o-notch acymicon-spin"></i>'),e.get(ACYM_AJAX_URL+"&ctrl=configuration&task=ports",function(e){t.html(e)})}),e(".acym_autoselect").off("click").on("click",function(){this.select()}),e("#checkdb_button").off("click").on("click",function(n){n.preventDefault(),e("#checkdb_report").html('<i class="acymicon-circle-o-notch acymicon-spin"></i>'),e.get(ACYM_AJAX_URL+"&ctrl=configuration&task=checkDBAjax",function(n){e("#checkdb_report").html(n)})}),e("#scanfiles_button").off("click").on("click",function(n){n.preventDefault(),e("#scanfiles_report").html('<i class="acymicon-circle-o-notch acymicon-spin"></i>'),acym_helper.get(ACYM_AJAX_URL,{ctrl:"configuration",task:"scanSiteFiles"}).then(n=>{e("#scanfiles_report").html(n.message)})}),e('input[name="config[auto_bounce]"]').off("change").on("change",function(){e("#acym__configuration__bounce__auto_bounce__configuration").toggle()}),function(){let n=e("#acym__configuration__cron__report--send-to"),t=n.attr("placeholder");n.select2({width:"100%",placeholder:t,tags:!0,theme:"foundation",tokenSeparators:[","," "],createTag:function(n){let t=e.trim(n.term);return acym_helper.emailValid(t)?{id:t,text:t,newTag:!0}:null}})}(),e("#acym__configuration__button__license").off("click").on("click",function(){let n=e("#acym__configuration__license-key").val(),t=parseInt(e(this).attr("data-acym-linked"));if(""===n)return alert(ACYM_JS_TXT.ACYM_PLEASE_SET_A_LICENSE_KEY),!1;let a=t?"unlinkLicense":"attachLicense";e('[name="task"]').val(a),e.acymConfigSave(),e("#acym_form").submit()}),e("#acym__configuration__button__cron").off("click").on("click",function(){let n=parseInt(e(this).attr("data-acym-active")),t=n?"deactivateCron":"activateCron";e('[name="task"]').val(t),e("#acym_form").submit()}),function(){let n="";e("#configmultilingual_default").on("change",function(){let t=e(this).val(),a=e("#configmultilingual_languages");a.find('option[value="'+t+'"]').prop("disabled",!0).prop("selected",!1),a.find('option[value="'+n+'"]').prop("disabled",!1),a.select2({theme:"foundation",width:"100%"}),n=t}).trigger("change"),e.acymConfigSave=function(){e('[name="config[sender_info_translation]"]').length>0&&acym_helperSelectionMultilingual.changeLanguage_configuration(acym_helperSelectionMultilingual.mainLanguage),e('[name="config[unsub_survey_translation]"]').length>0&&acym_helperSelectionMultilingual.changeLanguage_configuration_subscription(acym_helperSelectionMultilingual.mainLanguage),e('input[id^="delayvar"]').trigger("change");let n=e("#configmultilingual_languages").val(),t=e('[name="previous_multilingual_languages"]').val();if(acym_helper.empty(t))return!0;t=t.split(",");let a=acym_helper.empty(n)?t:t.filter(e=>!n.includes(e));return!!acym_helper.empty(a)||(e.each(a,function(n){a[n]=e('#configmultilingual_default option[value="'+a[n]+'"]').text()}),!!acym_helper.confirm(acym_helper.sprintf(ACYM_JS_TXT.ACYM_REMOVE_LANG_CONFIRMATION,a.join(", "))))}}(),function(){let n=e("#acym__configuration__acl__zone");e("#acym__configuration__acl__toggle").off("click").on("click",function(){n.slideToggle()}).trigger("click")}(),acym_helperMailer.setTestCredentialsSendingMethods(),acym_helperMailer.setButtonCopyFromPlugin(),acym_helperMailer.setSynchroExistingUsers(),acym_helperSelectionPage.setSelectionElement(!0,!0,i,void 0,{prefix:n}),acym_helperSelectionPage.setSelectionElement(!0,!0,o,void 0,{prefix:t}),l(),acym_helperSelectionMultilingual.init("configuration"),acym_helperSelectionMultilingual.init("configuration_subscription"),e('[data-task="downloadExportChangesFile"]').on("click",function(){setTimeout(function(){e("#formSubmit")[0].disabled=!1,e('[name="task"]').val("")},5)}),function(){let n=e(".acym__allowed__hosts__select");n.select2({width:"100%",placeholder:n.attr("placeholder"),tags:!0,theme:"foundation",tokenSeparators:[" "],createTag:function(e){let n=jQuery.trim(e.term);return""===n?null:{id:n,text:n}}})}(),function(){const n=e(".acym__survey__answer__select");n.select2({width:"100%",placeholder:n.attr("placeholder"),tags:!0,theme:"foundation",tokenSeparators:[""]})}(),acym_helperMailer.acymailerAddDomains(),acym_helperMailer.displayCnameRecord(),acym_helperMailer.deleteDomain(),acym_helperMailer.domainSuggestion(),acym_helperMailer.updateStatus(),e("#acymailer_domain").on("keypress",function(n){"Enter"===n.key&&(n.preventDefault(),e("#acym__configuration__sending__method-addDomain").trigger("click"))}),jQuery("#acym__configuration__activate__acymailer").off("click").on("click",function(){jQuery('[data-tab-identifier="mail_settings"]').trigger("click"),jQuery("#acymailer").trigger("click")}),function(){const n=e('select[name^="config[acl_"]'),t={},a=e=>e.slice(4,-2);n.each(function(){t[a(e(this).attr("name"))]=e(this).val()}),n.on("change",function(){const n=a(e(this).attr("name"));let c=e(this).val();null===c&&(c=[]),0===c.length?c=["all"]:c.includes("all")&&(t[n].includes("all")?c.length>1&&(c=c.splice(c.indexOf("all")-1,1)):c=["all"]),e(this).val(c).trigger("change.select2"),t[n]=c})}(),jQuery('[name="config[embed_files]"]').off("change").on("change",function(){setTimeout(()=>{const e=jQuery("#attachments_position");"1"===jQuery(this).val()?e.css("display","none"):e.css("display","")},10)}),jQuery(".auto_sending_input").on("change",function(){const e=parseInt(jQuery('[name="config[queue_batch_auto]"]').val()),n=parseInt(jQuery('[name="config[queue_nbmail_auto]"]').val()),t=parseInt(jQuery('[name="config[cron_frequency]"]').val());let a=0===t?900:t;const c=a>600?600:a,i=parseInt(jQuery('[name="config[email_frequency]"]').val());let o=n;i>0&&(o=n*(i+1));let _=n;o>c&&(_=n*c/o);const l=_*e*3600/a;jQuery("#automatic_sending_speed_preview").html(parseInt(l)),jQuery("#automatic_sending_speed_no_wait").css("display",i>0&&o>c?"inline-block":"none"),jQuery("#automatic_sending_speed_too_much").css("display",0===i&&o>c?"inline-block":"none"),jQuery("#automatic_sending_speed_too_many_batches").css("display",e>5?"inline-block":"none")}).trigger("change"),function(){const n=e("#acym__mailbox__edition__configuration__test-loader"),t=e("#acym__mailbox__edition__configuration__test-result"),a=e("#acym__mailbox__edition__configuration__test-icon"),c=e("#acym__mailbox__edition__configuration__test-test"),i={"config[bounce_server]":"mailbox[server]","config[bounce_username]":"mailbox[username]","config[bounce_password]":"mailbox[password]","config[bounce_connection]":"mailbox[connection_method]","config[bounce_secured]":"mailbox[secure_method]","config[bounce_certif]":"mailbox[self_signed]","config[bounce_port]":"mailbox[port]"},o=Object.keys(i).map(e=>e);c.off("click").on("click",function(){n.css("display","flex"),t.empty(),a.hide().removeClass("acymicon-check-circle acym__color__green acymicon-times-circle acym__color__red"),t.removeAttr("data-acym-tooltip").removeClass("acym__tooltip");const c=e(this).closest("form").serializeArray(),_=(e=>e.filter(({name:e})=>o.includes(e)).map(({name:e,value:n})=>i[e]?{name:i[e],value:n}:{name:e,value:n}))(c).concat([{name:"mailbox[id]",value:"configuration"},{name:"ctrl",value:"bounces"},{name:"task",value:"testMailboxAction"}]);acym_helper.post(ACYM_AJAX_URL,_).then(({error:e,message:c,data:i})=>{n.hide(),t.html(c),e?(i.report&&i.report.length&&(t.attr("data-acym-tooltip",i.report.join("<br>")),acym_helperTooltip.setTooltip()),a.addClass("acymicon-times-circle acym__color__red")):a.addClass("acymicon-check-circle acym__color__green"),a.css("display","flex")})})}(),function(){const n=e("#bounceAddress1"),t=e("#bounceAddress2");n.on("input",function(){t.val(e(this).val())}),t.on("input",function(){n.val(e(this).val())})}(),function(){const n=e(".acym__multilingual__selection h4").eq(1);n.length&&n.addClass("xlarge-3 medium-5 small-9");let t=e(".acym__customs__answer__answer[data-response]").length;e("#acym__custom_answer__add-answer").off("click").on("click",function(){let n='<div class="grid-x cell acym__customs__answers acym__content acym_noshadow grid-margin-x margin-y">';n+='<input type="text" name="config[unsub_survey][]" class="cell medium-10 acym__customs__answer__answer" data-response="'+t+'" value="">',n+='<i class="cell acymicon-close small-1 acym__color__red cursor-pointer acym__custom__delete__value"></i>',n+="</div>",e(".acym__customs__answers__listing__sortable").append(n),t++}),e(".acym__customs__answers__listing__sortable").on("click",".acym__custom__delete__value",function(){const n=e(this).closest(".acym__customs__answers");let t=parseInt(n.find(".acym__customs__answer__answer").data("response"));n.remove();for(let e in acym_helperSelectionMultilingual.translation)acym_helperSelectionMultilingual.translation[e].unsub_survey.splice(t,1);e(".acym__customs__answers__listing__sortable .acym__customs__answers").each(function(n){e(this).find(".acym__customs__answer__answer").data("response",n)})})}(),function(){const n=e("#acym__config__settings__color-picker");"function"==typeof n.spectrum&&n.spectrum({showInput:!0,preferredFormat:"hex"})}(),e("#acym__unsubscribe__logo").on("click",function(){acym_helperImage.openMediaManager(function(n){e("#acym__unsubscribe__logo_value").val(n.url).trigger("change"),e(".acym__unsub__logo__text").html(n.url+' <i class="acymicon-trash-o margin-left-1 acym__color__red acym__unsub__logo__remove"></i>')})}),e("#acym__unsubscribe__image").on("click",function(){acym_helperImage.openMediaManager(function(n){e("#acym__unsubscribe__image_value").val(n.url).trigger("change"),e(".acym__unsub__image__text").html(n.url+' <i class="acymicon-trash-o margin-left-1 acym__color__red acym__unsub__image__remove"></i>')})}),e(document).on("click",".acym__unsub__logo__remove",function(){e("#acym__unsubscribe__logo_value").val("").trigger("change"),e(".acym__unsub__logo__text").empty()}),e(document).on("click",".acym__unsub__image__remove",function(){e("#acym__unsubscribe__image_value").val("").trigger("change"),e(".acym__unsub__image__text").empty()}),e('[name="config[dedicated_send_process]"]').on("change",function(n){setTimeout(()=>{1!==Number(e(this).val())||confirm(ACYM_JS_TXT.ACYM_DEDICATED_SENDING_PROCESS_WARNING)||e(`[for="${e(this).data("switch")}"]`).trigger("click")},100)})}); -
acymailing/trunk/readme.txt
r3400526 r3401937 4 4 Requires at least: 5.5 5 5 Tested up to: 6.8 6 Stable tag: 10.6. 56 Stable tag: 10.6.6 7 7 Requires PHP: 7.4.0 8 8 License: GPLv3 … … 114 114 == Changelog == 115 115 116 = 10.6.5 - November 21, 2025 = 117 * The sending test option has been fixed when the current user doesn't have an AcyMailing user. 118 * We fixed an error that could occur on the summary of the campaigns when your admin account does not have an AcyMailing user. 119 * We added a security that alerts you when the frequency of an automatic campaign is empty or has been modified on a plugin update. 116 = 10.6.6 - November 24, 2025 = 117 * The automated sending of queued emails has been reverted to the v10.5.2 version, and a new option has been added to activate deferred sending for performance improvement. 120 118 121 119 [See the whole changelog here.](https://www.acymailing.com/changelog) -
acymailing/trunk/vendor/composer/installed.php
r3400526 r3401937 4 4 'pretty_version' => 'dev-develop', 5 5 'version' => 'dev-develop', 6 'reference' => ' 7a9153a6745a5b06e279ee61d7401410de45a9dc',6 'reference' => 'b1aec8ffa9f160d912360aaa5201721eb3e7d2e2', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-develop', 15 15 'version' => 'dev-develop', 16 'reference' => ' 7a9153a6745a5b06e279ee61d7401410de45a9dc',16 'reference' => 'b1aec8ffa9f160d912360aaa5201721eb3e7d2e2', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.