Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Email with Virtual device


Question

Guest ygh
Posted

Hi,

I am using the v1.046 version and there is no email functionality.

I would like to define a virtual device with a button to send an email:

- format is fixed

- address is fixed

- content is fixed

- no attachment

-> very basic

I was thinking about an HTTP query or some CGI query - Any suggestion, please

Regards,

YG

My HC2 blog is at www.ghafoor.org

Recommended Posts

  • 0
Guest ygh
  • Inquirer
  • Posted

    Any suggestion, please ?

    YG

    • 0
    Guest skyhooper
  • Inquirer
  • Posted

    Hi,

    Try this

    Please login or register to see this link.

    Good luck

    • 0
    Guest ygh
  • Inquirer
  • Posted

    Thanks - Looks interesting.

    I will test this service - at least the free trial.

    YG

    My HC2 blog is at www.ghafoor.org

    • 0
    Posted
    My HC2 blog is at www.ghafoor.org

    If you have a hosting, why not use a script? This is how I do with my home server

    Please login or register to see this image.

    /emoticons/default_icon_wink.gif" alt=";-)" />

    • 0
    Guest ygh
  • Inquirer
  • Posted

    Hi Krikroff,

    I do have a hosting.

    Can you detail how you can define & call the script from the HC2, please

    Thanks

    YG

    • 0
    Posted

    I would imagine that Kirkoff would suggest a form2mail.pl kind of solution? Which there are a lot of links for on google. Thats only if you are in a rush, otherwise .... lets see what Kirkoff's solution

    • 0
    Guest ygh
  • Inquirer
  • Posted

    The objective is to send the mail through a button in a virtual device.

    • 0
    Posted

    I use a simple web page written in C# (IHttpHandler class) that sends different type of messages and called with http requests like this:

    -Defined notification that use prepared message and called by preset number reference:

    Please login or register to see this code.

    or

    -Custom notification with subject and message body

    Please login or register to see this code.

    or

    -Default notification

    Please login or register to see this code.

    But your web server is most certainly in PHP, there are hundreds of php script "ready to use" ... you can easily find one of these script on the web.

    Example: create Virtual device button with code :

    Please login or register to see this code.

    If do not work, try

    Please login or register to see this code.

    with IP and PORT in Main virtual device settings.

    Good luck

    • 0
    Guest ygh
  • Inquirer
  • Posted

    Hi Krikroff,

    Your support is always great and so accurate !

    I will try to find some PHP script with your last example for a virtual device button.

    Not sure to succeed as this is getting very technical, but I will try !

    Regards,

    YG

    • 0
    Guest sztywniak
  • Inquirer
  • Posted

    PHP script : change [email protected]

    Please login or register to see this code.

    Virtual scene code :

    Please login or register to see this code.

    • 0
    Posted
    Your support is always great and so accurate !

    Please login or register to see this image.

    /emoticons/default_icon_wink.gif" alt=";-)" /> If I can help it is with pleasure ...

    Not sure to succeed as this is getting very technical, but I will try !

    Just invest a little bit and it's good !

    Goog luck

    Please login or register to see this image.

    /emoticons/default_icon_smile.gif" alt=":-)" />

    • 0
    Guest ygh
  • Inquirer
  • Posted

    Thanks !

    A very silly question: where should I put the file with the PHP code...

    • 0
    Guest sztywniak
  • Inquirer
  • Posted

    to your hosting server

    • 0
    Posted

    You need put this file to the root of your web server.

    For example:

    Please login or register to see this code.

    OR

    Please login or register to see this code.

    Please login or register to see this image.

    /emoticons/default_icon_mrgreen.gif" alt=":mrgreen:" />

    • 0
    Guest ygh
  • Inquirer
  • Posted

    Done !

    This will extend the v1.046 capabilities with basic email management.

    I will do some testing this week-end.

    Thanks to All !

    • 0
    Guest sztywniak
  • Inquirer
  • Posted

    IF you haven't hosting server then send me your @mail to PM

    • 0
    Posted
    The objective is to send the mail through a button in a virtual device.

    Yes, thats what I was was responding to. You got a more complete example now, I was just bridging the gap

    Please login or register to see this image.

    /emoticons/default_icon_biggrin.gif" alt=":-D" />

    • 0
    Posted

    excellent thread!

    • 0
    Guest ygh
  • Inquirer
  • Posted

    Yes - Thanks

    Please login or register to see this image.

    /emoticons/default_icon_wink.gif" alt=";-)" />

    • 0
    Posted

    However, I cannot get this to work

    Please login or register to see this image.

    /emoticons/default_sad.png" alt=":(" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...