跳到主内容

Send email

评论

21 条评论

  • jseanor

    @iw3bti1

    It is not currently possible to send an email from a PC using our relay. The Talk2M relay is solely designed for eWON devices.

    You could allow all internet access through the eWON, although this is less secure. In that way you could send an email via any service.

     

    0
  • iw3bti1

    hi Jordan, thank you for your answer!
    so my question is: i need to send an email with an attachment.

    so i can send email from the ewon and retreive the file from a shared folder on the pc connected to the lan side of the ewon?

    or, what is the best way to send a file via email using ewon?

    0
  • jseanor

    Hi @iw3bti1

    The easiest way would be to have the file live inside of the /usr directory in the eWON. You can automate this by doing a GETFTP from the eWON on an interval or have that PC push it to the eWON.

    After doing that you can simply use an export block descriptor to attach the file to the email.

    Via Script:

    
    f$ = "Data.xlsx" REM This is the filename in the /usr directory
    e$ = "myemail@gmail.com" REM This is the email to send to
    c$ = "cc@cc.com" REM This is the CC field, comma separated
    s$ = "The email subject" REM this is the subject for the email.
    d$ = "&[$dtUF$uf" + f$ + "]" REM This is an export block descriptor that says to retrieve the user file labeled the value in f$. 
    
    SENDMAIL e$, c$, s$, d$
    
    

    That's it for the scripting version! You can replicate this in a scheduled task as well.

     

    Scheduled Task:


    This is how you can set up the planner to send the same file.

     

    planner
    planner1919Ã891 115 KB

     

     

    0
  • iw3bti1

    thank you for the answer,
    so i can use an ONCHANGE event of a tag to call the script, on my hmi panel i write some code to push the file via ftp on the ewon, then the hmi change the value ot the tag and ewon run the script !

    there are ewon/talk2m limits of the size of the file to send?

    0
  • jseanor

    @iw3bti1

    That is correct!

    I think the file size limit that I came across was around 50 Mb. Anything bigger than that was rejected by the server.

     

    0
  • iw3bti1

    and there is a traffic limit per month on the relay server?

    0
  • jseanor

    There is not a limit at this time.

    0
  • iw3bti1

    perfect!

    0
  • iw3bti1

    hi jseanor,
    i'm trying to send an email with attachments using your script example but i have some troubles:

    if i use the script exactly how you have write it, in the Scheduled Actions i see the SendMail with success status, but in my email i don't have any message;
    if i leave blank the d$ variable, i receive the email from ewon

    i have some questions:
    1)in the f$ variable i need to concatenate the "/usr/" path before the filename in your example?
    2)if i want to send a file stored in the sdCard is sufficient to change the path to "/usr/sdext" ?

    0
  • Tim Beaulieu

    if you enter it like this you should be able to pull files from the sd card for the email

    $uf/usr/sdext/integer.csv

    0
  • iw3bti1

    sorry but i can't send email with attachment;
    without "&[$dtUF$uf" + f$ + "]" the email start and arrive to my account

    with "&[$dtUF$uf" + f$ + "]" and f$ = "\usr\1.zip" the email don't arrive:

    0
  • iw3bti1

    sorry , a typing mistake in the f$, in my script is:
    f$ = "/usr/1.zip"

    0
  • iw3bti1

    another element to add:
    if i use the ebd helper https://ewonsupport.biz/ebd/ and test it on my ewon, the file is correctly saved from my browser

    0
  • Tim Beaulieu

    i think I just got it working, try this

    e$ = "JohnSmith@email.com" REM This is the email to send to
    c$ = "cc@cc.com" REM This is the CC field, comma separated
    s$ = "The email subject" REM this is the subject for the email.
    d$ = "&[$dtUF$uf/usr/sdext/CustumInstValues.txt$ftT]" REM This is an export block descriptor that says to retrieve the user file labeled the value in f$.
    // d$ = ""
    SENDMAIL e$, c$, s$, d$

    0
  • iw3bti1

    there are no difference , the email don't arrive:

    if you want i can send you the talk2m credential for my account and try yourself on my flexy ok?

    0
  • Tim Beaulieu

    That works, or is there a number I can call you at to try and debug this?

    0
  • iw3bti1

    now i'm at home, tomorrow i create an user for you on my t2m account, so you can do all the test for debugging my issue

    0
  • Tim Beaulieu

    Ok sounds good, let me know when you're available tomorrow to look at this with me

    0
  • iw3bti1

    Ok , from 8am to 15pm CET

    0
  • Tim Beaulieu

    Hello,

    We're in the EST timezone in the states so it looks like we'd only be able to connect from 14-15PM CET

    It may be easier if you contact your distributor for this, but if You'd prefer I can talk with you around 14PM CET tomorrow

    0
  • iw3bti1

    ok Tim i prefer to finish this analisys with you; via PM you can see the details to log in

    0

请先登录再写评论。