{"id":14987203,"url":"https://github.com/warcooft/codeigniter4-multi-smtp-config","last_synced_at":"2026-03-07T18:31:08.332Z","repository":{"id":255435882,"uuid":"849681870","full_name":"warcooft/codeigniter4-multi-smtp-config","owner":"warcooft","description":"Lightweight Multi-SMTP Configuration Helper for Your CodeIgniter 4 Application","archived":false,"fork":false,"pushed_at":"2024-09-01T10:34:04.000Z","size":34,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-12-08T11:48:14.218Z","etag":null,"topics":["codeigniter","codeigniter4","email","mailer","php","php8","smtp"],"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/warcooft.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":"2024-08-30T03:37:52.000Z","updated_at":"2024-09-01T10:33:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"3cac82bd-32c4-4207-9ee0-6a37d938b0e6","html_url":"https://github.com/warcooft/codeigniter4-multi-smtp-config","commit_stats":{"total_commits":30,"total_committers":1,"mean_commits":30.0,"dds":0.0,"last_synced_commit":"1b6126b3cff07916a60ec34f8d58c260f87ffb17"},"previous_names":["warcooft/codeigniter4-multi-smtp-config"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/warcooft/codeigniter4-multi-smtp-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warcooft%2Fcodeigniter4-multi-smtp-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warcooft%2Fcodeigniter4-multi-smtp-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warcooft%2Fcodeigniter4-multi-smtp-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warcooft%2Fcodeigniter4-multi-smtp-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/warcooft","download_url":"https://codeload.github.com/warcooft/codeigniter4-multi-smtp-config/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warcooft%2Fcodeigniter4-multi-smtp-config/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30226245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T18:12:09.766Z","status":"ssl_error","status_checked_at":"2026-03-07T18:11:58.786Z","response_time":53,"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":["codeigniter","codeigniter4","email","mailer","php","php8","smtp"],"created_at":"2024-09-24T14:14:14.974Z","updated_at":"2026-03-07T18:31:08.123Z","avatar_url":"https://github.com/warcooft.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeIgniter Multiple SMTP Configuration\n\nA lightweight Multi-SMTP configuration helper for your CodeIgniter 4 application. This package allows you to use different email accounts simultaneously.\n\n![CodeIgniter](https://img.shields.io/badge/CodeIgniter-%5E4.4.8-blue)\n![PHP Version Require](https://img.shields.io/badge/PHP-%5E8.0-blue)\n\n## Installation\n\n```\ncomposer require aselsan/codeigniter4-multi-smtp-config\n```\n\n## Publish File Config\n\n```\nphp spark smtpconfig:publish\n```\n\nAfter that, check the `app/Config/MultiEmail.php` file, and set it up with your email credentials.\n\n## Configuring SMTP in the `.env` File\n\nWe recommend setting the configuration for each SMTP email in the `.env` file instead of using `app/Config/MultiEmail.php`.\n\nFor example, you can proceed as follows:\n\n```\n#--------------------------------------------------------------------\n# MULTI-SMTP CONFIGURATION SETTINGS\n#--------------------------------------------------------------------\n\n# email.default.fromName =\n# email.default.fromEmail =\n# email.default.protocol = smtp\n# email.default.SMTPUser =\n# email.default.SMTPPass =\n# email.default.SMTPHost = smtp.gmail.com\n# email.default.SMTPPort = 587\n\n# email.outlook.fromName =\n# email.outlook.fromEmail =\n# email.outlook.protocol = smtp\n# email.outlook.SMTPUser =\n# email.outlook.SMTPPass =\n# email.outlook.SMTPHost = smtp.office365.com\n# email.outlook.SMTPPort = 587\n```\n\n## Usage\n\n```php\nhelper('multi_email');\n\n$email = multi_email(['mailType' =\u003e 'html']);\n$email-\u003esetTo('example@gmail.com');\n$email-\u003esetSubject(\"Test Send Mail\");\n$email-\u003esetMessage('Hi, Bonjour');\n\nif ($email-\u003esend(false) === false) {\n       throw new Exception('Cannot send email:' . $email-\u003eprintDebugger(['headers']));\n}\n\n// Clear the email\n$email-\u003eclear();\n```\n\nYou can use a different mail config by providing the group name in the second parameter.\n\n```php\nhelper('multi_email');\n\n$email = multi_email(['mailType' =\u003e 'html'], 'outlook');\n$email-\u003esetTo('example@gmail.com');\n$email-\u003esetSubject(\"Test Send Mail\");\n$email-\u003esetMessage('Hi, Bonjour');\n\nif ($email-\u003esend(false) === false) {\n       throw new Exception('Cannot send email:' . $email-\u003eprintDebugger(['headers']));\n}\n\n// Clear the email\n$email-\u003eclear();\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](/LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwarcooft%2Fcodeigniter4-multi-smtp-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwarcooft%2Fcodeigniter4-multi-smtp-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwarcooft%2Fcodeigniter4-multi-smtp-config/lists"}