{"id":20103137,"url":"https://github.com/dotkernel/dot-controller-plugin-mail","last_synced_at":"2025-05-06T08:31:09.296Z","repository":{"id":11921813,"uuid":"68222209","full_name":"dotkernel/dot-controller-plugin-mail","owner":"dotkernel","description":"DotKernel mail controller plugin","archived":false,"fork":false,"pushed_at":"2024-06-03T05:20:52.000Z","size":26,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"2.9-PHP-8.1","last_synced_at":"2025-04-18T09:44:41.685Z","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":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-14T16:15:00.000Z","updated_at":"2023-08-22T10:50:50.000Z","dependencies_parsed_at":"2024-11-16T04:00:50.049Z","dependency_job_id":null,"html_url":"https://github.com/dotkernel/dot-controller-plugin-mail","commit_stats":{"total_commits":24,"total_committers":5,"mean_commits":4.8,"dds":"0.20833333333333337","last_synced_commit":"9adb47ce46f0e01ce5359d12fbaff6a6b53e7767"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotkernel%2Fdot-controller-plugin-mail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotkernel%2Fdot-controller-plugin-mail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotkernel%2Fdot-controller-plugin-mail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotkernel%2Fdot-controller-plugin-mail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dotkernel","download_url":"https://codeload.github.com/dotkernel/dot-controller-plugin-mail/tar.gz/refs/heads/2.9-PHP-8.1","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252648539,"owners_count":21782405,"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","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":"2024-11-13T17:34:24.600Z","updated_at":"2025-05-06T08:31:09.034Z","avatar_url":"https://github.com/dotkernel.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e [!CAUTION]\n\u003e ## Security-Only Maintenance Mode\n\u003e \n\u003e This package is considered feature-complete, and is now in **security-only** maintenance mode.\n\n![OSS Lifecycle](https://img.shields.io/osslifecycle/dotkernel/dot-controller-plugin-mail)\n[![GitHub license](https://img.shields.io/github/license/dotkernel/dot-controller-plugin-mail)](https://github.com/dotkernel/dot-controller-plugin-mail/blob/2.0.1/LICENSE.md)\n![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-controller-plugin-mail/2.9.2)\n\n\n# dot-controller-plugin-mail\n\nMail controller plugin for easy access to dot-mail service from any controller.\n\n## Installation\n\nRun the  following command in your project's root directory\n```bash\n$ composer require dotkernel/dot-controller-plugin-mail\n```\n\nThis will also install packages `dotkernel/dot-controller` and `'dotkernel/dot-mail` as dependencies.\nNext, make sure you merge the `ConfigProvider` to your application's configuration.\n\n## Usage\n\nBecause multiple mail services can be defined in the dot-mail module, there can also be requested as controller plugins by following the convention\n\n```php\n//calling this plugins without parameters, will return the mail service instead, otherwise will use parameters to send directly the e-mail\n$this-\u003esendMail(); //will return the default mail service\n\n$this-\u003esendMailYourMailService(); //will return the mail service named your_mail_service\n```\n\nController mail plugins are invokable. To send an email you can use the following 2 methods\n \n * `$this-\u003esendMail(array $mailConfig)` - will send a mail through a mail service configured based on the $mailConfig param.\n The array parameter valid keys are body, subject, to, from, cc, bcc, attachments. The body parameter can be specified as an array too in which case the $body[0] should be the template name to use as mail template and $body[1] should be optionally the template parameters.\n  \n * `$this-\u003esendMail($body, $subject, $to, $from, $cc, $bcc, $attachments)` - the parameters have the same meaning as in the previous method\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotkernel%2Fdot-controller-plugin-mail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdotkernel%2Fdot-controller-plugin-mail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotkernel%2Fdot-controller-plugin-mail/lists"}