# Problem with web API sending an email

**URL:** <https://community.thunkable.com/t/problem-with-web-api-sending-an-email/2138797>\
**Category:** Questions about Thunkable X\
**Tags:** beginner, webapi\
**Created:** [November 19, 2022, 10:16am UTC](https://community.thunkable.com/t/problem-with-web-api-sending-an-email/2138797 "2022-11-19T10:16:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anastasi.fr6w](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@anastasi.fr6w](https://community.thunkable.com/u/anastasi.fr6w)\
**Post date:** [November 19, 2022, 10:16am UTC](https://community.thunkable.com/t/problem-with-web-api-sending-an-email/2138797/1 "2022-11-19T10:16:46Z")

</div>

hello,  
i tried to look for a solution before to write here but i found only a solution that use Gmail API.  
I need to send an email to “emailuser’s.Text” after clicking Button1, but it doesn’t work.  
I attach my code block, and my Google Script.

Please, could you help me?

Thanks in advance…

 ![code block](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/b/ab98a80ae569fe3f7682483e55537270992c7576.jpeg)  
 ![Google Script](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/5/95caba1c1957b1b31ac6037aee671b2e7d7ccef0.jpeg)

---

<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 19, 2022, 11:40am UTC](https://community.thunkable.com/t/problem-with-web-api-sending-an-email/2138797/2 "2022-11-19T11:40:18Z")

</div>

I would get setup with sendInBlue or sendgrid tbh. They both have attractive free plans.

This is a hard setup to debug. Did you initialize the script?

There’s no purple api POST block here. You need that

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/a/6a456c445a4fc04d82922ae0a7f2219be8decc7e.jpeg)

---

<div class="post-metadata">

**Author:** ![anastasi.fr6w](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@anastasi.fr6w](https://community.thunkable.com/u/anastasi.fr6w)\
**Post date:** [November 19, 2022, 7:26pm UTC](https://community.thunkable.com/t/problem-with-web-api-sending-an-email/2138797/3 "2022-11-19T19:26:48Z")

</div>

Thank you for your reply. If i would use sendinblue how i have to work?  
Can you explain me?  
Thanks

---

<div class="post-metadata">

**Author:** ![anastasi.fr6w](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@anastasi.fr6w](https://community.thunkable.com/u/anastasi.fr6w)\
**Post date:** [November 23, 2022, 5:28pm UTC](https://community.thunkable.com/t/problem-with-web-api-sending-an-email/2138797/4 "2022-11-23T17:28:49Z")

</div>

I found a new solution. I used two google sheet with query, so admin can confirm the registration using a simbol “X”. In this way the record with X can be copied in a new sheet.  
Thanks to all.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [February 21, 2023, 5:29pm UTC](https://community.thunkable.com/t/problem-with-web-api-sending-an-email/2138797/5 "2023-02-21T17:29:44Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
