# How to email a table using a timer?

**URL:** <https://forum.inductiveautomation.com/t/how-to-email-a-table-using-a-timer/4545>\
**Category:** General Discussion\
**Created:** [May 30, 2012, 12:40pm UTC](https://forum.inductiveautomation.com/t/how-to-email-a-table-using-a-timer/4545 "2012-05-30T12:40:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramkumar\_S](https://avatars.discourse-cdn.com/v4/letter/r/50afbb/32.png) [@Ramkumar\_S](https://forum.inductiveautomation.com/u/Ramkumar_S)\
**Post date:** [May 30, 2012, 12:40pm UTC](https://forum.inductiveautomation.com/t/how-to-email-a-table-using-a-timer/4545/1 "2012-05-30T12:40:11Z")

</div>

I have a timer and a table called MIS. I want this MIS to be sent through email exactly at 10 a.m. everyday. Please tell me how to do this using a timer and what scripting can be used?

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [June 5, 2012, 11:36pm UTC](https://forum.inductiveautomation.com/t/how-to-email-a-table-using-a-timer/4545/2 "2012-06-05T23:36:21Z")

</div>

Well, you really need to break the problem down into steps and attack it one piece at a time.

Here are some tips to get you started.

1. Create a button that emails the table.

First you’ll need a script that emails the table’s contents. Take a look at the [system.net.sendEmail](http://www.inductiveautomation.com/support/usermanuals/ignition/index.html?system_net_sendemail.htm) function.

1. Write a property change script for the time that checks the time. You’re looking for when it’s 10am, obviously. There are a variety of ways to do this, but the easiest would be to simply create a new Date object like so:

`from java.util import Date
now = Date()` and then use the [system.db.dateFormat](http://www.inductiveautomation.com/support/usermanuals/ignition/index.html?system_db_dateformat.htm) function to pull out the time component.

1. Put it all together. Figure out how you’re going to make sure that this client with your table/timer window is running all the time, and exactly 1 copy is running.
