Skip to main content

Set up SMTP for Microsoft 365 (Office 365)

To send email through a Microsoft 365 mailbox with PDF.co, first confirm that your organization allows the sending mailbox to use authenticated SMTP with a username and password.

In your POST /v1/email/send request, set these four fields.

  • Set smtpserver to smtp.office365.com.

  • Set smtpport to 587. Microsoft 365 uses STARTTLS on this port.

  • Set smtpusername to the sign-in email address of the sending mailbox.

  • Set smtppassword to the SMTP password for that mailbox.

See the PDF.co Send Email with File documentation for the full request and an example.

Did this answer your question?