Use cases → Email operations
Send onboarding welcome emails to new users at scale
Blast a tailored onboarding email to every new user as their account is created, using a delegated service account to send from HR or IT.
| Who it is for | IT or HR teams responsible for onboarding large cohorts of new users. |
|---|---|
| APIs | Gmail API, Admin SDK |
| Typical scopes | gmail.send, admin.directory.user.readonly |
The problem
Manual welcome emails are error-prone and easily missed, especially during bulk hiring or reorgs. Relying on end users to check onboarding docs results in inconsistent first-day experiences.
How it works
- Watch for new accounts by polling the Admin SDK for recently created users.
- For each new user, use the service account with domain-wide delegation to impersonate a sender (e.g. hr@ or it@) and send a templated welcome email via the Gmail API.
- Log sent emails and any errors for audit and follow-up.
- Throttle requests to avoid Gmail API send limits and avoid being flagged for spam.
What changes
Every new user receives a consistent, timely onboarding email from a trusted internal sender, with delivery tracked centrally.
Questions people ask
Can I send from each user's own account?
Technically yes, but users will see the sent message in their own Sent folder, which may be confusing. It's more common to send from a central HR or IT address.
How do I avoid sending duplicates?
Track the last processed user creation timestamp or user ID, and always log sent emails with a unique reference. Idempotency is critical if your process restarts.
Want this built?
This is a pattern we run in production. We will set up the delegation and build this on top of it — $500 per hour, most of it working the same day.
Talk to us Or read the setup guideRelated use cases
Standardise email signatures for all users in bulk
Set consistent signatures across the domain by updating each user's Gmail settings via a delegated service account.
Enforce encryption for sensitive email content automatically
Detect sensitive data in outbound mail and apply encryption or block sending using a delegated service account.
Send a survey to every employee by mail merge
Deliver a company-wide survey by generating individual emails to all users via a delegated service account, avoiding mass recipient limits.