Contents
Gmail integration

Gmail push notifications for the emails that matter

PushPiper sends important Gmail messages to your phone as push notifications, free for 10,000 messages a month on 10 devices. Messages up to 1,024 characters reach iPhones on iOS 16.4 or later, Android and desktop browsers, with no credit card needed. Set it up with a Gmail forwarding rule or a short Google Apps Script.

Choosing between forwarding and Apps Script

Gmail lets you separate urgent traffic from routine inbox noise in two different ways. You can forward matching messages as they arrive through standard filter rules, or you can poll your inbox on a regular schedule using Google Apps Script.

Here is how the two notification methods compare across setup effort, speed, and filtering flexibility.

Filter and forwardingApps Script
SetupConfirm a forwarding address, create a filterPaste a script, run createTrigger
DelaySecondsUp to 5 minutes
MatchingGmail filter rulesAny Gmail search query
Priority and soundPer PushPiper addressSet in the script
Best forA few senders or keywordsComplex rules

The forwarding approach delivers alerts within seconds of an email landing in your inbox. In contrast, Apps Script checks your mailbox every few minutes, but it lets you build complex search queries that standard Gmail filter settings do not support. Both methods send alerts directly to your phone without relying on an email to text alternative or paying per-message carrier fees.

Create a PushPiper email address

PushPiper provides private forwarding addresses that convert incoming messages into phone notifications. Each address has its own alert settings, which lets you control urgency and sounds before routing any mail.

  1. Open PushPiper in your browser and sign in with your Google account.
  2. Select Settings, then click Email.
  3. Click to generate a new private address at pushpiper.app.
  4. Assign a label so you know where alerts come from.
  5. Choose a priority from -2 to 1 and pick one of the 23 built-in alert sounds.
  6. Copy the generated address to your clipboard.

Each address consists of 20 random letters and digits. Because any message sent to this address generates an alert on your devices, treat the address like a password and do not post it publicly. You can create up to 20 separate addresses in your account, which makes it easy to assign distinct ringtones or quiet-hour behaviors to different senders.

Route 1: Forward matching mail with a Gmail filter

Gmail requires you to verify external forwarding destinations before any automatic filter can send mail outside your account. PushPiper handles this verification step directly inside your notification stream.

Verify the forwarding destination

  1. Open Gmail on your computer, click the gear icon in the top right, and select See all settings.
  2. Click the Forwarding and POP/IMAP tab.
  3. Click Add a forwarding address.
  4. Paste your pushpiper.app email address into the box and submit it.
  5. Wait a few seconds for Gmail to dispatch the confirmation email.
  6. Open the incoming alert inside the PushPiper app, copy the confirmation link, and open it in your browser to approve forwarding.

Create the filter

Once verified, you can direct specific incoming emails to your PushPiper inbox while leaving the rest of your mail alone.

  1. In Gmail, click Show search options on the right side of the main search bar.
  2. Fill in the criteria for the messages you care about, such as a sender address in the From field or specific terms in the Subject line.
  3. Click Create filter at the bottom of the search dialog.
  4. Check the box labeled Forward it to and pick your verified pushpiper.app address from the dropdown list.
  5. Click Create filter to activate the rule.

When a matching email hits your inbox, PushPiper uses the subject line as the notification title. The plain-text body becomes the notification message up to the first 1,024 characters. HTML formatting, signatures, and quoted replies are stripped automatically, and the first image attachment up to 5 MB gets delivered along with the notification.

Route 2: Poll Gmail with Google Apps Script

If you need queries that change frequently or require search operators that forwarding filters cannot handle, Google Apps Script can process your inbox on a timer. The script finds unread emails that match your search, posts them to the PushPiper API reference endpoint, and applies a label so it never alerts you on the same thread twice.

  1. Open Google Apps Script and create a new project.
  2. Replace any boilerplate code in the script editor with the code block below.
  3. Set APP_TOKEN to your 30-character application token and USER_KEY to your 30-character user key from PushPiper.
  4. Adjust QUERY to match the senders or subject phrases you want to watch.
  5. Select createTrigger from the function dropdown at the top of the editor and click Run.
  6. Review and grant the necessary Google account permissions when prompted.
Code.gs
const APP_TOKEN = 'APP_TOKEN';
const USER_KEY = 'USER_KEY';
const QUERY = 'is:unread from:alerts@example.com -label:pushed';

function pushMatchingMail() {
  const label = GmailApp.getUserLabelByName('pushed') || GmailApp.createLabel('pushed');

  GmailApp.search(QUERY, 0, 20).forEach((thread) => {
    const message = thread.getMessages().pop();

    UrlFetchApp.fetch('https://api.pushpiper.com/1/messages.json', {
      method: 'post',
      payload: {
        token: APP_TOKEN,
        user: USER_KEY,
        title: message.getSubject().slice(0, 250) || '(no subject)',
        message: `${message.getFrom()}\n${message.getPlainBody()}`.slice(0, 1024),
      },
    });
    thread.addLabel(label);
  });
}

function createTrigger() {
  ScriptApp.newTrigger('pushMatchingMail').timeBased().everyMinutes(5).create();
}

Running createTrigger configures an installable time-driven trigger that executes pushMatchingMail every 5 minutes. The everyMinutes trigger method accepts intervals of 1, 5, 10, 15, or 30 minutes. If you need faster checks, you can edit the script to run every minute instead.

Apps Script queries run against your mailbox using standard search syntax. Once a thread is processed, the script assigns a label named pushed to prevent repeat alerts. The script truncates titles at 250 characters and plain-text message bodies at 1,024 characters to stay within PushPiper API payload restrictions.

Quotas and operational limits

Both setup routes operate within generous quotas, but you should keep account thresholds in mind if you handle high message volumes.

  • PushPiper Free accounts include 10,000 messages a month across 10 registered devices, with quotas resetting on the 1st of each month at 00:00 UTC.
  • Each email forwarded to the gateway or posted via script counts as one message toward your monthly limit.
  • Google Apps Script provides 20,000 Gmail read and write operations along with 20,000 URL Fetch calls a day for standard gmail.com accounts.
  • Installable triggers in Apps Script are capped at 90 minutes of total runtime a day and 6 minutes per single execution.
  • The PushPiper email gateway accepts up to 30 emails a minute per address and enforces an email size limit of 10 MB.
  • PushPiper API limits allow up to 600 requests a minute per app token.

If you hit your PushPiper monthly quota, the API responds with HTTP 429 until the next month begins or you add message packs. For more details on message tiers and device options, see PushPiper pricing. You can also explore turn any email into a push notification to connect non-Gmail alerts to the same workflow.

Sources

Questions and answers

Does PushPiper send standard SMS text messages?

No. PushPiper delivers Web Push notifications to your phone or computer rather than carrier SMS texts.

Can an alert break through Do Not Disturb on an iPhone?

No. PushPiper uses standard Web Push notifications, which respect your operating system Focus modes and Do Not Disturb settings on iOS.

What happens if an incoming email exceeds 1,024 characters?

The email gateway automatically clips the body text at the 1,024-character mark so the notification arrives without errors.

Do I need to enter credit card details to get started?

No. You can sign in with your Google account on the Free plan without providing billing details or payment cards.