Skip to content

Commit 7623582

Browse files
authored
Update README.md
1 parent e1df2cf commit 7623582

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# phpmailer-codeigniter
22

3-
Send mails via phpmailer on codeigniter
3+
Send mails via phpmailer on codeigniter. Can be useful for someone that doesnot want clone complete source of PHP Mailer repository.
44

55
## Usage
66

@@ -13,11 +13,12 @@ $mail = $this->phpmailerlib->load();
1313
### Sample Function
1414

1515
```
16+
Replace USERNAME, PASSWORD, and other variables accordingly
1617
function phpmailer()
17-
{
18-
$this->load->library("PhpMailerLib");
18+
{
19+
$this->load->library("PhpMailerLib");
1920
$mail = $this->phpmailerlib->load();
20-
try {
21+
try {
2122
//Server settings
2223
$mail->SMTPDebug = 2; // Enable verbose debug output
2324
$mail->isSMTP(); // Set mailer to use SMTP

0 commit comments

Comments
 (0)