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
smtpservertosmtp.office365.com.Set
smtpportto587. Microsoft 365 uses STARTTLS on this port.Set
smtpusernameto the sign-in email address of the sending mailbox.Set
smtppasswordto the SMTP password for that mailbox.
See the PDF.co Send Email with File documentation for the full request and an example.