# Receive gmail messages on the backend

**URL:** <https://forum.bubble.io/t/receive-gmail-messages-on-the-backend/344746>\
**Category:** Plugins\
**Created:** [October 18, 2024, 10:39am UTC](https://forum.bubble.io/t/receive-gmail-messages-on-the-backend/344746 "2024-10-18T10:39:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nathan11](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/nathan11/32/231511_2.png) [@nathan11](https://forum.bubble.io/u/nathan11)\
**Post date:** [October 18, 2024, 10:39am UTC](https://forum.bubble.io/t/receive-gmail-messages-on-the-backend/344746/1 "2024-10-18T10:39:05Z")

</div>

I’m looking for a plugin that will let me retrieve new gmail messages and save them to the database even while my user is away or not logged in.

Is there a plugin that can let me do that? The gmail plugins I’ve seen only retrieve emails client side.

---

<div class="post-metadata">

**Author:** ![siddharth](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/siddharth/32/99706_2.png) [@siddharth](https://forum.bubble.io/u/siddharth)\
**Post date:** [October 18, 2024, 11:13am UTC](https://forum.bubble.io/t/receive-gmail-messages-on-the-backend/344746/2 "2024-10-18T11:13:22Z")

</div>

Use Gmail API directly

---

<div class="post-metadata">

**Author:** ![nathan11](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/nathan11/32/231511_2.png) [@nathan11](https://forum.bubble.io/u/nathan11)\
**Post date:** [October 18, 2024, 11:19am UTC](https://forum.bubble.io/t/receive-gmail-messages-on-the-backend/344746/3 "2024-10-18T11:19:59Z")

</div>

Can you please point me to a tutorial that would help me do that?

---

<div class="post-metadata">

**Author:** ![siddharth](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/siddharth/32/99706_2.png) [@siddharth](https://forum.bubble.io/u/siddharth)\
**Post date:** [October 18, 2024, 12:06pm UTC](https://forum.bubble.io/t/receive-gmail-messages-on-the-backend/344746/4 "2024-10-18T12:06:00Z")

</div>

> **[メッセージの検索  |  Gmail  |  Google for Developers](https://developers.google.com/gmail/api/guides/filtering?hl=ja)**

Not a tutorial but documentation  
You need to have oAuth setup and manage session tokens too, also need to register your application first
