Skip to content

Commit a537002

Browse files
committed
update docs
1 parent d1e524c commit a537002

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# CodeIgniter Multiple SMTP Configuration
2+
23
A lightweight Multi-SMTP configuration helper for your CodeIgniter 4 application. This package allows you to use different email accounts simultaneously.
34

45
![CodeIgniter](https://img.shields.io/badge/CodeIgniter-%5E4.8-blue)
@@ -18,6 +19,34 @@ php spark smtpconfig:publish
1819

1920
After that, check the `app/Config/MultiEmail.php` file, and set it up with your email credentials.
2021

22+
## Configuring SMTP in the `.env` File
23+
24+
We recommend setting the configuration for each SMTP email in the `.env` file instead of using `app/Config/MultiEmail`.
25+
26+
For example, you can proceed as follows:
27+
28+
```
29+
#--------------------------------------------------------------------
30+
# MULTI-SMTP CONFIGURATION SETTINGS
31+
#--------------------------------------------------------------------
32+
33+
# email.default.fromName =
34+
# email.default.fromEmail =
35+
# email.default.protocol = smtp
36+
# email.default.SMTPUser =
37+
# email.default.SMTPPass =
38+
# email.default.SMTPHost = smtp.gmail.com
39+
# email.default.SMTPPort = 587
40+
41+
# email.outlook.fromName =
42+
# email.outlook.fromEmail =
43+
# email.outlook.protocol = smtp
44+
# email.outlook.SMTPUser =
45+
# email.outlook.SMTPPass =
46+
# email.outlook.SMTPHost = smtp.office365.com
47+
# email.outlook.SMTPPort = 587
48+
```
49+
2150
## Usage
2251

2352
```php

0 commit comments

Comments
 (0)