{"id":14983655,"url":"https://github.com/donkeycode/mail-bundle","last_synced_at":"2025-04-10T19:04:30.478Z","repository":{"id":56971130,"uuid":"73966834","full_name":"donkeycode/mail-bundle","owner":"donkeycode","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-19T17:02:59.000Z","size":25,"stargazers_count":3,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T16:45:56.494Z","etag":null,"topics":["bundle","symfony","symfony-bundle","symfony2","symfony3","twig"],"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/donkeycode.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":"2016-11-16T22:26:05.000Z","updated_at":"2021-04-20T11:04:12.000Z","dependencies_parsed_at":"2024-07-19T19:10:35.545Z","dependency_job_id":null,"html_url":"https://github.com/donkeycode/mail-bundle","commit_stats":{"total_commits":18,"total_committers":4,"mean_commits":4.5,"dds":"0.16666666666666663","last_synced_commit":"fd9c49719fd4d34ed287e4920fa79d72422afdd2"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkeycode%2Fmail-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkeycode%2Fmail-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkeycode%2Fmail-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkeycode%2Fmail-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/donkeycode","download_url":"https://codeload.github.com/donkeycode/mail-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248130415,"owners_count":21052741,"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":["bundle","symfony","symfony-bundle","symfony2","symfony3","twig"],"created_at":"2024-09-24T14:07:44.273Z","updated_at":"2025-04-10T19:04:30.442Z","avatar_url":"https://github.com/donkeycode.png","language":"PHP","readme":"# MailBundle\n\nAn easy way to send mail with twig and swift\n\n## Setup\n\n````\ncomposer require donkeycode/mail-bundle\n````\n\nAdd in `AppKernel.php`\n\n````\nnew DonkeyCode\\MailBundle\\DonkeyCodeMailBundle(),\n````\n\n## Configuration\n\n````\ndonkey_code_mail:\n    mail_from: null\n    reply_to: null\n    options:\n        header_bg: '#2d7cff'\n        header_txt_color: '#ffffff'\n        bg: '#efefef'\n        txt_color: '#555555'\n        font_family: 'Helvetica Neue'\n````\n\n\n## Usage\n\nCreate your twig\n\n\n````\n{% block subject %}\nSubject of mail\n{% endblock %}\n\n{% block body %}\n    {% embed \"DonkeyCodeMailBundle:Mails:layout.html.twig\" %}\n    {# For sf4 #}\n    {% embed \"@DonkeyCodeMail/Mails/layout.html.twig\" %}\n        {% block title %}Header{% endblock %}\n        {% block content %}\n            Body Of mail\n        {% endblock %}\n\n    {% endembed %}\n{% endblock %}\n````\n\n\n\nSend it simply\n\n````\n$mailer = $this-\u003egetContainer()\n    -\u003eget('donkeycode.mailer')\n    -\u003ecreateMessage()\n    -\u003esetTemplate('YourBundle:Mails:invoices.html.twig', [\n        'invoices' =\u003e $invoices,\n    ])\n    -\u003esetTo($destMail)\n    -\u003esend();\n````\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonkeycode%2Fmail-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdonkeycode%2Fmail-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonkeycode%2Fmail-bundle/lists"}