{"id":19951320,"url":"https://github.com/palmtreephp/wp-mailer","last_synced_at":"2026-05-09T22:17:11.694Z","repository":{"id":57035245,"uuid":"173820389","full_name":"palmtreephp/wp-mailer","owner":"palmtreephp","description":"Small OOP wrapper around WordPress' wp_mail function","archived":false,"fork":false,"pushed_at":"2019-03-04T20:59:08.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-12T06:10:18.444Z","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/palmtreephp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-04T20:58:38.000Z","updated_at":"2022-04-25T15:46:27.000Z","dependencies_parsed_at":"2022-08-24T14:11:07.895Z","dependency_job_id":null,"html_url":"https://github.com/palmtreephp/wp-mailer","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/palmtreephp%2Fwp-mailer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palmtreephp%2Fwp-mailer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palmtreephp%2Fwp-mailer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palmtreephp%2Fwp-mailer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/palmtreephp","download_url":"https://codeload.github.com/palmtreephp/wp-mailer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241381520,"owners_count":19953749,"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-13T01:07:39.098Z","updated_at":"2025-11-26T22:03:19.299Z","avatar_url":"https://github.com/palmtreephp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :palm_tree: WordPress Mailer\n\n[![License](http://img.shields.io/packagist/l/palmtree/wp-mailer.svg)](LICENSE)\n[![Travis](https://img.shields.io/travis/palmtreephp/wp-mailer.svg)](https://travis-ci.org/palmtreephp/wp-mailer)\n\nSmall OOP wrapper around `wp_mail()`.\n\n## Requirements\n* PHP \u003e= 5.6\n\n## Installation\n\nUse composer to add the package to your dependencies:\n```bash\ncomposer require palmtree/wp-mailer\n```\n\nCreate the Mailer service, usually using a DI container:\n\n```php\n\u003c?php\nuse Palmtree\\WordPress\\Mailer\\Mailer;\n\n$mailer = new Mailer('website@example.org', ['bcc@example.org']);\n```\n\n## Usage\n\n```php\n\u003c?php\nuse Palmtree\\WordPress\\Mailer\\Message;\n\n$message = new Message('to@example.org');\n\n$message\n    -\u003esetSubject('Hello!')\n    -\u003esetBody('\u003cp\u003eHey, this is an HTML email!\u003c/p\u003e')\n    -\u003eaddCc('cc@example.org')\n    -\u003eaddBcc('anotherbcc@example.org');\n\n$message-\u003eattach('/path/to/some/file.pdf');\n\nif ($mailer-\u003esend($message)) {\n    echo 'Sent!';\n} else {\n    echo 'Error sending';\n}\n```\n\n## License\n\nReleased under the [MIT license](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpalmtreephp%2Fwp-mailer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpalmtreephp%2Fwp-mailer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpalmtreephp%2Fwp-mailer/lists"}