{"id":15508489,"url":"https://github.com/anthonynahas/ngx-mailto","last_synced_at":"2025-04-23T02:21:09.381Z","repository":{"id":72156955,"uuid":"316047981","full_name":"AnthonyNahas/ngx-mailto","owner":"AnthonyNahas","description":"Angular library simplifying generation of mailto links with TS ","archived":false,"fork":false,"pushed_at":"2023-11-19T09:41:34.000Z","size":5169,"stargazers_count":12,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-20T00:23:26.668Z","etag":null,"topics":["angular","email","email-sender","mailto","ngx"],"latest_commit_sha":null,"homepage":"https://anthonynahas.github.io/ngx-mailto","language":"TypeScript","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/AnthonyNahas.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":"anthonynahas","patreon":null,"open_collective":null,"ko_fi":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-11-25T20:34:40.000Z","updated_at":"2023-07-05T11:30:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"8d4c7693-68c7-4ba3-bc71-d8ba711a4c16","html_url":"https://github.com/AnthonyNahas/ngx-mailto","commit_stats":{"total_commits":80,"total_committers":2,"mean_commits":40.0,"dds":"0.16249999999999998","last_synced_commit":"7dbacfa9daa7fd1d09c0cde0279c644ae82802b7"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnthonyNahas%2Fngx-mailto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnthonyNahas%2Fngx-mailto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnthonyNahas%2Fngx-mailto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnthonyNahas%2Fngx-mailto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AnthonyNahas","download_url":"https://codeload.github.com/AnthonyNahas/ngx-mailto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250354801,"owners_count":21416788,"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":["angular","email","email-sender","mailto","ngx"],"created_at":"2024-10-02T09:38:48.179Z","updated_at":"2025-04-23T02:21:09.344Z","avatar_url":"https://github.com/AnthonyNahas.png","language":"TypeScript","funding_links":["https://github.com/sponsors/anthonynahas"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"angular-material-extensions's logo\"\n   height=\"256px\" width=\"256px\" style=\"text-align: center;\" \n   src=\"https://cdn.jsdelivr.net/gh/anthonynahas/ngx-mailto@master/assets/angular-material-extensions-logo.svg\"\u003e\n\u003c/p\u003e\n\n# ngx-mailto - Angular library simplifying generation of mailto links with Typescript\n\n[![npm version](https://badge.fury.io/js/ngx-mailto.svg)](https://badge.fury.io/js/ngx-mailto)\n[![npm demo](https://img.shields.io/badge/demo-online-ed1c46.svg)](https://anthonynahas.github.io/ngx-mailto)\n[![docs: typedoc](https://img.shields.io/badge/docs-typedoc-4D0080.svg)](https://anthonynahas.github.io/ngx-mailto/doc/index.html)\n[![Join the chat at https://gitter.im/angular-material-extensions/Lobby](https://badges.gitter.im/angular-material-extensions/Lobby.svg)](https://gitter.im/angular-material-extensions/Lobby?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n[![license](https://img.shields.io/github/license/anthonynahas/ngx-mailto.svg?style=flat-square)](https://github.com/AnthonyNahas/ngx-mailto/blob/master/LICENSE)\n\nfrom \n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"ngx-mailto demonstration\" style=\"text-align: center;\"\n   src=\"https://raw.githubusercontent.com/anthonynahas/ngx-mailto/HEAD/assets/ex1.png\"\u003e\n\u003c/p\u003e\n\nto --\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"ngx-mailto demonstration\" style=\"text-align: center;\"\n   src=\"https://raw.githubusercontent.com/anthonynahas/ngx-mailto/HEAD/assets/ex2.png\"\u003e\n\u003c/p\u003e\n\n\n## Built by and for developers :heart:\nDo you have any question or suggestion ? Please do not hesitate to contact us!\nAlternatively, provide a PR | open an appropriate issue [here](https://github.com/AnthonyNahas/ngx-mailto/issues)\n\nIf you like this project, support [angular-material-extensions](https://github.com/angular-material-extensions) \nby starring :star: and sharing it :loudspeaker:\n\n## Table of Contents\n- [Demo](#demo)\n- [Dependencies](#dependencies)\n- [Installation](#installation)\n- [API](#api)\n- [Usage](#usage)\n- [Run Demo App Locally](#run-demo-app-locally)\n- [Other Angular Libraries](#other-angular-libraries)\n- [Support](#support)\n- [License](#license)\n\n\u003ca name=\"demo\"/\u003e\n\n## [Demo](https://anthonynahas.github.io/ngx-mailto)\n\nView all the directives and components in action at [https://anthonynahas.github.io/ngx-mailto](https://anthonynahas.github.io/ngx-mailto)\n\n---\n\n\u003ca name=\"dependencies\"/\u003e\n\n## Dependencies\n* [Angular](https://angular.io) developed and tested with `15.x`\n\n---\n\n\u003ca name=\"installation\"/\u003e\n\n##  [Installation](https://anthonynahas.github.io/ngx-mailto/getting-started)\n\n## 1. Install via *ng add*. (Recommended)\n\n\nNow add the library via the `angular schematics`\n```shell\nng add ngx-mailto\n```\n\n## 2. Install via *npm*. (Alternative) \n\nNow install `ngx-mailto` via:\n```shell\nnpm install --save ngx-mailto\n```\n\n\n### Import the library\n\nIf you installed the library via angular schematics, you can skip this step\n\n\n```typescript\nimport { NgxMailtoModule } from 'ngx-mailto'; \n\n@NgModule({\n  declarations: [AppComponent, ...],\n  imports: [NgxMailtoModule, ...],  \n  bootstrap: [AppComponent]\n})\nexport class AppModule {\n}\n```\n\nOther modules in your application like for lazy loading import ` NgxMailtoModule ` into your feature module:\n\n\n\u003ca name=\"api\"/\u003e\n\n## API\n\n\n```typescript\n interface Mailto {\n  receiver?: string | string[];\n  subject?: string;\n  cc?: string | string[];\n  bcc?: string | string[];\n  body?: string;\n}\n```\n\n\n\u003ca name=\"usage\"/\u003e\n\n## [Usage](https://anthonynahas.github.io/ngx-mailto)\n\n\n#### via service `NgxMailtoService`\n\n\n```html\n\u003cbutton class=\"try-me\" mat-raised-button color=\"primary\" (click)=\"open()\"\u003eTry Me!\u003c/button\u003e\n```\n\n```typescript\n\nimport { Mailto, NgxMailtoService } from 'ngx-mailto';\n\n emails: string[] = ['your_email@domain.de'];\n  cc: string[] = [];\n  bcc: string[] = [];\n  subject!: string;\n  body!: string;\n\n  mailto: Mailto = {\n    receiver: this.emails,\n    cc: this.cc,\n    bcc: this.bcc,\n    subject: undefined,\n    body: undefined\n  };\n\n constructor(private mailtoService: NgxMailtoService) {\n  }\n\n\nopen(): void {\n    this.mailtoService.open(this.mailto);\n  }\n\n```\n\n\n#### via pipe `mailto`\n\n```html\n\u003ca class=\"try-me\" mat-raised-button color=\"accent\" [href]=\"this.mailto | mailto\"\u003eTry me!\u003c/a\u003e\n```\n\n\n\n\u003ca name=\"run-demo-app-locally\"/\u003e\n\n###  Run Demo App Locally\n\nBuild the library\n\n```bash\n$ npm run build:lib\n```\n\nServe the demo app\n\n```bash\n$ npm start\n```\n\n\n\n## Other Angular Libraries\n- [ngx-auth-firebaseui](https://github.com/AnthonyNahas/ngx-auth-firebaseui)\n- [ngx-linkifyjs](https://github.com/AnthonyNahas/ngx-linkifyjs)\n- [@angular-material-extensions/password-strength](https://github.com/angular-material-extensions/password-strength)\n- [@angular-material-extensions/google-maps-autocomplete](https://github.com/angular-material-extensions/google-maps-autocomplete)\n- [@angular-material-extensions/link-preview](https://github.com/angular-material-extensions/link-preview)\n- [@angular-material-extensions/fab-menu](https://github.com/angular-material-extensions/fab-menu)\n- [@angular-material-extensions/select-country](https://github.com/angular-material-extensions/select-country)\n- [@angular-material-extensions/select-icon](https://github.com/angular-material-extensions/select-icon)\n- [@angular-material-extensions/pages](https://github.com/angular-material-extensions/pages)\n- [@angular-material-extensions/contacts](https://github.com/angular-material-extensions/contacts)\n---\n\n\u003ca name=\"support\"/\u003e\n\n## Support\n+ Drop an email to: [Anthony Nahas](mailto:anthony.na@hotmail.de)\n+ or open an appropriate [issue](https://github.com/angular-material-extensions/ngx-mailto/issues)\n+ let us chat on [Gitter](https://gitter.im/angular-material-extensions/Lobby)\n \n Built by and for developers :heart: we will help you :punch:\n\n---\n\n## Who is using ngx-mailto? Awesome apps?\n\n1. [Nahaus.de](https://nahaus.de)\n\n\nAre you missing your project or you app? PR me to publish it on the README\n\n---\n\n![jetbrains logo](https://raw.githubusercontent.com/anthonynahas/ngx-mailto/HEAD/assets/jetbrains-variant-4_logos/jetbrains-variant-4.png)\n\nThis project is supported by [jetbrains](https://www.jetbrains.com/) with 1 ALL PRODUCTS PACK OS LICENSE incl. [webstorm](https://www.jetbrains.com/webstorm)\n\n---\n\n\u003ca name=\"license\"/\u003e\n\n## License\n\nCopyright (c) 2022 [Anthony Nahas](https://github.com/AnthonyNahas). Licensed under the MIT License (MIT) \u003cp align=\"center\"\u003e\n                                                                                                            \u003cimg alt=\"angular-material-extensions's logo\"\n                                                                                                             height=\"92px\" width=\"92px\" style=\"text-align: center;\" \n                                                                                                             src=\"https://cdn.jsdelivr.net/gh/anthonynahas/ngx-mailto@master/assets/badge_made-in-germany.svg\"\u003e\n                                                                                                          \u003c/p\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonynahas%2Fngx-mailto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanthonynahas%2Fngx-mailto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonynahas%2Fngx-mailto/lists"}