# Send email to nearby users

**URL:** <https://community.glideapps.com/t/send-email-to-nearby-users/60036>\
**Category:** Ask for Help\
**Created:** [April 2, 2023, 3:44pm UTC](https://community.glideapps.com/t/send-email-to-nearby-users/60036 "2023-04-02T15:44:01Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Orsolya\_Faludi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/orsolya_faludi/32/54659_2.png) [@Orsolya\_Faludi](https://community.glideapps.com/u/Orsolya_Faludi)\
**Post date:** [April 2, 2023, 3:44pm UTC](https://community.glideapps.com/t/send-email-to-nearby-users/60036/1 "2023-04-02T15:44:01Z")

</div>

Hi All,

I’m using Classic Apps, I have a Babysitting exchange app where users can create babysitting requests and offers. When someone creates a babysitting request I want to send an email to users who live nearby to notify them. On the User Profile sheet, I have the address of the users, I have a column calculating the distance (I know it’s the distance from the current location of the browser).  
I have set up an IF column and I tried a joint list to summarize them, but it summarizes all 3 nearby for all users. How could I do this so it works well?

 ![Screenshot 2023-04-02 at 18.33.17](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/3/5323d946b3c6412554de294b75787c6d30845b9e.jpeg)

Thanks a lot 🙏

(PS. emails are anonymized, they were collected while I was on a free plan)

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 2, 2023, 3:57pm UTC](https://community.glideapps.com/t/send-email-to-nearby-users/60036/2 "2023-04-02T15:57:31Z")

</div>

Create an if-then-else column:

- if Nearby is not empty, then JoinNearby

But I’m not sure that you actually need that. How do you intend to trigger the email?  
The way you have it setup at the moment, if you use a Send Email action and trigger it as any user, and feed it the joined list, then just those nearby users will get the email.

Isn’t that what you want?

---

<div class="post-metadata">

**Author:** ![Orsolya\_Faludi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/orsolya_faludi/32/54659_2.png) [@Orsolya\_Faludi](https://community.glideapps.com/u/Orsolya_Faludi)\
**Post date:** [April 2, 2023, 5:04pm UTC](https://community.glideapps.com/t/send-email-to-nearby-users/60036/3 "2023-04-02T17:04:13Z")

</div>

Yes, you are right, it seems to work this way. Thank you 😉

Also, as far as I’m aware, distance only works when the user enables access to the location services. Do you know if a user closes the prompt box for enabling the location/or they don’t allow it in the beginning where/how can they change this in case of a Glide Classic App?

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [April 2, 2023, 5:30pm UTC](https://community.glideapps.com/t/send-email-to-nearby-users/60036/4 "2023-04-02T17:30:06Z")

</div>

There is probably better information out there if you just search for it, but you have to consider location services for the device as a whole, then location permissions for individual apps, and finally location permissions for individual websites in your browser.

Here a brief summary.

> **[How do I enable Location Services on my mobile / tablet device or browser? |...](https://help.digiquatics.com/en/articles/648416-how-do-i-enable-location-services-on-my-mobile-tablet-device-or-browser)**
>
> Location services issues, browser location sharing, android, iOS

---

<div class="post-metadata">

**Author:** ![Orsolya\_Faludi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/orsolya_faludi/32/54659_2.png) [@Orsolya\_Faludi](https://community.glideapps.com/u/Orsolya_Faludi)\
**Post date:** [April 2, 2023, 6:54pm UTC](https://community.glideapps.com/t/send-email-to-nearby-users/60036/5 "2023-04-02T18:54:12Z")

</div>

Thanks a lot, Jeff. It’s all clear now.

---

<div class="post-metadata">

**Author:** ![Orsolya\_Faludi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/orsolya_faludi/32/54659_2.png) [@Orsolya\_Faludi](https://community.glideapps.com/u/Orsolya_Faludi)\
**Post date:** [April 3, 2023, 5:11am UTC](https://community.glideapps.com/t/send-email-to-nearby-users/60036/6 "2023-04-03T05:11:04Z")

</div>

One last question @Darren_Murphy, is there a way to exclude the signed-in user from the Nearby join list (I’m using the IF solution)? 🙏

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 3, 2023, 5:42am UTC](https://community.glideapps.com/t/send-email-to-nearby-users/60036/7 "2023-04-03T05:42:43Z")

</div>

Add an extra condition to your Nearby if-then-else column:

- If email is signed in user, then null (leave empty)

And make that the first condition.

---

<div class="post-metadata">

**Author:** ![Orsolya\_Faludi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/orsolya_faludi/32/54659_2.png) [@Orsolya\_Faludi](https://community.glideapps.com/u/Orsolya_Faludi)\
**Post date:** [April 3, 2023, 6:57am UTC](https://community.glideapps.com/t/send-email-to-nearby-users/60036/8 "2023-04-03T06:57:40Z")

</div>

Thanks a lot for your help, it works this way! 🙏

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [April 4, 2023, 6:58am UTC](https://community.glideapps.com/t/send-email-to-nearby-users/60036/9 "2023-04-04T06:58:14Z")

</div>

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