{"id":33999871,"url":"https://github.com/stijnkoopal/zf2-mail","last_synced_at":"2025-12-13T09:08:29.969Z","repository":{"id":9290387,"uuid":"11125255","full_name":"stijnkoopal/zf2-mail","owner":"stijnkoopal","description":"This package delivers a highly configurable mail service for Zend Framework 2","archived":false,"fork":false,"pushed_at":"2013-08-02T09:35:33.000Z","size":204,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-20T07:41:04.247Z","etag":null,"topics":["zend-framework2"],"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/stijnkoopal.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":"2013-07-02T13:17:22.000Z","updated_at":"2017-05-03T08:00:38.000Z","dependencies_parsed_at":"2022-09-22T14:41:19.591Z","dependency_job_id":null,"html_url":"https://github.com/stijnkoopal/zf2-mail","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stijnkoopal/zf2-mail","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stijnkoopal%2Fzf2-mail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stijnkoopal%2Fzf2-mail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stijnkoopal%2Fzf2-mail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stijnkoopal%2Fzf2-mail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stijnkoopal","download_url":"https://codeload.github.com/stijnkoopal/zf2-mail/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stijnkoopal%2Fzf2-mail/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27702903,"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-12-13T02:00:09.769Z","response_time":147,"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":["zend-framework2"],"created_at":"2025-12-13T09:08:29.455Z","updated_at":"2025-12-13T09:08:29.952Z","avatar_url":"https://github.com/stijnkoopal.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"ZF-2 Mail\n=======\n\nIntroduction\n------------\n\nThis module provides a highly configurable service for sending emails. It allows you to send emails with both plain as\nhtml content. Furthermore, it provides the ability to specify layouts for both content types.\n\nRequirements\n------------\n\n* [Zend Framework 2](https://github.com/zendframework/zf2) (latest master)\n\nInstallation\n------------\n\n### Main Setup\n\n#### By cloning project (not recommended)\n\n1. Clone this project into your `./vendor/` directory.\n\n#### With composer\n\n1. Add this project in your composer.json:\n\n    ```json\n    \"require\": {\n        \"stijnkoopal/zf2-mail\": \"dev-master\"\n    }\n    ```\n\n2. Now tell composer to download Zf2 mail by running the command:\n\n    ```bash\n    $ php composer.phar update\n    ```\n\n#### Post installation\n\n1. Enabling it in your `application.config.php`file.\n\n    ```php\n    \u003c?php\n    return array(\n        'modules' =\u003e array(\n            // ...\n            'Mailing',\n        ),\n        // ...\n    );\n    ```\n\n2. Copy config/mail.global.php.dist and config/mail.local.php.dist to your config directory\n3. Remove the .dist extension from these files and fill in the blanks\n\n\nOptions\n-------\n\nThus module has some options to allow you to quickly customize the basic\nfunctionality.\n\nThe following options are available:\n\n- **domains** - A array of key value pairs. The default key is used for email addresses that did not specify any domain\n- **transport** - The specification for the email transport. A `type` and `options` key can be specified\n- **from** - An array of arrays where each inner array should specify the `name` and `email` keys. Optionally an `domain`\nkey can be specified that is available in the `domains` option. If no `domain` is specified, `default` is used.\n- **layouts** - An array of array where each inner array can specify a `plain` and/or `html` key. The value for these\nkeys should point to view file that you have defined in the `view_manager` configuration. Hence, the view manager\nfrom the application is used to locate the view script.\n- **mails** - An array of arrays where each inner array can specify the following options: `from`, a value that points to\na key in the `from` options array. `layout`: a value that points to a key in the `layouts` array. If not specified, no\nlayout is used. `subject`: the subject of the email. If not specified the `subject` in `template` will be used.\n`template`: an array containing the keys `html`, `plain` and `subject`. These should point to a view\nscript specified by the `view_manager`.\n\nSend email\n-------\nLet `$emailService` be an instanceof `Mailing\\Service`. (Can be obtained with the `MailingServiceProviderTrait`). An\nemail is then send with `$email-\u003esendMail($message, 'alias', $variables)`. The `$message` variable is an instance of\n`Zend\\Mail\\Message` and you should specify addresses in this object. The second parameter is a key in the `mails` array\nspecified in the configuration. Variables can be passed as last parameter. These will be available in your view script.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstijnkoopal%2Fzf2-mail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstijnkoopal%2Fzf2-mail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstijnkoopal%2Fzf2-mail/lists"}