Good question — and this is where things get very real.
Let’s unpack this carefully, because you’re asking exactly the right thing.
There are two main scenarios:
✅ If your custom email is hosted on Google Workspace, you can:
- Go into Gmail Settings > Accounts > Send mail as and add/verify your custom address.
- In Apps Script, you can use:
from: "hello@yourdomain.com"
✅ But! Google will only let you use addresses that have been verified in Gmail settings, and your Workspace admin must allow “Send as” delegation.
🚨 Important: Even with this, the “sender” technically is Google servers. The envelope is Google’s, but the “From” field will be your address. For most users, this is fine.
If your custom email is not connected to Google services, MailApp will not work with your address.
MailApp (and GmailApp) can only send emails from:
- Your Google account email
- Or aliases verified in Google Workspace Gmail settings
External non-Google emails are not supported by MailApp.
If you’re using an external provider (like Outlook, Zoho, or any SMTP service), you have two good options:
-
Use SMTP Services via Apps Script Libraries (Advanced)
- There are community libraries that let you send via external SMTP.
- Example: SMTPApp library.
- ✅ Sends from any valid SMTP account (like
support@yourdomain.com).
- ❌ Slightly more complex setup (you’ll need SMTP server, port, username, and password).
-
Use an Email API like SendGrid, Mailgun, or Postmark
- Connect via HTTP requests (fetch).
- ✅ More professional, reliable, tracking, better deliverability.
- ✅ Easy to integrate with Apps Script.
- Example with SendGrid:
function sendEmailViaSendGrid(email, subject, body) {
var apiKey = 'YOUR_SENDGRID_API_KEY';
personalizations: [{ to: [{ email: email }] }],
from: { email: "support@yourdomain.com" },
content: [{ type: "text/plain", value: body }]
contentType: 'application/json',
headers: { Authorization: 'Bearer ' + apiKey },
payload: JSON.stringify(payload)
UrlFetchApp.fetch('https://api.sendgrid.com/v3/mail/send', options);
✅ Fully custom sender
✅ No Gmail limits
✅ More scalable
Since you’re using a custom email, I highly recommend SendGrid or Mailgun integration.
You’ll get:
- Professional delivery.
- Control over sender identity.
- No Gmail sending limits.
- Tracking (opens, clicks, etc.)
| Case | MailApp Support? | Notes |
|---|
| Custom domain, Google Workspace | ✅ | Add as alias in Gmail settings. |
| Custom domain, external provider (Outlook, Zoho, etc.) | ❌ | Use SMTP or Email API (SendGrid, Mailgun). |
| Personal Gmail account | ❌ | Only sends from your Gmail address. |
If you want, I can give you a full working script that uses SendGrid or any other provider you choose — it will work with your custom email no matter where it’s hosted!
👉 Do you want me to build you the full SendGrid (or your provider) version? It will be clean and professional. 🚀