[GH-ISSUE #3190] Allow scheduling sending emails #1794

Closed
opened 2026-02-27 11:19:10 +03:00 by kerem · 9 comments
Owner

Originally created by @mbridon on GitHub (Feb 12, 2024).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/3190

This is not actually a bug, more like a feature request. 😉

It would be amazing if it were possible to send emails at a certain time in the future.

I'm pretty sure there's nothing in the mail standards for it (at least that's what @Toniob tells me 🤷), in any case it needs an access to a database (to store the programmed email) and then check that the programmed time has arrive, to actually send the email (a few minutes late will not be a problem, it doesn't need to be extremely accurate, as long as it is sent.

Gmail does that, and I hate Google with a passion, so I don't want to rely on Google for such an important thing as my emails.

Expected behavior

I'm able to program an email with a given content and a date/time, and when the time comes, the mail is automatically sent, give or take a few minutes. 😄

Originally created by @mbridon on GitHub (Feb 12, 2024). Original GitHub issue: https://github.com/modoboa/modoboa/issues/3190 This is not actually a bug, more like a feature request. 😉 It would be amazing if it were possible to send emails at a certain time in the future. I'm pretty sure there's nothing in the mail standards for it (at least that's what @Toniob tells me 🤷), in any case it needs an access to a database (to store the programmed email) and then check that the programmed time has arrive, to actually send the email (a few minutes late will not be a problem, it doesn't need to be extremely accurate, as long as it is sent. Gmail does that, and I hate Google with a passion, so I don't want to rely on Google for such an important thing as my emails. # Expected behavior I'm able to program an email with a given content and a date/time, and when the time comes, the mail is automatically sent, give or take a few minutes. 😄
Author
Owner

@mbridon commented on GitHub (Feb 12, 2024):

signal-2024-02-12-09-29-24-286_1

<!-- gh-comment-id:1938230903 --> @mbridon commented on GitHub (Feb 12, 2024): ![signal-2024-02-12-09-29-24-286_1](https://github.com/modoboa/modoboa/assets/84638230/72a39d50-d3ef-40c8-bf9b-3ba157b70250)
Author
Owner

@mbridon commented on GitHub (Feb 12, 2024):

signal-2024-02-12-09-29-05-175_1

<!-- gh-comment-id:1938232552 --> @mbridon commented on GitHub (Feb 12, 2024): ![signal-2024-02-12-09-29-05-175_1](https://github.com/modoboa/modoboa/assets/84638230/e441731c-5875-487a-9f35-90b4b308ea6c)
Author
Owner

@mbridon commented on GitHub (Feb 12, 2024):

Ah yes, timezones will also need to be taken care of 😉

<!-- gh-comment-id:1938233469 --> @mbridon commented on GitHub (Feb 12, 2024): Ah yes, timezones will also need to be taken care of 😉
Author
Owner

@hazho commented on GitHub (May 28, 2024):

you mean scheduled sending of mail, don't you? if so, kindly change the title of this issue, it is confusing

<!-- gh-comment-id:2136054975 --> @hazho commented on GitHub (May 28, 2024): you mean scheduled sending of mail, don't you? if so, kindly change the title of this issue, it is confusing
Author
Owner

@mbridon commented on GitHub (May 29, 2024):

Yes, scheduling, also known as programming 🤷

If you find that clearer, I'll change 🤷

<!-- gh-comment-id:2136527996 --> @mbridon commented on GitHub (May 29, 2024): Yes, scheduling, also known as programming 🤷 If you find that clearer, I'll change 🤷
Author
Owner

@mbridon commented on GitHub (May 19, 2025):

FYI, it seems Django is finally getting something that would help here, without Celery or something else, but built in Django: https://www.djangoproject.com/weblog/2024/may/29/django-enhancement-proposal-14-background-workers/

An implementation of the spec is here: https://github.com/RealOrangeOne/django-tasks

Still quite experimental and prone to breakages while it bakes, but this could be the best solution for Modoboa to implement this feature. 😁

<!-- gh-comment-id:2891322983 --> @mbridon commented on GitHub (May 19, 2025): FYI, it seems Django is finally getting something that would help here, without Celery or something else, but built in Django: https://www.djangoproject.com/weblog/2024/may/29/django-enhancement-proposal-14-background-workers/ An implementation of the spec is here: https://github.com/RealOrangeOne/django-tasks Still quite experimental and prone to breakages while it bakes, but this could be the best solution for Modoboa to implement this feature. 😁
Author
Owner

@kryskool commented on GitHub (Feb 5, 2026):

Scheduled email have been available at 2.7.0

<!-- gh-comment-id:3855700666 --> @kryskool commented on GitHub (Feb 5, 2026): Scheduled email have been available at [2.7.0](https://github.com/modoboa/modoboa/releases/tag/2.7.0)
Author
Owner

@mbridon commented on GitHub (Feb 8, 2026):

FWIW, I just tried and it worked! 🎉

<!-- gh-comment-id:3867041993 --> @mbridon commented on GitHub (Feb 8, 2026): FWIW, I just tried and it worked! 🎉
Author
Owner

@hazho commented on GitHub (Feb 13, 2026):

Scheduled email have been available at 2.7.0

can anyone please point to the exact commit that this feature had been added?

<!-- gh-comment-id:3897623932 --> @hazho commented on GitHub (Feb 13, 2026): > Scheduled email have been available at [2.7.0](https://github.com/modoboa/modoboa/releases/tag/2.7.0) can anyone please point to the exact commit that this feature had been added?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1794
No description provided.