Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #2365 - Campaign Emails are queued, but it stops sending after about 78 or 79 recipients #5883

Open
wants to merge 1 commit into
base: hotfix-7.10.x
Choose a base branch
from

Conversation

sanchezfauste
Copy link
Contributor

Replication of #2569

Description

References issue #2365

Activate SMTP Keep Alive for Campaign Mass Emailer.

Motivation and Context

To reduce the CPU load on the SMTP Server, and reduce the chance of errors and throttling of the Campaign Mass Emailer by improving performance.

How To Test This

Create a Campaign in a version of SuiteCRM without this update.
Create a Campaign and send it using the Scheduler.
Calculate the time for each batch by viewing the log and search for the timestamps and subtract start time from end time for each batch of X emails (default is 500 emails).
Then run a Campaign on a version of SuiteCRM with this patch.
Send it using the Scheduler.
Calculate the time for each each batch by viewing the log, and search for the timestamps and subtract start time from end time for each batch of X emails (default is 500 emails).
The time to send the batch of campaign emails should be significantly faster.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Final checklist

  • My code follows the code style of this project found here.
  • My change requires a change to the documentation.
  • I have read the How to Contribute guidelines.

PedroErnst
PedroErnst previously approved these changes May 18, 2018
@amariussi
Copy link
Contributor

Instead of hard coding it it would be better to use a config variable to allow users to decide whether to use it or not.
This method is indeed more efficient but increases the chances of being reported as spammers!
I would also add one extra variable to close the session after a certain number of iterations. (a little more complex, but a much better approach!)

@sanchezfauste
Copy link
Contributor Author

I can add a checkbox (disabled by default) to choose if SMTP connection has to keep alive or not in Campaign Email Settings.

It would be interesting to get feedback from more users.

@Dillon-Brown Dillon-Brown added the PR:Type:Enhancement Pull requests that provide more functionality. Associated Issues are called suggestions label May 29, 2018
@jack7anderson7 jack7anderson7 added the PR:Community Contribution These are contribution made by the community label Dec 3, 2018
@Mac-Rae Mac-Rae added the Area: Emails:Campaigns Issues & PRs related to email campaigns label Jun 25, 2019
@Mac-Rae
Copy link
Contributor

Mac-Rae commented Aug 5, 2019

Please rebase this pull request to the hotfix-7.10.x branch as version 7.8.x of SuiteCRM has reached its end of life and therefore will no longer be receiving updates.

For more information about 7.8.x end of life please visit our blog post

@Mac-Rae Mac-Rae added Type:Deprecated Issues & PRs related to an unsupported version of SuiteCRM PR:Wrong Branch Pull requests that point towards a restricted branch such as master and removed Type:Deprecated Issues & PRs related to an unsupported version of SuiteCRM labels Aug 5, 2019
@sanchezfauste sanchezfauste changed the base branch from hotfix-7.8.x to hotfix-7.10.x August 5, 2019 14:26
@sanchezfauste
Copy link
Contributor Author

Please rebase this pull request to the hotfix-7.10.x branch as version 7.8.x of SuiteCRM has reached its end of life and therefore will no longer be receiving updates.

For more information about 7.8.x end of life please visit our blog post

Done.

@Dillon-Brown Dillon-Brown removed the PR:Wrong Branch Pull requests that point towards a restricted branch such as master label Aug 5, 2019
@Mac-Rae
Copy link
Contributor

Mac-Rae commented Nov 22, 2019

Assessed 👍

@Mac-Rae Mac-Rae added the Status:Assessed PRs that have been tested and confirmed to resolve an issue by a core team member label Nov 22, 2019
@codecov-commenter
Copy link

Codecov Report

Merging #5883 into hotfix-7.10.x will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@                Coverage Diff                @@
##           hotfix-7.10.x    #5883      +/-   ##
=================================================
- Coverage          10.70%   10.70%   -0.01%     
=================================================
  Files               3230     3230              
  Lines             241058   241060       +2     
=================================================
  Hits               25798    25798              
- Misses            215260   215262       +2     

@SuiteBot
Copy link

SuiteBot commented Aug 27, 2020

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Emails:Campaigns Issues & PRs related to email campaigns PR:Community Contribution These are contribution made by the community PR:Type:Enhancement Pull requests that provide more functionality. Associated Issues are called suggestions Status:Assessed PRs that have been tested and confirmed to resolve an issue by a core team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants