We are currently working on the forum. For the short-term, all forum content will be in read-only format. We apologize for the interruption and look forward to collaborating with you shortly. All the best in your research!

Email Queue

Dear Oepnclinica Developers,

Quick one. I'm wondering if OpenClinica has an email queue feature (ie when an email does'nt fire or send because the mail server is down). Will it try and send it again? Cheers.



  • kristiakkristiak Posts: 1,339 ✭✭✭
    via Email
    Your mail server will handle this! It is not part of OpenClinica!
  • kevintehkevinteh Posts: 32
    I'm not really bothered about my mail server. I'm wondering if Openclinica has a queue? Cheers.

  • kristiakkristiak Posts: 1,339 ✭✭✭
    via Email
    OpenClinica is only a client to the mailsystem that you specify in datainfo.properties. The mail system server will handle any queing!

  • kevintehkevinteh Posts: 32
    Do you know this for certain? Is it anywhere in any Openclinica manuals or have you seen it in any written code? I need to know as i'm doing the handling of the emails out of Openclinica programatically. And need to know to extend my code asy nchronously. Cheers.
  • lindsay.stevenslindsay.stevens Posts: 404 ✭✭✭
    via Email
    I'd suggest adapting Gerben's excellent write up on scripting the running
    of rules [1].

    This will give you control over when the emails are generated. Maybe
    combine this with inspecting the OpenClinica app logs to double check all
    expected emails are generated, or avoid duplicates, etc. I think the
    database audit table also keeps track of rule firings if your regex skills
    are rusty.

    Further to this you could set up rabbitmq as an intermediate SMTP host, and
    use rabbitmq to control how and when the messages are pushed on to
    recipients, or maybe even on to your regular mail system.

    [1] http://www.trialdatasolutions.com/tds/howto/scripttorunarule.jsp
This discussion has been closed.