{"id":43479517,"url":"https://github.com/mantisbt-plugins/mailtemplate","last_synced_at":"2026-02-03T08:13:56.387Z","repository":{"id":227615592,"uuid":"771932345","full_name":"mantisbt-plugins/mailtemplate","owner":"mantisbt-plugins","description":"Enable html emails (not a true plugin)","archived":false,"fork":false,"pushed_at":"2025-01-19T10:27:51.000Z","size":147,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-01-19T11:27:12.517Z","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/mantisbt-plugins.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-14T08:12:54.000Z","updated_at":"2025-01-19T10:27:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"e798751b-3057-4d82-9828-8cea1fede8f0","html_url":"https://github.com/mantisbt-plugins/mailtemplate","commit_stats":null,"previous_names":["mantisbt-plugins/mailtemplate"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mantisbt-plugins/mailtemplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mantisbt-plugins%2Fmailtemplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mantisbt-plugins%2Fmailtemplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mantisbt-plugins%2Fmailtemplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mantisbt-plugins%2Fmailtemplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mantisbt-plugins","download_url":"https://codeload.github.com/mantisbt-plugins/mailtemplate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mantisbt-plugins%2Fmailtemplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29038049,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T06:39:36.383Z","status":"ssl_error","status_checked_at":"2026-02-03T06:39:32.787Z","response_time":96,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-02-03T08:13:56.314Z","updated_at":"2026-02-03T08:13:56.377Z","avatar_url":"https://github.com/mantisbt-plugins.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\r\n# Enabling HTML emails within Mantisbt\r\n\r\nThis is not a plugin but a guide to use templated HTML emails within MantisBT.\r\n\r\nVersion 20250104\r\n\r\n## Copyright\r\n\r\n\t- 2020/2025 Cas Nuy (www.NUY.info)\r\n\t\r\n## License                                                                                    \r\n\r\nReleased under the [GPL v3 license](http://opensource.org/licenses/GPL-3.0).\r\n\r\n## Requirements\r\n\t- MantisBT version 2.25 or higher\r\n\r\n## Installation\r\n\r\n1. Backup the following files from your Mantis installation:\r\n    - `config/config_inc.php` \r\n    - `core/email_api.php` \r\n\r\n2. Next, perform the following copy operations:\r\n    a. Copy `~/distribution/core/template_api.php` into `~/mantis/core/` folder.\r\n    b. Copy `~/distribution/core/templates/` folder into `~/mantis/core/` folder.\r\n\r\n3. If using Mantis 2.25:\r\n    - Copy `~/distribution/core/email_api-225.php` to `~/mantis/core/` folder.\r\n\r\n4. If using Mantis 2.26:\r\n    - Copy `~/distribution/core/email_api-226.php` to `~/mantis/core/` folder.\r\n\r\n5. If using Mantis 2.27:\r\n    - Copy `~/distribution/core/email_api-227.php` to `~/mantis/core/` folder.\r\n\r\n5. For Mantis 2.25, 2.26 and 2.27:\r\n    - Rename `~/mantis/core/email_api-XXX.php` to `~/mantis/core/email_api.php`.\r\n\r\n7. Next, edit `~/distribution/config/entries-config_inc.php`:\r\n    - Change paths below to reflect the actual path to your Mantis installation (typically `/var/www/html/`, but may vary):\r\n        - `$g_newbug_mailtemplate = \"/path/to/mantis/core/templates/newbug_mailtemplate.html\";`\r\n        - `$g_bug_mailtemplate = \"/path/to/mantis/core/templates/bug_mailtemplate.html\";`\r\n        - `$g_note_mailtemplate = \"/path/to/mantis/core/templates/note_mailtemplate.html\";`\r\n\r\n8. Finally, paste entire text in `~/distribution/config/entries-config_inc.php` to the bottom of `~/mantis/config/config_inc.php`.\r\n\r\n\r\n## Configuration\r\n\r\nBasic configuration is done within config/config_inc.php:\r\n\r\n### config/config_inc.php\r\n\r\n- $g_use_mailtemplate\t\t= ON;  # OFF will disable mailhtml\r\n- $g_escape_mailtemplate\t= OFF;\r\n- $g_default_email_bugnote_limit= 0;   # Standard mantis setting (Users can override this in their account settings.)\r\n\r\n### Template lay-outs\r\n\r\nAfter installation, template files are located in ~/mantis/core/templates/\r\n\r\nThree layouts are provided:\r\n- bug_mailtemplate.html\r\n- newbug_mailtemplate.html\r\n- note_mailtemplate.html\r\n\r\nVarious fields from Mantis may be inserted into the templates. A full list of available Mantis fields are located at the top of each template file. \r\n\r\nEach file is fully customizable. Logos are also supported via img tags. \r\n\r\nBack up files prior to making edits. \r\n\r\n## Support\r\n\r\nFile bug reports and submit questions on the\r\n[GitHub issues tracker](http://github.com/mantisbt-plugins/mailtemplate/issues).\r\n\r\n## Warning\r\n\r\nRemember that when upgrading you will need to adjust core/email_api.php again:(\u003cbr\u003e\r\nIn case there is no prepared email-api.php, you can do it manual.\u003cbr\u003e\r\nAll entries are marked with a start and ending indicator like \"## CN-start\" and \"## CN-end\"\r\n\r\n## Remarks\r\nPlease let me know how to further improve.....\u003cbr\u003e\r\nI have made a pull request for the Mantis team to add this funcionality into Mantis itself.\u003cbr\u003e\r\nLet's hope it is approved.\u003cbr\u003e\r\n\r\n \r\nHave a blast!\r\n\r\n## changes\r\n\r\n08-10-2020\tInitial version\u003cbr\u003e\r\n26-10-2020\tBugfixes\u003cbr\u003e\r\n25-06-2022\tAdded Escape funtion\u003cbr\u003e\r\n25-06-2022\tAdded special template for new issues\u003cbr\u003e\r\n17-08-2022\tMade the Escape function configurable (config_inc.php \u0026 core/email_api.php)\u003cbr\u003e\r\n17-08-2022\tFixed minor lay-out issues in template_api.php\u003cbr\u003e\r\n14-03-2024\tAdded improved readme\u003cbr\u003e\r\n14-03-2024\tAdded sample email_api.php for MantisBT version 2.26\u003cbr\u003e\r\n12-04-2024\tAdded 4 fields to bug_note_template\u003cbr\u003e\r\n12-04-2024\tDocumented all fields for (and within) the bug_note_template\u003cbr\u003e\r\n12-04-2024 \tMerged various updates/fixes from pkbarbiedoll (thanks for that)\u003cbr\u003e\r\n04-01-2025\tAdded prepared email-api.php for mantis 2.27\u003cbr\u003e\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmantisbt-plugins%2Fmailtemplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmantisbt-plugins%2Fmailtemplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmantisbt-plugins%2Fmailtemplate/lists"}