Send emails from your gmail right from thunkable-X apps
Hello everyone today i have made a new project/app in thunkable-X which allows you to send emails from gmail address from thunkable-X apps using Google APP SCRIPT. You can also use this method to verify your users by creating an email OTP verification system on your app. If you want to know the complete process with step-by-step explanation click here to read the complete blog. Else here is some screenshot and shot description to understand, How you can do that too…
I have created this simple design with
- 3 input text-boxes to get the Recipient_Email, Subject & Message/Body.
- 1 button to trigger the action
- 1 API Component to submit the form
- 1 Notifier to show the success/error message
- 3 Labels Just to show some additional information on screen
Now on Google App Script i have created a new project by clicking on the + New project button at the top left corner of the webpage. ( It’ll take you to a new tab ) Here i have created one with title Gmail_APP as you can see in the below image.
Click here to get the Code
Now click on Publish > Deploy as web app a popup window will be open on your screen. Here Now you have to set Project Version : New, Execute the app as: Me (Your_email_address) & Who has access to the app : Anyone, even anonymous. and then click on Deploy it’ll as for permissions simply grant those.
After successful deployment action url be like
Copy this API/Script url.
Drag-n-Drop other compoennts to the block area as shown in the image above. Also make sure to put the API/Script URL in the Gamil_API components Set URL block, And Parameters such as recipient, subject & body to the queryparameters block of the Gmail_API component as shown in the image.
you can use this same method to verify your app users email address by using OTP verification method. I.e sendinga n OTP to your userd email and ask them to verify on your app. If you have any query or suggestion feel free to ask me.
Also hit the button if you found this useful.