-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ Just add following line package to your `Package.swift` file. | |
|
||
Usage is really simple mkey! | ||
|
||
## 1) Configure | ||
## 1/3) Configure | ||
|
||
First create your client configuration: | ||
|
||
|
@@ -80,7 +80,7 @@ let smtp = SMTP(hostname: String, | |
let config = Mailer.Config.smtp(smtp) | ||
``` | ||
|
||
## 2) Register service | ||
## 2/3) Register service | ||
|
||
Register and configure the service in your apps `configure` method. | ||
|
||
|
@@ -90,7 +90,7 @@ Mailer(config: config, registerOn: &services) | |
|
||
`Mailer.Config` is an `enum` and you can choose from any integrated services to be used | ||
|
||
## 3) Send an email | ||
## 3/3) Send an email | ||
|
||
```swift | ||
let mail = Mailer.Message(from: "[email protected]", to: "[email protected]", subject: "Oil spill", text: "Oooops I did it again", html: "<p>Oooops I did it again</p>") | ||
|