{"id":22413044,"url":"https://github.com/bertoost/craft-3-ssmtpmailer","last_synced_at":"2025-03-27T03:24:28.942Z","repository":{"id":56950745,"uuid":"149272315","full_name":"bertoost/Craft-3-sSMTPMailer","owner":"bertoost","description":"A Craft 3 CMS mail adaptor for using sSMTP (a sendmail replacement)","archived":false,"fork":false,"pushed_at":"2022-11-28T20:29:59.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T05:55:48.347Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/bertoost.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}},"created_at":"2018-09-18T10:46:11.000Z","updated_at":"2020-04-20T17:46:38.000Z","dependencies_parsed_at":"2022-08-21T08:20:59.897Z","dependency_job_id":null,"html_url":"https://github.com/bertoost/Craft-3-sSMTPMailer","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertoost%2FCraft-3-sSMTPMailer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertoost%2FCraft-3-sSMTPMailer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertoost%2FCraft-3-sSMTPMailer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertoost%2FCraft-3-sSMTPMailer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bertoost","download_url":"https://codeload.github.com/bertoost/Craft-3-sSMTPMailer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245774610,"owners_count":20669983,"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-12-05T14:11:43.178Z","updated_at":"2025-03-27T03:24:28.923Z","avatar_url":"https://github.com/bertoost.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Craft CMS 3 - sSMTP Mailer\n\nThis mailer for Craft CMS 3 is a simple replacement for Sendmail, using sSMTP.\n\nMore information about sSMTP [can be found here](https://wiki.archlinux.org/index.php/SSMTP)\n\n## Install plugin\n\nUse the Craft Plugin Store or use composer\n\n```bash\n# go to the project directory\ncd /path/to/my-project.test\n\n# tell Composer to load the plugin\ncomposer require bertoost/craft-ssmtpmailer\n\n# OR only for development\n# composer require bertoost/craft-ssmtpmailer --dev\n\n# tell Craft to install the plugin\n./craft install/plugin ssmtpmailer\n```\n\n## Executed command\n\nThis adaptor is using the Swiftmailer Sendmail Transport literally. It is extending it and just replaces the command to execute.\n\nThe next command is used for sSMTP to send your email.\n\n```\n/usr/sbin/ssmtp -t\n```\n\n## Configure it for development only\n\nSince Craft 3, you can use multi-environment config in every single configuration file in your `config/` folder.\n\nTo setup this mailer only for dev-environment, you can change `config/app.php` in a multi-environment config and configure the sSMTP mailer for dev only.\n\n```php\nreturn [\n    // general for every environment\n    '*' =\u003e [\n        'modules' =\u003e [\n            // ...\n        ],\n        'bootstrap' =\u003e [\n            // ...\n        ],\n    ],\n\n    // Staging environment settings\n    'staging' =\u003e [\n        // ...\n    ],\n\n    // Dev environment settings\n    'dev' =\u003e [\n        'components' =\u003e [\n            'mailer' =\u003e function() {\n                // Get the stored email settings\n                $settings = Craft::$app-\u003egetSystemSettings()-\u003egetEmailSettings();\n                $settings-\u003etransportType = bertoost\\ssmtpmailer\\mail\\Ssmtp::class;\n                $settings-\u003etransportSettings = [];\n\n                return craft\\helpers\\MailerHelper::createMailer($settings);\n            },\n        ],\n    ],\n];\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbertoost%2Fcraft-3-ssmtpmailer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbertoost%2Fcraft-3-ssmtpmailer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbertoost%2Fcraft-3-ssmtpmailer/lists"}