{"id":22018401,"url":"https://github.com/biohzrdmx/wp-mandrill-mailer","last_synced_at":"2025-03-23T09:28:38.436Z","repository":{"id":148606099,"uuid":"225932066","full_name":"biohzrdmx/wp-mandrill-mailer","owner":"biohzrdmx","description":"Send transactional email using Mandrill easily and without hassle","archived":false,"fork":false,"pushed_at":"2020-11-27T19:35:37.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-28T16:17:21.819Z","etag":null,"topics":["email-sender","mandrill-api","plugin","wordpress"],"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/biohzrdmx.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-04T18:31:24.000Z","updated_at":"2020-11-27T19:35:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"a4270e62-03fb-436e-b795-fe3d7aa8d7bd","html_url":"https://github.com/biohzrdmx/wp-mandrill-mailer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biohzrdmx%2Fwp-mandrill-mailer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biohzrdmx%2Fwp-mandrill-mailer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biohzrdmx%2Fwp-mandrill-mailer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biohzrdmx%2Fwp-mandrill-mailer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/biohzrdmx","download_url":"https://codeload.github.com/biohzrdmx/wp-mandrill-mailer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245081774,"owners_count":20557841,"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":["email-sender","mandrill-api","plugin","wordpress"],"created_at":"2024-11-30T05:12:06.815Z","updated_at":"2025-03-23T09:28:38.412Z","avatar_url":"https://github.com/biohzrdmx.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wp-mandrill-mailer\n\nSend transactional email using Mandrill easily and without hassle\n\n## Requirements\n\n - WordPress 5.x\n - PHP 5.3+\n - [Mandrill PHP SDK](https://bitbucket.org/mailchimp/mandrill-api-php/src/master/)\n\n## Installation\n\nDownload and unzip into a subfolder of your `wp-content/plugins` folder.\n\nMake sure the folder name is `wp-mandrill-mailer`.\n\nInside that folder you'll find the `lib` folder. Place the contents of the `src` folder from the Mandrill PHP SDK inside it. You should have both `Mandrill.php` and a `Mandrill` folder directly inside `lib`.\n\nThen get the `cacert.pem` file from [this page](https://curl.haxx.se/docs/caextract.html) and upload to the root of the `wp-mandrill-mailer` folder on your WordPress instance.\n\nNow, in your WordPress go to the **Dashboard** and then to **Plugins**, find the **Placeholders** plugin and activate it.\n\nThen again in the Dashboard, go to **Mandrill Mailer** and enter your API key and Pool name (you may enter `Main Pool` to use the default pool).\n\n## Usage\n\nFirst create a message using the `MandrillMessage` class\n\n```php\n# Create a MandrillMessage object and set the subject, from, to, contents, attachments, etc.\n$message = MandrillMessage::newInstance()\n\t-\u003esetSubject('Test')\n\t-\u003esetFrom( array('test@mailinator.com' =\u003e 'Me') )\n\t-\u003esetTo( array('test@mailinator.com' =\u003e 'Me') )\n\t-\u003esetTemplate(get_template_directory() . '/templates/mailing/default.mailing.html')\n\t-\u003esetImages(array('email_header' =\u003e get_template_directory() . '/images/mailing/header.jpg'))\n\t-\u003esetAttachments(array('Test.pdf' =\u003e get_template_directory() . '/files/test.pdf'))\n\t-\u003esetReplacements(array('%email-footer%' =\u003e 'Test'))\n\t-\u003esetContents('\u003ch2\u003eHey you\u003c/h2\u003e');\n```\n\nThen just send your message:\n\n```php\nMandrillMailer::send($message);\n```\n\nThe function will either return `TRUE` if the mail was sent successfully and `FALSE` otherwise.\n\n## Licensing\n\nMIT licensed\n\n## Author\n\nAuthor: biohzrdmx [\u003cgithub.com/biohzrdmx\u003e](https://github.com/biohzrdmx)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiohzrdmx%2Fwp-mandrill-mailer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbiohzrdmx%2Fwp-mandrill-mailer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiohzrdmx%2Fwp-mandrill-mailer/lists"}