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

Send email to a specific email address


Question

Posted

Hi

Can anyoine assist a little bit please. Is there any way, i can send an email to a specific email address? / so not to a user's email, but to a random email address?

I couldn find any option for this. 

8 answers to this question

Recommended Posts

  • 0
Posted

I think this is not possible. You have to program mail over HTTP (via Gmail API) for example. The downside is that you have to store the auth tokens in variables and that can be a protentional security risk.

 

In my test lab I have the Google API with oAuth working, I can write data to a Google Sheet for example, but I don't have the time to make it user friendly and put it on the web. But that indicates that it is possible with Google.

 

This is one way, but native on the HC3 is for now a no go as I know.

  • 0
Posted

You could set up a new HC3 user with a Gmail address. Then go into the Gmail mailbox and setup email forwarding to your random address?

  • 0
Posted

@Neo AnderssonHi, for this you can create an offline user. Lock below. Here you can put in any mail adresse. Than use it in the hc for mail messages.

Please login or register to see this attachment.

  • 0
  • Inquirer
  • Posted
    11 hours ago, Fabir said:

    @Neo AnderssonHi, for this you can create an offline user. Lock below. Here you can put in any mail adresse. Than use it in the hc for mail messages.

    Please login or register to see this attachment.

    Thanks, but i this leads to the same sutiation. I was looking for a solution where i can give the email address in my LUA code, to send an email to, and not the user ID. This way we need to give the user ID in block scenes or LUA scripts and not the email address. Thanks anyway

    • 0
    Posted (edited)

    Got another idea. If your provider still supports SMTP mail over port 25 you can create a socket application that sends the RAW mail commands. I tested this and it works! 

    Please login or register to see this attachment.

     

    Please login or register to see this image.

    /monthly_2023_02/image.png.54b6fff6111bde6636009639acaaba4f.png" />

     

    My code is ugly now, when I have time I create a mailer QA. 

    Edited by Joep
    Remove e-mail from image.
    • 0
  • Inquirer
  • Posted

    Please tag me, if you will have time for that QA..THanks

    • 0
    Posted

    @Neo Anderssonno problem, I need it myself too. I hope to create a starting version asap. If you have Discord PM me your id to keep you posted.

    • Like 1
    • 0
  • Inquirer
  • Posted
    5 minutes ago, Joep said:

    @Neo Anderssonno problem, I need it myself too. I hope to create a starting version asap. If you have Discord PM me your id to keep you posted.

    I dont have Discord. I will find it here. Thanks

    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...