File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ You need to add library to `Package.swift` file:
31
31
32
32
- add package to dependencies:
33
33
``` swift
34
- .package (url : " https://github.com/Mikroservices /Smtp.git" , from : " 3.0.0" )
34
+ .package (url : " https://github.com/PassiveLogic /Smtp.git" , from : " 3.0.0" )
35
35
```
36
36
37
37
- and add product to your target:
@@ -132,7 +132,7 @@ request.smtp.send(email) { message in
132
132
After cloning the repository you can open it in Xcode.
133
133
134
134
``` bash
135
- $ git clone https://github.com/Mikroservices /Smtp.git
135
+ $ git clone https://github.com/PassiveLogic /Smtp.git
136
136
$ cd Smtp
137
137
$ open Package.swift
138
138
```
Original file line number Diff line number Diff line change 6
6
7
7
import Foundation
8
8
9
- public struct Attachment {
9
+ public struct Attachment : Codable {
10
10
public let name : String
11
11
public let contentType : String
12
12
public let data : Data
Original file line number Diff line number Diff line change 7
7
import Foundation
8
8
import NIO
9
9
10
- public struct Email {
10
+ public struct Email : Codable {
11
11
public let from : EmailAddress
12
12
public let to : [ EmailAddress ] ?
13
13
public let cc : [ EmailAddress ] ?
Original file line number Diff line number Diff line change 4
4
// Licensed under the MIT License.
5
5
//
6
6
7
- public struct EmailAddress {
7
+ public struct EmailAddress : Codable {
8
8
public let address : String
9
9
public let name : String ?
10
10
You can’t perform that action at this time.
0 commit comments