# Send Mail Status 401

**URL:** https://community.thunkable.com/t/send-mail-status-401/1603499
**Category:** Questions about Thunkable X
**Created:** [November 8, 2021, 11:55am UTC](https://community.thunkable.com/t/send-mail-status-401/1603499 "2021-11-08T11:55:54Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![dimaurosalvo19717s1y](https://avatars.discourse-cdn.com/v4/letter/d/a87d85/32.png) [@dimaurosalvo19717s1y](https://community.thunkable.com/u/dimaurosalvo19717s1y)
#### Post date: [November 8, 2021, 11:55am UTC](https://community.thunkable.com/t/send-mail-status-401/1603499/1 "2021-11-08T11:55:54Z")

</div>

Hello  
i tried to use this script from Ct Tricks

[https://cttricks.com/2021/04/14/gmail-app-in-thunkable-x/](https://cttricks.com/2021/04/14/gmail-app-in-thunkable-x/)

but fails to send any mail, returning the code 401, and not 200 as described in the guide  
I have granted permissions to the google account for sending emails

am I doing something wrong?

 ![Email](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/0/105c2e9b5d2ac245d4f466f0506d22f51aadaeb0.jpeg)  
 ![Email2](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/8/082e4057b0766bb4f3c4e6b6789d0d18fbc17cf2.jpeg)

---

<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 8, 2021, 12:34pm UTC](https://community.thunkable.com/t/send-mail-status-401/1603499/2 "2021-11-08T12:34:41Z")

</div>

When you **deployed** the `Google Apps Script`, did you choose the type as `Web app` and the access to **Anyone**?

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/3/2324ed7560a9fdfe44ccaf518b9a15587fe5ce14.png)

You have to choose this option to work from the `Web API`.

---

<div class="post-metadata">

### Author: ![dimaurosalvo19717s1y](https://avatars.discourse-cdn.com/v4/letter/d/a87d85/32.png) [@dimaurosalvo19717s1y](https://community.thunkable.com/u/dimaurosalvo19717s1y)
#### Post date: [November 8, 2021, 1:26pm UTC](https://community.thunkable.com/t/send-mail-status-401/1603499/3 "2021-11-08T13:26:47Z")

</div>

I had also done this test.  
I have done everything again and now by changing this parameter, it works !!!  
can e-mails other than Gmail also be used?  
is it possible to change the sending email?

---

<div class="post-metadata">

### Author: ![dimaurosalvo19717s1y](https://avatars.discourse-cdn.com/v4/letter/d/a87d85/32.png) [@dimaurosalvo19717s1y](https://community.thunkable.com/u/dimaurosalvo19717s1y)
#### Post date: [December 4, 2021, 6:34pm UTC](https://community.thunkable.com/t/send-mail-status-401/1603499/4 "2021-12-04T18:34:23Z")

</div>

Hi  
@muneer

how can i send 2 mails at the same time, with the blocks arranged like in the picture I posted it is not working!!!

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/b/4b54ca09dcf54f877dd46e3c7a28bfbb48eb9c62.png)

I can only make it works by adding both mails in the app script

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/8/886357964511831ef1dfd8c17cae30dbd47032bb.png)

Can you suggest any solution?

---

<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: [December 6, 2021, 4:30pm UTC](https://community.thunkable.com/t/send-mail-status-401/1603499/5 "2021-12-06T16:30:58Z")

</div>

Do you want to send two emails, each to a different recipient or do you want to send one email to more than one recipient?

The image you’ve shown is for a single email sent to two recipients.

---

<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: [December 6, 2021, 5:22pm UTC](https://community.thunkable.com/t/send-mail-status-401/1603499/6 "2021-12-06T17:22:32Z")

</div>

I think you need to use a comma ( , ) instead of a semi-colon ( ; ) to separate addresses.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/4/54f6ec353dfb9b19075eadf9683641c57028a2eb.png)

(Source: [Class GmailApp &nbsp;|&nbsp; Apps Script &nbsp;|&nbsp; Google Developers](https://developers.google.com/apps-script/reference/gmail/gmail-app#parameters_44))

---

<div class="post-metadata">

### Author: ![dimaurosalvo19717s1y](https://avatars.discourse-cdn.com/v4/letter/d/a87d85/32.png) [@dimaurosalvo19717s1y](https://community.thunkable.com/u/dimaurosalvo19717s1y)
#### Post date: [December 6, 2021, 10:06pm UTC](https://community.thunkable.com/t/send-mail-status-401/1603499/7 "2021-12-06T22:06:39Z")

</div>

using comma ( , ) works, thanks!!!

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 1:14pm UTC](https://community.thunkable.com/t/send-mail-status-401/1603499/8 "2024-11-08T13:14:28Z")

</div>


