E-Mail Manager does not send email.

Discussion in 'C-Bus Wiser 1 Controller' started by Yoshi, Jun 9, 2012.

  1. Yoshi

    Yoshi

    Joined:
    Nov 17, 2006
    Messages:
    103
    Likes Received:
    0
    This bug have not been fixed yet in PICED 4.11.
    E-Mail Manager in C-Touch can send email.

    Will this bug be fixed in next version PICED?
     
    Yoshi, Jun 9, 2012
    #1
  2. Yoshi

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    Can you give details of the problem you are having?

    I have just tested sending e-mail from logic and it works correctly.
     
    Darren, Jun 10, 2012
    #2
  3. Yoshi

    Yoshi

    Joined:
    Nov 17, 2006
    Messages:
    103
    Likes Received:
    0
    Hello Darren,

    I arranged a same email account in E-Mail manager.

    And I arranged a module in logic.

    This is a module in logic in CTC.
    Module "email1"
    ---------
    email_test := GetEMailCount(0);
    Delay(1);
    SendEMail(0, '[email protected]', 'test1', 'this is a test message1');
    DisableModule("email1");
    ---------
    This module is kicked by button via ModuleEnable function.

    This is a module in logic in Wiser.
    Module "send_email"
    ---------
    once (GetLightingState("send_email") = ON) then
    begin
    email_test := GetEMailCount(0);
    Delay(1);
    SendEMail(0, '[email protected]', 'TEST Email', 'This is a test email from Wiser.');
    SetLightingState("send_email", OFF);
    end;
    ---------
    This module is kicked by button via send_email group ON.

    This email account needs to use POP before SMTP function.
    So I arranged GetEMailCount(0) before SendEMail.

    CTC is working fine not only Simulation Mode of PICED but also CTC unit.
    But Wiser can not send email not only Simulation Mode of PICED but also Wiser unit.

    Why only Wiser can not send email.

    If you can test this email account, i send password to you.

    Regards,
     

    Attached Files:

    Yoshi, Jun 13, 2012
    #3
  4. Yoshi

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    OK

    With the Wiser project in PICED, does e-mail work?
     
    Darren, Jun 13, 2012
    #4
  5. Yoshi

    Yoshi

    Joined:
    Nov 17, 2006
    Messages:
    103
    Likes Received:
    0
    Hello Darren,

    Wiser project does not send email.

    I tried to capture packets via Packetyzer software.
    Wiser sent message to POP server.
    But POP server did not forward it to receiver.
    I think POP server rejected the message.
    Carrying the message of the CTC's packet is 310 bytes.
    But carrying the message of the Wiser's packet is 663 bytes.
    It is very different.

    I hope that WISER will send an email in the same way as CTC.

    Regards
     
    Yoshi, Jun 13, 2012
    #5
  6. Yoshi

    Yoshi

    Joined:
    Nov 17, 2006
    Messages:
    103
    Likes Received:
    0
    Hello Darren,

    These are the information for analysis.

    Regards,
     

    Attached Files:

    Yoshi, Jun 13, 2012
    #6
  7. Yoshi

    kjayakumar

    Joined:
    Oct 27, 2008
    Messages:
    448
    Likes Received:
    0
    Dear Yoshi,

    Thanks for including the packet capture. It is very useful. Here is my feedback.

    - you mentioned that the problem is that Wiser does not send email
    - Wiser sends email using SMTP on fixed port 25
    - Wiser receives email using POP3

    *) ctc_ok.cap
    I see in the traffic at packet number 296, CTC at 192.168.100.200 is connecting to port 587 of 219.118.71.63. It then successfully sends email using this port.

    *) wiser_ng.cap
    I see in the traffic at packet number 314, Wiser at 192.168.100.100 is trying to connect to port 25 of 219.118.71.63. This traffic is ignored so the Wiser fails to send a message.

    I think the root cause is that Wiser firmware is written to only use port 25 for sending email as it is only capable of SMTP and uses auth login. I'm not sure if Wiser would be compatible with the mail server you are using even if Wiser were modified to use port 587. Would it be possible to switch your mail server to the standard SMTP port, port 25?

    If changing the port is not possible, then if you like, I can file a request to make it such that future Wiser firmware can support configurable port number for SMTP. Please let me know.

    Thanks.
     
    kjayakumar, Jun 14, 2012
    #7
  8. Yoshi

    ashleigh Moderator

    Joined:
    Aug 4, 2004
    Messages:
    2,392
    Likes Received:
    24
    Location:
    Adelaide, South Australia
    Hi Jaya

    It is quite common for mail servers to use port 587. For example, one of my ISP's requires that I use this instead of the normal SMTP port. Why... I don't know, but they do.

    If you can allow wiser to use the more common ports instead of a single fixed one, it will make customers happier :)
     
    ashleigh, Jun 14, 2012
    #8
  9. Yoshi

    Charlie Crackle

    Joined:
    Aug 3, 2004
    Messages:
    815
    Likes Received:
    8
    Location:
    Melbourne
    All new Telstra Bigpond email accounts since Feb 2012 I think are now on live mail which use port 587

    The protocol for new submissions "Mail submission agent" (MSA) is effectively the same as SMTP, but it uses port 587 instead.

    Once difference is MANDATORY AUTHENTICATION. You can see why ISP like this to stop the relay/spam issues..

    Charles
     
    Charlie Crackle, Jun 14, 2012
    #9
  10. Yoshi

    Yoshi

    Joined:
    Nov 17, 2006
    Messages:
    103
    Likes Received:
    0
    Hello kjayakumar,

    My Email server does not support SMTP 25 port.
    So, I prepared proxy server in my office for testing.

    PICED in PC -> port 25 Email -> proxy server -> port 587 Email -> Email server

    It worked fine. Email reached to receiver.

    WISER -> port 25 Email -> proxy server -> port 587 Email -> Email server

    Email also reached to receiver.
    But, some other bugs are still in WISER.
    WISER is using User Name data for From Email address in Email data.
    It should be arranged by E-Mail Address in E-Mail Account configuration data.

    Email format form PICED is TEXT in Microsoft Outlook and I can get email message.
    But Email format from WISER is HTML and I can not get message.
    The message was reached and I was be able to get subject.

    I hope this information is useful for you.

    Regards,
     
    Yoshi, Jun 15, 2012
    #10
  11. Yoshi

    Skybinary

    Joined:
    Nov 3, 2009
    Messages:
    4
    Likes Received:
    0
    Location:
    Merseyside
    Wiser/PICED E-Mail Manager fail to send smtp

    I have approached this problem thinking that maybe my mail provider 1and1.co.uk is the problem.

    It seems so simple to copy settings from oneandone's recommendations, I wish I knew what the issue was.

    Yoshi has indicated using GetEMailCount(0); to use pop before smtp, this I will try, it it doesn't work could anybody suggest a mail provider that is compatible with the Wiser unit.

    Some points that need clearing up for me include...

    1. PICED E-Mail Manager has a red legend at the foot of the form reading ...
    1/1 email accounts used, as it is red, should I be concerned?

    2. In Yoshi's example he is using (0) for the email account to use, in the PICED E-Mail Manager the email is numbered (1), should I use (1) instead?
     
    Skybinary, Aug 1, 2012
    #11
  12. Yoshi

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    It is red to draw your attention to the fact that you are not able to add any more. No need to be concerned.

    In logic, the indices for most items start at 0, so Yoshi is correct. The best way to avoid errors is to use tags.
     
    Darren, Aug 2, 2012
    #12
  13. Yoshi

    Skybinary

    Joined:
    Nov 3, 2009
    Messages:
    4
    Likes Received:
    0
    Location:
    Merseyside
    Wiser/PICED E-Mail Manager fail to send smtp

    Thanks for clearing that up Darren.

    I have contacted tech support @schneider-electric, fist by phone, the gentleman was surprised this was an issue, and offered to send me the brochure, I insisted I would prefer tech support, so he offered me an email to send my issue to.

    In the mean-time I have taken Yoshi's explanation of using pop before smtp as red and included that premise in my logic, although I have increased the delay from 1 to 5 as 1 did not work, but with 5 there is still no joy.

    Next I will try my gmail(which I have read does not work, but meh!) and then I will try yahoo, then I will try hotmail.

    I think that will be enough hacky tests, lets see, it is a shame it doesn't work out of the box as I was told and what I told our customer.
     
    Skybinary, Aug 2, 2012
    #13
  14. Yoshi

    Skybinary

    Joined:
    Nov 3, 2009
    Messages:
    4
    Likes Received:
    0
    Location:
    Merseyside
    Wiser/PICED E-Mail Manager fail to send smtp

    Zero support coming from the supplier, tsk tsk tsk.

    I mean they have had over 24 hours.

    I am so disappointed with schneider-electric, they happily quiz me for support, and for free, hey thats how you stay rich.

    Not at all impressed with wiser, I told my manager it is ****, and will not touch it in the future.

    Hopefully it will curl up and die, (bitter much), nah!

    Seeing as the email is a no go, seriously what provider will issue an email without auth?

    I thought I had a brainwave and tried posthttpdata, no, so I tried gethttpdata, err no!

    This is an expensive door wedge, thankfully I will never buy into it.
     
    Skybinary, Aug 2, 2012
    #14
  15. Yoshi

    jboer

    Joined:
    Apr 27, 2012
    Messages:
    458
    Likes Received:
    35
    Location:
    Sydney
    Would you be able to post a screen cap of your email setup from PICED?
     
    jboer, Aug 2, 2012
    #15
  16. Yoshi

    kjayakumar

    Joined:
    Oct 27, 2008
    Messages:
    448
    Likes Received:
    0
    Wiser only supports regular POP3 and SMTP. Gmail/Yahoo/Hotmail require POP3 over TLS and SMTP over TLS. I'm sorry that your experience has been negative. In the e-mail section of C-Bus Help System, it is written:
    "E-Mail can be read using POP3 and sent using SMTP. Only unencrypted accounts can be used.".
    Wiser is an embedded system so it comes with those constraints. It would be nice if Wiser could have supported more e-mail services, but it cannot. If your expectations were set inappropriately high by a supplier/sales, we regret it.
     
    Last edited by a moderator: Aug 3, 2012
    kjayakumar, Aug 3, 2012
    #16
  17. Yoshi

    ditaliano

    Joined:
    Jul 26, 2010
    Messages:
    15
    Likes Received:
    0
    Location:
    Sydney NSW
    Does anyone have any suggestions of email servers/providers that work with wiser?
     
    ditaliano, Aug 3, 2012
    #17
  18. Yoshi

    Yoshi

    Joined:
    Nov 17, 2006
    Messages:
    103
    Likes Received:
    0
    I arranged temporary solution for WISER email notification for my customer.

    1. prepare some email addresses. Gmail and Yahoo mail does not work in WISER.
    2. make a simple Color C-Touch project in PICED and arranged email account in Email Manager.
    3. select a account and press Send Test E-Mail button.
    4. If you can receive test email form PICED, The email account is useful in WISER.
    5. If Outgoing (SMTP) Server Port is 25, You can use it in your WISER project.
    6. If it is a 587, You need to arrange proxy server.
    I prepared Windows XP PC and proxy server software. "Port Forward for TeraStation" is one of free proxy server software.
    If you can read Japanese, You can use it.
    7. If you will arrange WISER and proxy server in same network, Outgoing (SMTP) Server address in E-Mail Manager is proxy server(local Windows PC) address (192.168.***.***) and Port number of it is 25.
    8 You also need to arrange configuration in proxy server software. It convert port number from 25 to 587.
    9. If you will arrange proxy server in different network, You need to get support from network engineer.

    This is a hint. You need to ask network engineer.
    If skilful network engineer check this thread, you will get good assistance.

    Regards,
     
    Yoshi, Aug 5, 2012
    #18
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.