Hi,

I am trying a reminder mail system in perl, which automatically sends reminder mails to the responsible persons whoever not completed the task on time... I have the mail system in place and i am in need of logic to find the dates.

In nutshell, my requirement is, I have a due date for a particular task and i need to start sending reminder mails on WED and FRI of the two weeks previous to the due date. ie. If the due date is Dec 15 2008, i need to send mails on wed and fri from Dec 8 2008. And also while sending the last reminder mail ie. Dec 12 2008(Fri), i need to copy the mail to a higher level person as well.

Since the day of the due date varies, i cant able to find the correct way of finding when the last mail should be sent. I have gone through Date::Calc and Date::Manip modules and i am using ParseDate, Delta_Days and UnixDate subroutines, but still i was not able to grasp the correct logic?
Any help on this?


In reply to Finding the dates for the reminder mail system by d-evil

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.