email system

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Lapinkiller
Posts: 408
Joined: 28 Jan 2011, 18:47
Location: France
Contact:

email system

Post by Lapinkiller »

Hello,

I have a question about email without cronjob :
In source code i saw that when function send_all is called, all emails in database are sent, but, if there are 2 (or more) persons who send emails at the same moment, is there a risk that email are sent twice or more ?


thanks.
Lapinkiller,
French PHP developer
New look for your mantis : http://www.mantisbt.org/forums/viewtopi ... =4&t=20055
istvanb
Posts: 226
Joined: 22 Aug 2010, 21:00

Re: email system

Post by istvanb »

I assume all emails are stored separately. That makes sense since if you wouldnt use the cronjob then all emails would be sent immediately. Cronjob does nothing else from the user perspective than delaying the messages for a while and then email all of them at once later.

(but feel free to correct me)
istvanb
Posts: 226
Joined: 22 Aug 2010, 21:00

Re: email system

Post by istvanb »

Maybe misunderstood your question a bit. Sorry about that. I had used mantis without a cronjob and have found no issues with duplicated messages or so.
Lapinkiller
Posts: 408
Joined: 28 Jan 2011, 18:47
Location: France
Contact:

Re: email system

Post by Lapinkiller »

no problem too but i have found nothing that confirm me email cannot be sent twice ;)
Lapinkiller,
French PHP developer
New look for your mantis : http://www.mantisbt.org/forums/viewtopi ... =4&t=20055
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: email system

Post by cas »

We run without a cronjob and have no issues. if you check the functions you will see that such scenario is being handled properly.
So do not worry :D
Post Reply