{"id":30602115,"url":"https://github.com/dotkernel/dot-mail-outlook","last_synced_at":"2025-08-30T00:14:04.756Z","repository":{"id":310476903,"uuid":"1034363878","full_name":"dotkernel/dot-mail-outlook","owner":"dotkernel","description":"Microsoft Outlook ESMTP email service integration ","archived":false,"fork":false,"pushed_at":"2025-08-18T11:23:30.000Z","size":10,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-18T12:03:34.904Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dotkernel.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-08T09:14:33.000Z","updated_at":"2025-08-18T11:31:53.000Z","dependencies_parsed_at":"2025-08-18T12:03:43.170Z","dependency_job_id":"f151b69b-b260-4aab-88eb-d8f61393afd4","html_url":"https://github.com/dotkernel/dot-mail-outlook","commit_stats":null,"previous_names":["dotkernel/dot-mail-outlook"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dotkernel/dot-mail-outlook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotkernel%2Fdot-mail-outlook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotkernel%2Fdot-mail-outlook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotkernel%2Fdot-mail-outlook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotkernel%2Fdot-mail-outlook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dotkernel","download_url":"https://codeload.github.com/dotkernel/dot-mail-outlook/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotkernel%2Fdot-mail-outlook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272784467,"owners_count":24992458,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-30T00:14:03.604Z","updated_at":"2025-08-30T00:14:04.691Z","avatar_url":"https://github.com/dotkernel.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dot-mail-outlook\n\nDotkernel's Microsoft Outlook ESMTP email service, implementing the `client credentials` grant_type. \n\n\u003e dot-mail-outlook is a wrapper on top of [dotkernel/dot-mail](https://github.com/dotkernel/dot-mail)\n\n## Badges\n\n![OSS Lifecycle](https://img.shields.io/osslifecycle/dotkernel/dot-mail-outlook)\n![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-mail-outlook/dev-master)\n\n[![GitHub issues](https://img.shields.io/github/issues/dotkernel/dot-mail-outlook)](https://github.com/dotkernel/dot-mail-outlook/issues)\n[![GitHub forks](https://img.shields.io/github/forks/dotkernel/dot-mail-outlook)](https://github.com/dotkernel/dot-mail-outlook/network)\n[![GitHub stars](https://img.shields.io/github/stars/dotkernel/dot-mail-outlook)](https://github.com/dotkernel/dot-mail-outlook/stargazers)\n[![GitHub license](https://img.shields.io/github/license/dotkernel/dot-mail-outlook)](https://github.com/dotkernel/dot-mail-outlook/blob/0.1/LICENSE.md)\n\n[![Build Static](https://github.com/dotkernel/dot-mail-outlook/actions/workflows/continuous-integration.yml/badge.svg?branch=0.1)](https://github.com/dotkernel/dot-mail-outlook/actions/workflows/continuous-integration.yml)\n[![codecov](https://codecov.io/gh/dotkernel/dot-mail-outlook/graph/badge.svg?token=TiXewEbffE)](https://codecov.io/gh/dotkernel/dot-mail-outlook)\n[![PHPStan](https://github.com/dotkernel/dot-mail-outlook/actions/workflows/static-analysis.yml/badge.svg?branch=0.1)](https://github.com/dotkernel/dot-mail/actions/workflows/static-analysis.yml)\n\n## Installation\n\nInstall `dotkernel/dot-mail-outlook` by executing the following Composer command:\n\n```shell\ncomposer require dotkernel/dot-mail-outlook\n```\n\nRegister `src/ConfigProvider.php` in `config/config.php` by adding the following line:\n\n```php\n\\Dot\\MailOutlook\\ConfigProvider::class,\n```\n\n## Configuration\n\nCopy the `dot-mail-outlook.local` file to your `autoload` folder (or copy its contents to `mail.global.php`) and fill in the relevant information.\n\n```php\n\u003c?php\n\ndeclare(strict_types=1);\n\n$tenant = '';\n\nreturn [\n    'xoauth2_outlook' =\u003e [\n        \"tokenCacheFile\"  =\u003e '',\n        \"tenant\"          =\u003e $tenant,\n        \"access_code_url\" =\u003e \"https://login.microsoftonline.com/{$tenant}/oauth2/v2.0/token\",\n        \"client_id\"       =\u003e '',\n        \"client_secret\"   =\u003e '',\n        \"scope\"           =\u003e 'https://outlook.office.com/.default',\n        \"grant_type\"      =\u003e 'client_credentials',\n    ],\n];\n```\n\nThe `dotkernel/dot-mail` config file should be updated to make sure the necessary options are set:\n\n- `transport` **MUST** be set to under the `dot_mail.default.transport` key.\n- `port` **MUST** be set to `587` under the `dot_mail.default.smtp_options.port` key.\n- `tls` **MUST** be set to `STARTTLS` under the `dot_mail.default.smtp_options.tls` key.\n- `host` **MUST** be one of `smtp-mail.outlook.com` or `smtp.office365.com` under the `dot_mail.default.smtp_options.host` key.\n\n## Additional info\n\n`dotkernel/dot-mail-outlook` makes use of SASL XOAUTH2 mechanism for use with the [SMTP AUTH](https://datatracker.ietf.org/doc/html/rfc4954) command.\n\nTo allow generating the bearer token in the background, without user input required,\n`dot-mail-outlook` implements the `client credentials` flow from Microsoft:\n\n- [Authenticate an IMAP, POP or SMTP connection using OAuth](https://learn.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth)\n- [Microsoft identity platform and the OAuth 2.0 client credentials flow](https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-client-creds-grant-flow)\n\n\u003e Make sure to set all relevant permissions, give relevant tenant administrator consent and register the necessary service principals, as described in Microsoft's flow.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotkernel%2Fdot-mail-outlook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdotkernel%2Fdot-mail-outlook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotkernel%2Fdot-mail-outlook/lists"}