# Sending Emails From Thunkable App | Gmail App

**URL:** <https://community.thunkable.com/t/sending-emails-from-thunkable-app-gmail-app/497195>\
**Category:** Questions about Thunkable X\
**Created:** [March 4, 2020, 5:57am UTC](https://community.thunkable.com/t/sending-emails-from-thunkable-app-gmail-app/497195 "2020-03-04T05:57:57Z")\
**Posts on this page:** 20\
**Page:** 4

<div class="post-metadata">

**Author:** ![suhani.ban.0810i](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@suhani.ban.0810i](https://community.thunkable.com/u/suhani.ban.0810i)\
**Post date:** [April 13, 2021, 5:24pm UTC](https://community.thunkable.com/t/sending-emails-from-thunkable-app-gmail-app/497195/63 "2021-04-13T17:24:22Z")

</div>

There is an easier way. You don’t need apps script to do this. All you need is a share component.

![Screen Shot 2021-04-13 at 10.16.58 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/8/f8dde2d17a6a932426f7c1e1da16deedf5b55065.png)

This is all you need to do for the blocks.  
 ![Screen Shot 2021-04-13 at 10.18.27 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/a/4ab18be8dba56680028b59c5752c235dde262731.png)

---

<div class="post-metadata">

**Author:** ![tchind](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@tchind](https://community.thunkable.com/u/tchind)\
**Post date:** [April 16, 2021, 3:36am UTC](https://community.thunkable.com/t/sending-emails-from-thunkable-app-gmail-app/497195/64 "2021-04-16T03:36:21Z")

</div>

That Will popup for the user to send, not to send automatically from our email ids.

---

<div class="post-metadata">

**Author:** ![codeemaker](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeemaker/32/101762_2.png) [@codeemaker](https://community.thunkable.com/u/codeemaker)\
**Post date:** [April 16, 2021, 6:41am UTC](https://community.thunkable.com/t/sending-emails-from-thunkable-app-gmail-app/497195/65 "2021-04-16T06:41:04Z")

</div>

Please send me the link I am not getting a thing

---

<div class="post-metadata">

**Author:** ![luv.ak.tech](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/luv.ak.tech/32/104896_2.png) [@luv.ak.tech](https://community.thunkable.com/u/luv.ak.tech)\
**Post date:** [April 16, 2021, 6:42am UTC](https://community.thunkable.com/t/sending-emails-from-thunkable-app-gmail-app/497195/66 "2021-04-16T06:42:08Z")

</div>

always asking for project will not make you learn what you are not understanding ask here we are here to help you but not to do your work

---

<div class="post-metadata">

**Author:** ![tchind](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@tchind](https://community.thunkable.com/u/tchind)\
**Post date:** [April 16, 2021, 8:19am UTC](https://community.thunkable.com/t/sending-emails-from-thunkable-app-gmail-app/497195/67 "2021-04-16T08:19:57Z")

</div>

for me none of this works:  
Better Way(which i am using).

Save data in airtable

Link it with [zapier.com](http://zapier.com)

Trigger Event: A New Airtable Record  
Action: Gmail Mail

Also, Pls refer to -

> **[Send Gmail messages for new Airtable records in views](https://zapier.com/apps/airtable/integrations/gmail/3459/send-gmail-messages-for-new-airtable-records-in-views)**
>
> Some of your Airtable bases may be extra important or time sensitive, and you

[![](https://img.youtube.com/vi/fhdadPMOb_A/maxresdefault.jpg "Send Email from Airtable using Zapier") ](https://www.youtube.com/watch?v=fhdadPMOb_A)

Everything will work.

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [April 16, 2021, 9:12am UTC](https://community.thunkable.com/t/sending-emails-from-thunkable-app-gmail-app/497195/68 "2021-04-16T09:12:16Z")

</div>

This is a great resource @tchind, thanks for sharing!

---

<div class="post-metadata">

**Author:** ![martint](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/martint/32/96689_2.png) [@martint](https://community.thunkable.com/u/martint)\
**Post date:** [April 16, 2021, 11:04am UTC](https://community.thunkable.com/t/sending-emails-from-thunkable-app-gmail-app/497195/69 "2021-04-16T11:04:11Z")

</div>

Hi, I use airtable for sending emails but without Zapier,

> [@Sending email from the mobile app to your outlook email](https://community.thunkable.com/t/sending-email-from-the-mobile-app-to-your-outlook-email/1117722/5):
>
> Hi, I notice in one of your other posts you are using Airtable. Configure the form to send the info to airtable, then in airtable in Automations you can tell airtable to send you an email everytime a record is created. I have it working in one of my apps, works great.

---

<div class="post-metadata">

**Author:** ![awesome\_coder](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@awesome\_coder](https://community.thunkable.com/u/awesome_coder)\
**Post date:** [June 8, 2021, 3:22am UTC](https://community.thunkable.com/t/sending-emails-from-thunkable-app-gmail-app/497195/70 "2021-06-08T03:22:08Z")

</div>

Everyone! I found a way to fix this problem.  
Switch to the legacy editor in Google Apps Script and  
try the code again.  
It should work this way…

---

<div class="post-metadata">

**Author:** ![tchind](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@tchind](https://community.thunkable.com/u/tchind)\
**Post date:** [June 8, 2021, 8:14am UTC](https://community.thunkable.com/t/sending-emails-from-thunkable-app-gmail-app/497195/71 "2021-06-08T08:14:20Z")

</div>

I guess you use Airtable Automations,

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [June 8, 2021, 12:16pm UTC](https://community.thunkable.com/t/sending-emails-from-thunkable-app-gmail-app/497195/72 "2021-06-08T12:16:35Z")

</div>

You shouldn’t have to use the legacy editor. I set this up recently for a project and don’t think I had to revert to complete.

Either way, it’s the best option and you can send something like 20,000 free emails a day and they can be HTML formatted so they look beautiful!

---

<div class="post-metadata">

**Author:** ![awesome\_coder](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@awesome\_coder](https://community.thunkable.com/u/awesome_coder)\
**Post date:** [June 10, 2021, 12:31pm UTC](https://community.thunkable.com/t/sending-emails-from-thunkable-app-gmail-app/497195/73 "2021-06-10T12:31:21Z")

</div>

Noted

---

<div class="post-metadata">

**Author:** ![ealalin13s68](https://avatars.discourse-cdn.com/v4/letter/e/e5b9ba/32.png) [@ealalin13s68](https://community.thunkable.com/u/ealalin13s68)\
**Post date:** [November 13, 2021, 8:38pm UTC](https://community.thunkable.com/t/sending-emails-from-thunkable-app-gmail-app/497195/74 "2021-11-13T20:38:41Z")

</div>

hello , I know this discussion has been already open a time ago .I want to be abble from thunkable to send email I use the information’s to I get here  
My thunkable block is

 ![Thunkable Blocks 2021-11-13](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/4/b4b1d19f204d16e272cf3a7ba447363927921cfa.png)

The script in [https://script.google.com](https://script.google.com)

 ![Script_google_com 2021-11-13](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/b/8b0051efd8a41e13e94e51e8c27c9ba0808071a5.png)  
But I still get the following error  
 ![Error Received 2021-11-13](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/e/8e4cf5c0a95bf4b760bd367b3964a6bcd598e3ac.png)  
I have try to receive more details about this error !!! it seams that the script is not able to read the var recipient = e.parameters.recipient; Is there anyone who would have an Idea to solve this problem ?

Another question it seams that this script is only working inside Gmail , is there other possibility to extent to all the others email provider ?

Thankx in advance

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [November 13, 2021, 9:51pm UTC](https://community.thunkable.com/t/sending-emails-from-thunkable-app-gmail-app/497195/75 "2021-11-13T21:51:37Z")

</div>

“Please test on a device” means that you need to test this on a mobile device using Thunkable Live or as a downloaded app.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [November 13, 2021, 11:46pm UTC](https://community.thunkable.com/t/sending-emails-from-thunkable-app-gmail-app/497195/76 "2021-11-13T23:46:31Z")

</div>

Be aware also, the app script will not return a response. It will err or not return a response.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [November 14, 2021, 4:23am UTC](https://community.thunkable.com/t/sending-emails-from-thunkable-app-gmail-app/497195/77 "2021-11-14T04:23:27Z")

</div>

When you run it from your mobile device and you see it working, you will also need to remove the quotes around `body` from the last line in Google Apps Script.

---

<div class="post-metadata">

**Author:** ![ealalin13s68](https://avatars.discourse-cdn.com/v4/letter/e/e5b9ba/32.png) [@ealalin13s68](https://community.thunkable.com/u/ealalin13s68)\
**Post date:** [November 14, 2021, 2:11pm UTC](https://community.thunkable.com/t/sending-emails-from-thunkable-app-gmail-app/497195/78 "2021-11-14T14:11:02Z")

</div>

Muneer :the quotes around body are already removed (it was done for a test purpose), on IOS device I receive Undefined and Android also .The email (in this example [ealalin1@gmail.com](mailto:ealalin1@gmail.com)) is not send.  
I m still working on it .  
Jared : The script return a Status code ( 200 if it’s successful completed) correct ?  
I will try in state of reading the error ,I will read the status received on the Thunkable post.  
Do you know what is the difference between :  
// GmailApp.sendEmail(recipient,subject,body); and  
MailApp.sendEmail(recipient,subject,body);  
It seams that the parameters passed from thunkable (after making the “queryParameters” with the fields “recipient”," subject"and “body” are not reconized by the google script .

 ![Thunkable Blocks 2021-11-13](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/4/b4b1d19f204d16e272cf3a7ba447363927921cfa.png)  
I will further debug on it and I will let you know . At any case I am pleasantly surprised by the quality of your support ,I thank you all

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [November 14, 2021, 2:31pm UTC](https://community.thunkable.com/t/sending-emails-from-thunkable-app-gmail-app/497195/79 "2021-11-14T14:31:21Z")

</div>

This is from Google Developers Site

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/5/65e19213843cfd3c6ab130d79134039c515119d8.png)

> **[Class MailApp  |  Apps Script  |  Google for Developers](https://developers.google.com/apps-script/reference/mail/mail-app?hl=vi)**

> [@ealalin13s68](#):
>
> The script return a Status code ( 200 if it’s successful completed) correct ?

According to my understanding. It would not return anything.

---

<div class="post-metadata">

**Author:** ![ealalin13s68](https://avatars.discourse-cdn.com/v4/letter/e/e5b9ba/32.png) [@ealalin13s68](https://community.thunkable.com/u/ealalin13s68)\
**Post date:** [November 14, 2021, 3:38pm UTC](https://community.thunkable.com/t/sending-emails-from-thunkable-app-gmail-app/497195/81 "2021-11-14T15:38:25Z")

</div>

I have a return Status from 401  
 ![ReturnCode into Thunkable 2021-11-14](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/d/bda3e3a64ed79c4e19d3d63afa34ed5d0a3900b0.png)

 ![return Status in Thunkable 2021-11-14](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/8/b8372f6acdba47d8093299c275c340c78d7818b1.png)  
I m looking forward , i keep you posted .  
best regards

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [November 14, 2021, 3:58pm UTC](https://community.thunkable.com/t/sending-emails-from-thunkable-app-gmail-app/497195/82 "2021-11-14T15:58:12Z")

</div>

Yes, 401 will come up of course. This is a server authorization / authentication error.

---

<div class="post-metadata">

**Author:** ![ealalin13s68](https://avatars.discourse-cdn.com/v4/letter/e/e5b9ba/32.png) [@ealalin13s68](https://community.thunkable.com/u/ealalin13s68)\
**Post date:** [November 15, 2021, 1:59pm UTC](https://community.thunkable.com/t/sending-emails-from-thunkable-app-gmail-app/497195/83 "2021-11-15T13:59:22Z")

</div>

Like has suggested before shu

 ![Share1 2021-11-15](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/a/0a71da137d52cb3a9ba145ba5b64f5b477fb8deb.png)  
ani.ban is much more easy to use the Share1 option  
it work directly , the only problem is that you have to send the mail manually ![Send the email from Thunkable 2021-11-15](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/a/0a0bd7fac9398606134d601c39d0308690e94e67.png)  
Is it not a way to send the email automatically ?

[Previous page](https://community.thunkable.com/t/sending-emails-from-thunkable-app-gmail-app/497195.md?page=3)

[Next page](https://community.thunkable.com/t/sending-emails-from-thunkable-app-gmail-app/497195.md?page=5)
