# Send Mail some Time before Calendar entry

**URL:** <https://community.openhab.org/t/send-mail-some-time-before-calendar-entry/58669>\
**Category:** Beginners\
**Tags:** rules\
**Created:** [December 3, 2018, 3:50pm UTC](https://community.openhab.org/t/send-mail-some-time-before-calendar-entry/58669 "2018-12-03T15:50:15Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Dim](https://community.openhab.org/user_avatar/community.openhab.org/dim/32/4568_2.png) [@Dim](https://community.openhab.org/u/Dim)\
**Post date:** [December 3, 2018, 5:47pm UTC](https://community.openhab.org/t/send-mail-some-time-before-calendar-entry/58669/2 "2018-12-03T17:47:36Z")

</div>

I don’t have the answer (obviously your if expression is wrong and it results to true all the time…)

Isn’t there a better way for you to get notified of upcoming appointments?  
Triggering a rule every minute and performing DateTime comparisons seems a bit inefficient to me.  
Doesn’t your CalDav server have the ability to send you an email based on time schedules?

Did you use: [Design Pattern: Simple State Machine (e.g. Time Of Day)](https://community.openhab.org/t/design-pattern-time-of-day/15407) ?

---

_[View the full topic](https://community.openhab.org/t/send-mail-some-time-before-calendar-entry/58669)._
