Skip to main content

How to Set Up Gmail SMTP in PDF.co

Configure Gmail SMTP in PDF.co using a Google app password and 2-Step Verification.

How to Set Up Gmail SMTP in PDF.co

To send emails through Gmail using PDF.co, configure the following SMTP settings and authenticate with a Google app password.

SMTP settings

Setting

Value

SMTP server/host

smtp.gmail.com

SMTP port

587

SMTP username

Your full Gmail or Google Workspace email address

SMTP password

A Google-generated app password

Create a Google app password

  1. Sign in to the Google Account you want to use for sending emails.

  2. Turn on 2-Step Verification for that account.

  3. Create an app password and give it a recognizable name, such as PDF.co.

  4. Enter the generated password in PDF.co’s SMTP Password field. For direct API requests, use it as the smtppassword value.

Your regular Google Account password should not be used for this setup.

If App Passwords is unavailable

The option may be unavailable because of your organization’s policies, Advanced Protection, or a security-key-only 2-Step Verification configuration. For a managed Google Workspace account, contact your administrator to check whether app passwords are permitted.

If authentication fails

  • Confirm that the SMTP username is the full email address belonging to the account that generated the app password.

  • If you recently changed your Google Account password, generate a new app password. Google revokes existing app passwords after a password change.

  • Keep your app password private and hide it in screenshots or support messages.

For further instructions, see Google’s app-password guide. If you need help configuring PDF.co, contact our support team.

Did this answer your question?