# \[SOLVED\] Automatically send an email

**URL:** https://community.thunkable.com/t/solved-automatically-send-an-email/1978673
**Category:** Questions about Thunkable X
**Created:** [July 28, 2022, 7:45am UTC](https://community.thunkable.com/t/solved-automatically-send-an-email/1978673 "2022-07-28T07:45:25Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![tanishq](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tanishq/32/124339_2.png) [@tanishq](https://community.thunkable.com/u/tanishq)
#### Post date: [July 28, 2022, 7:45am UTC](https://community.thunkable.com/t/solved-automatically-send-an-email/1978673/1 "2022-07-28T07:45:25Z")

</div>

Hello everyone 😀

I am working in a project where I want a user to get an email with a message in it which is to be sent through me or my app. How can I do that?

Thanks in advance

---

<div class="post-metadata">

### Author: ![ioannisroungeris](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannisroungeris/32/109459_2.png) [@ioannisroungeris](https://community.thunkable.com/u/ioannisroungeris)
#### Post date: [July 28, 2022, 8:17am UTC](https://community.thunkable.com/t/solved-automatically-send-an-email/1978673/2 "2022-07-28T08:17:53Z")

</div>

You can create zapier email automation and connect it with your database

---

<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: [July 28, 2022, 6:31pm UTC](https://community.thunkable.com/t/solved-automatically-send-an-email/1978673/3 "2022-07-28T18:31:06Z")

</div>

You can use the `MailApp` of the `Google Apps Script`.

---

<div class="post-metadata">

### Author: ![tanishq](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tanishq/32/124339_2.png) [@tanishq](https://community.thunkable.com/u/tanishq)
#### Post date: [July 31, 2022, 10:42am UTC](https://community.thunkable.com/t/solved-automatically-send-an-email/1978673/4 "2022-07-31T10:42:42Z")

</div>

@muneer How to use that? is that in the form of an `API` .

---

<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: [July 31, 2022, 11:02am UTC](https://community.thunkable.com/t/solved-automatically-send-an-email/1978673/5 "2022-07-31T11:02:52Z")

</div>

> [@tanishq](#):
>
> How to use that?

Check this post

> [@Sending Emails From Thunkable App | Gmail App](https://community.thunkable.com/t/sending-emails-from-thunkable-app-gmail-app/497195/3):
>
> I got it working! for others to note. If you run the script in googleScript, you will get an error. That is because this is not a standalone script, which is a thing you can do in google script as this allows for trigger actions. But, our trigger action requires inputs via the query parameters and therefore will always produce the error. I’m not sure exactly what the problem was but here is my working codes! Thanks @cttricks

---

<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: [July 31, 2022, 12:40pm UTC](https://community.thunkable.com/t/solved-automatically-send-an-email/1978673/6 "2022-07-31T12:40:27Z")

</div>

At this point, I’d create a web hook in integromat and keep things nocode. I’ll work up an example sometime soon!

But yes, my most recently published app uses this method to send emails.

---

<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: [July 31, 2022, 1:56pm UTC](https://community.thunkable.com/t/solved-automatically-send-an-email/1978673/7 "2022-07-31T13:56:32Z")

</div>

> [@jared](#):
>
> integromat

It has been rebranded as **Make**.

---

<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: [July 31, 2022, 2:08pm UTC](https://community.thunkable.com/t/solved-automatically-send-an-email/1978673/8 "2022-07-31T14:08:39Z")

</div>

> [@muneer](#):
>
> It has been rebranded as **Make**.

I always forget that. You’d think I’d know that by now considering I pay for and use the them monthly! Haha

[https://www.make.com/en](https://www.make.com/en)

---

<div class="post-metadata">

### Author: ![zander](https://avatars.discourse-cdn.com/v4/letter/z/ecb155/32.png) [@zander](https://community.thunkable.com/u/zander)
#### Post date: [August 1, 2022, 4:42pm UTC](https://community.thunkable.com/t/solved-automatically-send-an-email/1978673/9 "2022-08-01T16:42:49Z")

</div>

@Jared_Gibb do you think Make is better than Sendgrid/Twillio? Or do they accomplish different things?

---

<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: [August 1, 2022, 6:34pm UTC](https://community.thunkable.com/t/solved-automatically-send-an-email/1978673/10 "2022-08-01T18:34:25Z")

</div>

I like Make because it’s what I’m familiar with and it’s cheap.

The next thing I’d go to is SendIn Blue .

For my own projects, i like to buy a gsuite domain name and get an email address. 6/month  
then i can send apps from my appscript and so they come from [admin@appname.com](mailto:admin@appname.com). you can send something like 20k emails per day but it takes some coding and setup, so def not nocode

---

<div class="post-metadata">

### Author: ![tanishq](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tanishq/32/124339_2.png) [@tanishq](https://community.thunkable.com/u/tanishq)
#### Post date: [August 2, 2022, 7:02am UTC](https://community.thunkable.com/t/solved-automatically-send-an-email/1978673/11 "2022-08-02T07:02:12Z")

</div>

Is this the correct `script` I’m suppose to use in my app?

```auto
function doPost(e){
  var recipient = e.parameters.recipient;

  var subject = e.parameters.subject;

  var body = e.parameters.body;

  MailApp.sendEmail(recipient,subject,body);

}

```

---

<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: [August 2, 2022, 2:17pm UTC](https://community.thunkable.com/t/solved-automatically-send-an-email/1978673/12 "2022-08-02T14:17:51Z")

</div>

The latest from Google, `parameters` returns a list while `parameter` returns a single variable. You need to check both.

---

<div class="post-metadata">

### Author: ![tanishq](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tanishq/32/124339_2.png) [@tanishq](https://community.thunkable.com/u/tanishq)
#### Post date: [August 3, 2022, 8:00am UTC](https://community.thunkable.com/t/solved-automatically-send-an-email/1978673/13 "2022-08-03T08:00:30Z")

</div>

I tried my script with thunkable although I get no errors, I don’t get any mail  
What should I do?  
This what I have done in thunkable

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/f/1f4b44dd77c74fd3d59b3a3aa2ef8ba3272dd459.png)

---

<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: [August 4, 2022, 6:27pm UTC](https://community.thunkable.com/t/solved-automatically-send-an-email/1978673/14 "2022-08-04T18:27:09Z")

</div>

Try using a **single word only** for `subject` and `message` and see if it works.

---

<div class="post-metadata">

### Author: ![tanishq](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tanishq/32/124339_2.png) [@tanishq](https://community.thunkable.com/u/tanishq)
#### Post date: [August 6, 2022, 6:02am UTC](https://community.thunkable.com/t/solved-automatically-send-an-email/1978673/15 "2022-08-06T06:02:47Z")

</div>

I got it working. The problem was my `api url` it was incorrect and when I redeployed my script with a new `web app url` ;  
It worked as expected. Thanks @muneer! 😀

---

<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: [November 4, 2022, 6:03am UTC](https://community.thunkable.com/t/solved-automatically-send-an-email/1978673/16 "2022-11-04T06:03:11Z")

</div>

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