This is a migrated thread and some comments may be shown as answers.

Form to Email

1 Answer 58 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
John
Top achievements
Rank 1
John asked on 15 Mar 2016, 02:01 PM

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?

1 Answer, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 18 Mar 2016, 11:12 AM
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.

Regards,
Kaloyan
Telerik
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
Tags
General Discussions
Asked by
John
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Share this question
or