Circuitverse: Bulk mail

Created on 18 Oct 2018  路  17Comments  路  Source: CircuitVerse/CircuitVerse

The organisation needs a way to send bulk mail to all users. Ideally we should be able to use transactional email service like mailchimp. Alternatively we can maintain our own subscription system (not recommended).

priority

Most helpful comment

I have worked previously on mass mailers and there are too many factor to consider such as multi-threading(puma) and when there is parallelism, there are cases when the mails are not sent properly or end up in spam. I really don't see the point of reinventing the wheel by writing our own script.

Suggestion : We go forward with mailchimp or mailgun, because setting them up won't take much time, if that doesn't satisfy our needs we can look through options for writing a massmailer ourself.
Thoughts?

All 17 comments

I would like to work on this issue.I will start looking into email services.

Do check for email services, however the organization currently doesn't have any funds to actually pay for a subscription service. Maybe, if you can find one that gives opensource/non-profit/educational organizations subscriptions for free, then awesome.

Hi @garry329, are you working on this? If yes, what are the updates.

I think it is possible to implement this through a simple ruby mail script that iterates through all the users and sends them emails.
In order to reduce the run time of the script, we can look into dividing the users into chunks and processing chunks in different threads, we can experiment with the chunk size and the no of email queues to see which one responds with the best result.

In order to reduce the run time of the script, we can look into dividing the users into chunks and processing chunks in different threads, we can experiment with the chunk size and the no of email queues to see which one responds with the best result.

Yes, these are my thoughts as well. We are currently using yandex as our mail provider. Which surprisingly gives free email service for custom domain and as far as I can see it isn't against their user policy to use this email as a server email. I couldn't even find any restrictions regarding the same. However, based on articles and blogs on the internet it is best to use a mailing service.

I think it is possible to implement this through a simple ruby mail script that iterates through all the users and sends them emails.

We can implement that for now, there are quite a few announcements that are to be done in CircuitVerse and we could do with a quick implementation.

We can implement that for now, there are quite a few announcements that are to be done in CircuitVerse and we could do with a quick implementation.

Great, @garry329 Let us know if you're still working on it. Also don't hesistate to ask for help if required. :wink:

@satu0king @armudgal according to plans provided by email services:

  • we can have a service like mailgun or mailchimp which provide about 10,000 emails per month on their free plans.
  • services like sendgrid and sendinblue providing few hundered emails per day.
    Now, i don't think either of the above plans would suffice.
    So, for now we can go with a script as suggested to roll out some quick announcements.
    Can you please tell me what needs to be done now?

I have worked previously on mass mailers and there are too many factor to consider such as multi-threading(puma) and when there is parallelism, there are cases when the mails are not sent properly or end up in spam. I really don't see the point of reinventing the wheel by writing our own script.

Suggestion : We go forward with mailchimp or mailgun, because setting them up won't take much time, if that doesn't satisfy our needs we can look through options for writing a massmailer ourself.
Thoughts?

I second @armudgal

@tachyons @armudgal You are right. We need to use something like mailchimp and mailgun. But not right now, maybe someone can send a PR and we can keep it pending till we acquire funds for the same.

Mailchimp's free plan must be enough for our usecase https://mailchimp.com/help/about-the-forever-free-plan/

I had already seen this, the free plan allows it to be free until 2000 subscribers, we have already crossed 4000 users!

No activity on this issue for a prolonged duration, will be closed if no further activities in next 7 days

.

An inbuilt solution has been implemented in this PR #423. However, this may not scale and we need to use a 3rd party API. As of now we haven't sent a single email blast using this service, so it is untested. There are over 20,000 subscribers currently.

No activity on this issue for a prolonged duration, will be closed if no further activities in next 7 days

We need to migrate everything, so closing this PR

Was this page helpful?
0 / 5 - 0 ratings

Related issues

1337w0rm picture 1337w0rm  路  3Comments

jbox144 picture jbox144  路  7Comments

darkshredder picture darkshredder  路  8Comments

tachyons picture tachyons  路  6Comments

Ananthavijay picture Ananthavijay  路  5Comments