{"id":19908717,"url":"https://github.com/PopArtDesign/wordpress-mailer-dsn","last_synced_at":"2025-05-03T02:31:23.439Z","repository":{"id":65964037,"uuid":"603475095","full_name":"PopArtDesign/wordpress-mailer-dsn","owner":"PopArtDesign","description":"WordPress plugin to configure wp_mail() via MAILER_DSN environment variable","archived":false,"fork":false,"pushed_at":"2024-09-10T09:14:06.000Z","size":35,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-29T14:14:58.267Z","etag":null,"topics":["12-factor","phpmailer","wordpress-bedrock","wordpress-development","wordpress-plugin"],"latest_commit_sha":null,"homepage":"","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/PopArtDesign.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":"2023-02-18T16:18:55.000Z","updated_at":"2024-09-10T09:08:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"55bd351e-d63a-402a-9b72-8d376fb3e019","html_url":"https://github.com/PopArtDesign/wordpress-mailer-dsn","commit_stats":{"total_commits":41,"total_committers":3,"mean_commits":"13.666666666666666","dds":0.04878048780487809,"last_synced_commit":"0ace2c16596eb23dc6cec78a35f4c139482d506f"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PopArtDesign%2Fwordpress-mailer-dsn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PopArtDesign%2Fwordpress-mailer-dsn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PopArtDesign%2Fwordpress-mailer-dsn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PopArtDesign%2Fwordpress-mailer-dsn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PopArtDesign","download_url":"https://codeload.github.com/PopArtDesign/wordpress-mailer-dsn/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224084590,"owners_count":17253053,"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":["12-factor","phpmailer","wordpress-bedrock","wordpress-development","wordpress-plugin"],"created_at":"2024-11-12T21:13:04.109Z","updated_at":"2024-11-12T21:13:05.431Z","avatar_url":"https://github.com/PopArtDesign.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WordPress Mailer DSN (Data Source Name)\n\n[![CI](https://github.com/PopArtDesign/wordpress-mailer-dsn/actions/workflows/ci.yml/badge.svg)](https://github.com/PopArtDesign/wordpress-mailer-dsn/actions/workflows/ci.yml)\n\n[WordPress](https://wordpress.org/) plugin to configure [wp_mail()](https://developer.wordpress.org/reference/functions/wp_mail/) via `MAILER_DSN` environment variable.\n\n## Installation\n\nUse the [Composer](https://getcomposer.org/):\n\n```sh\ncomposer require popartdesign/wordpress-mailer-dsn\n```\n\nDon't forget to activate the plugin, if you don't use the `mu-plugins` directory.\n\nDefine (in your `.env` file for example) the `MAILER_DSN` variable like this:\n```sh\nMAILER_DSN='mail://localhost'\n```\n\n## Configuraton\n\nSupported protocols:\n\n- `mail`\n- `sendmail`\n- `qmail`\n- `smtp`\n- `smtps`\n\nAdditional configuration could be applied via query string:\n\n```sh\nMAILER_DSN='mail://localhost?XMailer=SuperMailer\u0026FromName=CoolSite'\n```\n\n[PHPMailer](https://github.com/PHPMailer/PHPMailer) configured by public properties, so you can use any of them. All allowed options could be found at [PHPMailer Docs](https://phpmailer.github.io/PHPMailer/classes/PHPMailer-PHPMailer-PHPMailer.html#toc-properties).\n\n## Examples\n\n### Sendmail\n```sh\nMAILER_DSN='sendmail://localhost?Sendmail=/usr/sbin/sendmail%20-oi%20-t'\n```\n\n### SMTP\n```sh\nMAILER_DSN='smtp://user:password@localhost?SMTPDebug=3\u0026Timeout=1000'\n```\n\n### Gmail\n```sh\nMAILER_DSN='smtps://user@gmail.com:password@smtp.gmail.com:587'\n```\n\n## Advanced\n\nSometimes it's not convinient to configure all options by the only one `MAILER_DSN` variable. For example, if you want to configure [DKIM](https://en.wikipedia.org/wiki/DomainKeys_Identified_Mail), you will end with very long unreadable DSN string. In this cases you can use one of `MAILER_*` variables:\n\n- `MAILER_DEBUG`\n- `MAILER_DEBUG_OUTPUT`\n- `MAILER_FROM`\n- `MAILER_FROM_NAME`\n- `MAILER_SENDER`\n- `MAILER_DKIM_PRIVATE`\n- `MAILER_DKIM_PASSPHRASE`\n- `MAILER_DKIM_SELECTOR`\n- `MAILER_DKIM_IDENTITY`\n- `MAILER_DKIM_DOMAIN`\n- and etc.\n\nSee source code for all available vars.\n\n## License\n\nCopyright (c) Voronkovich Oleg. Distributed under the [MIT](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPopArtDesign%2Fwordpress-mailer-dsn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPopArtDesign%2Fwordpress-mailer-dsn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPopArtDesign%2Fwordpress-mailer-dsn/lists"}