Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Forums

OverviewFelgo 2 Support (Qt 5) › SMTP/automical emails sent on event trigger?

Tagged: , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #21409

    Edward

    I am looking to send automated emails from to user-admin within my app when certain events are triggered,

    I.e: user makes a request, admin approves/declines request

    I have looked at the push notification plugins, but with my use-case this isn’t particularly ideal, as i would like a paper trail for users in case anything needs to be referenced in the future.

    Is there anything in felgo i can use for smtp emails? My app uses firebase, but i dont think i can work with firebase functions in felgo at the moment so would need to keep it in-app??

    #21417

    Günther
    Felgo Team

    Hi Edward,

    there’s no Felgo Plugin that handles SMTP / email at the moment. For such use-cases, the most common way is a backend-server for your mobile application, which can handle the email sending among other things then.

    Communication between client and server is most easy using a REST API: https://felgo.com/doc/apps-howto-access-rest-service/

     

    It is not possible directly use SMTP from your Qt Quick Application. However, you can integrate a C++ SMTP library, e.g.:

    You can then also expose your C++ function for email sending to QML as described here: https://felgo.com/cross-platform-development/how-to-expose-a-qt-cpp-class-with-signals-and-slots-to-qml

     

    Alternatively, you can have a look on developer-oriented email services like mailgun: https://www.mailgun.com/ (quickly found via Google)

    Best,
    Günther from Felgo

     

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.