E-mail sending messages from Wiser - problem

Discussion in 'C-Bus Wiser 1 Controller' started by stofilyuk, Sep 4, 2012.

  1. stofilyuk

    stofilyuk

    Joined:
    Jan 25, 2012
    Messages:
    22
    Likes Received:
    0
    Location:
    Russia
    Hello Colleagues,

    Please advise what can be problem with e-mail sending.
    I have follow settings in e-mail manager (see picture). When i sending test message then i have received it (OK).
    The logic is simple (see picture). But no messages in according with this logic.

    Thanks all for support!
    Sergey.
     

    Attached Files:

    stofilyuk, Sep 4, 2012
    #1
    1. Advertisements

  2. stofilyuk

    Mr Mark

    Joined:
    Jan 27, 2006
    Messages:
    305
    Likes Received:
    1
    Location:
    FNQ
    Hello Sergey.
    Try changing your "if" for a "once".
     
    Mr Mark, Sep 4, 2012
    #2
    1. Advertisements

  3. stofilyuk

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    The HasChanged function is normally only used for doing something when an integer or real value changes. Although what you have written should work, it would be better to have:

    Code:
    once GetCBusState(...) = On then
    begin
      SendEmail(...);
    end;
    To check that the SendEmail statement is being executed, you could put something else in the block of code such as switching on another group address:

    Code:
    once GetCBusState(...) = On then
    begin
      SetCBusState(...);
      SendEmail(...);
    end;
     
    Darren, Sep 5, 2012
    #3
  4. stofilyuk

    stofilyuk

    Joined:
    Jan 25, 2012
    Messages:
    22
    Likes Received:
    0
    Location:
    Russia
    Hello ALL,

    I checked new logic
    once GetCBusState("Home", "All Inputs", "Входная дверь -2")=ON then
    begin
    SetLightingState("Спорт зона (гр.20)", ON);
    SendEmail(0, 'homeaction@mail.ru', 'Alarm!', 'Leakage!!!');
    end;
    So, lighting group is work, test message is OK? but e-mail doesn't work.
    I checked other e-mail settings - the same situation.
    May be necessary any additional sets?

    Best regards,
    Sergey.
     
    stofilyuk, Sep 5, 2012
    #4
  5. stofilyuk

    kjayakumar

    Joined:
    Oct 27, 2008
    Messages:
    448
    Likes Received:
    0
    Just to confirm, is the SMTP server a cleartext server or does it require encryption? Wiser does not support encrypted (eg: TLS) connections. Only plain SMTP. Was this working before and stopped working after some change? If possible, please use wireshark to capture the traffic that comes from the Wiser going to the SMTP server. This will help identify what could be the issue.
     
    kjayakumar, Sep 5, 2012
    #5
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.