{"id":21700139,"url":"https://github.com/wp-digital/wp-mail-helpers","last_synced_at":"2025-04-12T13:34:02.433Z","repository":{"id":56991751,"uuid":"250203538","full_name":"wp-digital/wp-mail-helpers","owner":"wp-digital","description":null,"archived":false,"fork":false,"pushed_at":"2020-04-27T16:57:50.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-05T01:32:53.233Z","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/wp-digital.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":"2020-03-26T08:38:19.000Z","updated_at":"2023-07-23T15:18:49.000Z","dependencies_parsed_at":"2022-08-21T12:20:34.784Z","dependency_job_id":null,"html_url":"https://github.com/wp-digital/wp-mail-helpers","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-digital%2Fwp-mail-helpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-digital%2Fwp-mail-helpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-digital%2Fwp-mail-helpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-digital%2Fwp-mail-helpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wp-digital","download_url":"https://codeload.github.com/wp-digital/wp-mail-helpers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248573438,"owners_count":21126829,"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-25T20:13:00.608Z","updated_at":"2025-04-12T13:34:02.411Z","avatar_url":"https://github.com/wp-digital.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mail Helpers\n\n### Description\n\nOverrides mail From headers, adds check of mail functionality.\n\n### Install\n\n- Preferable way is to use [Composer](https://getcomposer.org/):\n\n    ````\n    composer require innocode-digital/wp-mail-helpers\n    ````\n\n    By default it will be installed as [Must Use Plugin](https://codex.wordpress.org/Must_Use_Plugins).\n    But it's possible to control with `extra.installer-paths` in `composer.json`.\n\n- Alternate way is to clone this repo to `wp-content/mu-plugins/` or `wp-content/plugins/`:\n\n    ````\n    cd wp-content/plugins/\n    git clone git@github.com:innocode-digital/wp-mail-helpers.git\n    cd wp-mail-helpers/\n    composer install\n    ````\n\nIf plugin was installed as regular plugin then activate **Mail Helpers** from Plugins page \nor [WP-CLI](https://make.wordpress.org/cli/handbook/): `wp plugin activate wp-mail-helpers`.\n\n### Usage\n\n#### Constants\n\nIf it's needed to override **From** mail headers in all emails then next constant should be\nadded (usually to `wp-config.php`):\n\n````\ndefine( 'MAIL_FROM_ADDRESS', '' );\ndefine( 'MAIL_FROM_NAME', '' );\n````\n\n##### Notes\n\nIt's not required to set both constants, in most cases you only need to set `MAIL_FROM_ADDRESS`.\n\nPlugin sets hook with pretty big priority `9999` but another plugins and themes could set \nbigger value and in this case you should change priority according to your needs, e.g.:\n\n```\nif ( function_exists( 'innocode_mail_helpers' ) ) {\n    remove_filter( 'wp_mail_from', [ innocode_mail_helpers(), 'mail_from' ], 9999 );\n    add_filter( 'wp_mail_from', [ innocode_mail_helpers(), 'mail_from' ], 10001 );\n}\n```\n\n#### Settings\n\nThere is a possibility to set **From** mail headers in WordPress administration panel:\n**Settings** \u003e **Mail**. **From Email** should be verified in a similar way like WordPress\nverifies **Administration Email Address**. These settings have bigger priority than constants.\n\n#### Tools\n\nPlugin adds a tool for testing mail functionality. You can send a test email in WordPress\nadministration panel from **Tools** \u003e **Mail** page.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp-digital%2Fwp-mail-helpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwp-digital%2Fwp-mail-helpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp-digital%2Fwp-mail-helpers/lists"}