{"id":20077584,"url":"https://github.com/digitaledgeit/zf2-mail-module","last_synced_at":"2026-05-10T13:18:57.497Z","repository":{"id":15552236,"uuid":"18287289","full_name":"digitaledgeit/zf2-mail-module","owner":"digitaledgeit","description":"ZF2 mail module","archived":false,"fork":false,"pushed_at":"2014-06-16T10:58:14.000Z","size":178,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T12:03:22.150Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/digitaledgeit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-31T08:58:24.000Z","updated_at":"2014-06-16T10:58:14.000Z","dependencies_parsed_at":"2022-09-06T07:23:08.011Z","dependency_job_id":null,"html_url":"https://github.com/digitaledgeit/zf2-mail-module","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitaledgeit%2Fzf2-mail-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitaledgeit%2Fzf2-mail-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitaledgeit%2Fzf2-mail-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitaledgeit%2Fzf2-mail-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digitaledgeit","download_url":"https://codeload.github.com/digitaledgeit/zf2-mail-module/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241509619,"owners_count":19974071,"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-13T15:09:05.771Z","updated_at":"2026-05-10T13:18:57.463Z","avatar_url":"https://github.com/digitaledgeit.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ZF2 Mail Module\n\nA module simplifying use of ZF2 Mail.\n\n## Installation\n\nAdd the module to your `composer.json` file and run `composer install`:\n\n    \"digitaledgeit/zf2-mail-module\": \"dev-master\"\n\n## Configuration\n\nAdd the module to the `modules` key in your `config/application.config.php` file:\n\n\t'modules' =\u003e [\n\t\t'DeitMailModule',\n\t],\n\nAdd the configuration to your `local.php` and `module.config.php`:\n\n\t'deit_mail' =\u003e [\n\n\t\t//an array containing type and options keys or a string containing a service name\n\t\t'transport' =\u003e [\n\t\t\t'type'      =\u003e '',              //null, file, sendmail or smtp\n\t\t\t'options'   =\u003e [                //see the transport options for selected type at http://framework.zend.com/manual/2.1/en/modules/zend.mail.introduction.html\n\t\t\t],\n\t\t],\n\n\t\t'renderer'  =\u003e 'ViewRenderer'        //a string containing a service name\n\t],\n\n## Sending mail\n\n\t//get the service\n\t$service = $serviceManager-\u003eget('deit_mail_service');\n\n\t//send a message containing plain text and HTML versions\n\t$service-\u003esendMixedMessage(\n\t\t[\n\t\t\t'to'            =\u003e 'fred@example.com',\n\t\t\t'from'          =\u003e 'wilma@example.com',\n\t\t\t'subject'       =\u003e 'A test message from my app',\n\t\t\t'attachments'   =\u003e [\n                [\n                    'type'      =\u003e 'text/html',\n                    'name'      =\u003e 'test1.html',\n                    'content'   =\u003e '\u003chtml\u003e\u003chead\u003e\u003ctitle\u003eTest HTML Page\u003c/title\u003e\u003c/head\u003e\u003cbody\u003e\u003ch1\u003eTest HTML Page\u003c/h1\u003e\u003c/body\u003e\u003c/html\u003e'\n                ],\n                [\n                    'type'      =\u003e 'text/html',\n                    'name'      =\u003e 'test2.html',\n                    'content'   =\u003e './path/to/the-file.html'\n                ]\n            ]\n\t\t],\n\t\t[\n\t\t\t'text/plain'    =\u003e 'email/hello-text',\n\t\t\t'text/html'     =\u003e 'email/hello-html'\n\t\t],\n\t\t[\n\t\t\t'name' =\u003e 'World!'\n\t\t]\n\t);","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitaledgeit%2Fzf2-mail-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitaledgeit%2Fzf2-mail-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitaledgeit%2Fzf2-mail-module/lists"}