Form to Email

Thread is closed for posting
2 posts, 0 answers
  1. John
    John avatar
    1 posts
    Member since:
    Oct 2015

    Posted 15 Mar 2016 Link to this post

    Hi there,

    Is there an example or information on how to use the Platform/AppBuilder to collate form data and then email this information?

    We have a requirement that a user will complete a form and then we need that data emailed back to us.

    Can someone point us in the right direction?

  2. Kaloyan
    Kaloyan avatar
    880 posts

    Posted 18 Mar 2016 Link to this post

    Hi John,

    Thank you for contacting us about this. As I can understand, you would like to send an email to your account programmatically from the hybrid application, without a consent of the user. In other words, once a form is complete, you would like to gather all the details and email them automatically. Please correct me if I have misunderstood you.

    If this is indeed the case, I am afraid that the existing mobile operating systems won't allow sending an email from the user's account without him reviewing it and hitting the send button. However, what you can do in order to workaround this is to send the gathered in the form data to a 3rd party service which will send an email to the required parties on its behalf instead.

    The good news is that, Telerik Platform provides a straight forward way of doing this in Backend Services. Using the Email Notifications feature there, you can easily send requests to our server and use predefined templates for firing up emails for them. You can also use the Cloud Code functionality for this.

    To test this, I strongly recommend following the steps from this article, as it clearly explains everything from setting up the Email Notifications feature on your side, preparing the email templates and then using the Cloud Code for sending the composed emails. Further, you will only need to call the Cloud Code with the form details from your application in order to send the email.

    Additionally, if using our Backend Services in not an option for you or the scenario allows user consent in the hybrid application, you can check the EmailComposer Verified plugin. It provides a straight forward integration between Cordova applications and native Mail apps. You can check the sample code by clicking on the Try plugin in AppBuilder button at the top of the page.

    I hope this helps.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top