How to Send Emails from Outlook, Office 365 or Any SMTP Server with Document Studio
The Send Email task in Document Studio sends from Gmail unless you choose otherwise. If your company’s email runs on Microsoft 365, or on another provider such as Zoho Mail or your web host, you can send from that mailbox instead. Recipients see your usual address, replies land in your usual inbox, and the sent emails appear in your Outlook Sent Items.
| Service Provider | Use it when | How it connects |
|---|---|---|
| Office 365 | Your work email is Microsoft 365 or Exchange Online | You sign in to Microsoft once |
| SMTP Server | Your email is with any other provider that gives you SMTP settings | Server name, port, username and password |
| Gmail | Your email is Gmail or Google Workspace | Your Google account, nothing to set up |
Document Studio also sends through Amazon SES, SendGrid, SparkPost and Resend for high volumes.
Send from Office 365
Section titled “Send from Office 365”Northwind Logistics runs on Microsoft 365. Their onboarding workflow fills a PDF form for each new hire, and HR wants the email to come from hr@northwind.com, the address employees know, not from a Gmail account.
-
Open the workflow and go to the Tasks screen. Click Edit on the Send Email task, or click Add Another Task and choose Send Email.
-
Under Service Provider, choose Office 365.
-
Click Link your Office 365 account. A Microsoft sign-in page opens in a new tab.
-
Sign in with the Microsoft account you want to send from, such as
hr@northwind.com, and click Accept to let Document Studio send email and read your name and address. -
Close the tab and go back to Document Studio. After Waiting for authorization…, it fills in the sender’s name and email from your Microsoft account.
-
Fill in the recipients, subject and message as usual, then click Preview. Document Studio sends the email for the first row of the sheet from your Outlook mailbox. Check that it arrived, and that it’s in Sent Items in Outlook.
-
Click Done.
Microsoft limits how much one mailbox can send: 10,000 recipients a day and 30 messages a minute for Exchange Online. Document Studio sends one email at a time, well within the per-minute limit. For more than a few thousand emails a day, use Amazon SES or SendGrid.
Send from Any SMTP Server
Section titled “Send from Any SMTP Server”Any email provider that lets you send from other apps, such as an email program on your phone, gives you SMTP settings: a server name, a port and your login. Look for “SMTP settings” or “IMAP and SMTP” in your provider’s help pages.
-
In the Send Email task, choose SMTP Server under Service Provider.
-
Type the server name in SMTP Server, such as
smtp.zoho.com. -
Choose the Port. Use
465if your provider lists it (it’s encrypted from the start), otherwise587. -
Type your full email address in Username, and your password or app password in Password.
-
Set Sender’s Email to the same address as Username. Most servers refuse to send from an address that isn’t yours.
-
Click Preview to send the email for the first row of the sheet. If it arrives, click Done.
Settings for some common providers:
| Provider | SMTP Server | Port | Username and password |
|---|---|---|---|
| Zoho Mail | smtp.zoho.com |
465 |
Your Zoho address, and an app-specific password if you use two-factor sign-in |
| Fastmail | smtp.fastmail.com |
465 |
Your Fastmail address, and an app password |
| Mailgun | smtp.mailgun.org |
587 |
The SMTP login and password from your Mailgun domain settings |
| Brevo | smtp-relay.brevo.com |
587 |
Your Brevo SMTP login and SMTP key |
| Your web host | Often mail.yourdomain.com |
465 |
The mailbox address and password from your hosting control panel |
Check the values against your provider’s own help page: they occasionally change.
Things to Know
Section titled “Things to Know”- Your daily limits come from your provider. Emails sent through Office 365 or an SMTP server don’t count towards your Gmail sending quota. On a paid plan, they don’t count towards Document Studio’s daily email limit either. Your provider’s own limits still apply.
- Sent emails are in your provider’s mailbox, not in Gmail. With Office 365 they’re in Sent Items. With SMTP, it depends on the provider: many don’t keep a copy of emails sent by other apps.
- The status link only opens Gmail emails. For Gmail, the
[Document Studio] Email Statuscell links to the sent email. For other services, it says who the email was sent to. - Attachments and markers work the same with every service: attach the merged files, use markers in the subject and message, and embed QR codes.
- Long subjects arrive whole. Document Studio cuts the subject and the sender’s name at 250 characters, like with Gmail. A long subject or sender’s name with accents, emoji or other scripts shows in full in the inbox. See line breaks, subjects and addresses for the other rules.
- The SMTP password is saved with the workflow, so anyone who can edit the workflow can use it. Use an app password that you can revoke on its own.
Troubleshooting
Section titled “Troubleshooting”Sorry, the app could not connect to your Office 365 account
Section titled “Sorry, the app could not connect to your Office 365 account”The sign-in didn’t finish, or it was for a different account. Choose Gmail under Service Provider, then Office 365 again, and click Link your Office 365 account. Make sure you sign in to the mailbox you want to send from.
The SMTP test fails with an authentication error
Section titled “The SMTP test fails with an authentication error”The username or password is wrong, or the provider wants an app password. Sign in to your provider’s webmail with the same username and password to check them, then create an app password if your account uses two-factor sign-in.
The SMTP test fails with a connection or timeout error
Section titled “The SMTP test fails with a connection or timeout error”The server name or port is wrong. Try port 465 and then 587. Port 25 is blocked by many networks, including Google Cloud, so don’t use it.
The email arrives in spam
Section titled “The email arrives in spam”Your domain’s SPF and DKIM records don’t cover the server that sent it. For Office 365 and most providers, sending from their own server already passes. If you use a sending service such as Mailgun or Brevo, add the DNS records it gives you for your domain.
