Results 1 to 6 of 6

Thread: Send time in an email

  1. #1
    Automated Home Sr Member Alexc's Avatar
    Join Date
    Apr 2013
    Posts
    67

    Default Send time in an email

    Cortex sends me emails on certain events. Occasionally an email can be delayed (not Cortex's fault) and I'd like to add the time the event was triggered in the email.

    I thought that in the 'Report status' field in the email box I could add something from the Clock, but there's nothing there that can give the time. Anyone know?

    Thanks.

  2. #2
    Automated Home Legend chris_j_hunter's Avatar
    Join Date
    Dec 2007
    Location
    North Lancashire
    Posts
    1,638

    Default

    can't try it here, because e-mails aren't working for us (*) ... but, have you tried including <Time> and <Date> in your message text ?

    Chris

    (*) we never receive our e-mail, and a Log is generated ... and, when we click Test Connection, we get a message saying "This value can not be set while the client is connected" ... it's worked previously, and we believe we've not changed settings ... Googling suggests something to do with SSL, but we've tried all sorts, and no joy ... it's a mystery ...

  3. #3
    Automated Home Sr Member Alexc's Avatar
    Join Date
    Apr 2013
    Posts
    67

    Default

    Yes - that worked. Thanks Chris.

    I'm using my ISP's SMTP server to send on SSL. I had problems using a relay, but now it's very reliable.

  4. #4
    Automated Home Legend chris_j_hunter's Avatar
    Join Date
    Dec 2007
    Location
    North Lancashire
    Posts
    1,638

    Default

    ah, good ... might do the same ourselves, when we get them working again ...

    we're doing the same as you, and it's worked for years, but now it doesn't, and we've no idea why ... some sort of Google filter comes to mind, but can't suss it out !

  5. #5
    Automated Home Legend Karam's Avatar
    Join Date
    Mar 2005
    Posts
    779

    Default

    Quote Originally Posted by Alexc View Post

    I thought that in the 'Report status' field in the email box I could add something from the Clock, but there's nothing there that can give the time. Anyone know?

    Thanks.
    You can add the 'Clock' connection to the Report status field and this will auto add date and time information to the e-mail body, however I noticed it doesn't work if the e-mail is generated using the Test function available in the e-mail send options menu, but it does work if instigated via some connected signal such as a button or camera picture taken, etc

  6. #6
    Automated Home Sr Member Alexc's Avatar
    Join Date
    Apr 2013
    Posts
    67

    Default

    Thanks. That was interesting. Using <Time> only seems to work (reliably) when doing a test and, as you say, adding a clock connection only works when triggered. Working as expected now.

    e.g.
    Cortex - Message I put in the text box here
    Clock .................................. Time = 14:53:07, Date = 04-06-2017.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •