Skip to content

Commit

Permalink
Create migration-guide.md
Browse files Browse the repository at this point in the history
  • Loading branch information
quanvo87 authored Apr 6, 2018
1 parent e44a3fa commit 55679ee
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions migration-guide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# 3.0.0 Migration Guide

## Initialize `SMTP`

Before `3.0.0`:

```swift
public init(hostname: String,
email: String,
password: String,
port: Port = Ports.tls.rawValue,
ssl: SSL? = nil,
authMethods: [AuthMethod] = [],
domainName: String = "localhost",
accessToken: String? = nil,
timeout: UInt = 10)
```

`3.0.0`+:

```swift
let smtp = SMTP(hostname: String,
email: String,
password: String,
port: Int32 = 465,
useTLS: Bool = true,
tlsConfiguration: TLSConfiguration? = nil,
authMethods: [AuthMethod] = [],
accessToken: String? = nil,
domainName: String = "localhost",
timeout: UInt = 10)
```

## Renamed

- `SSL` renamed to `TLSConfiguration`

## Removed

- `Port` typealias

## Other Changes

- `Mail` properties are now public

0 comments on commit 55679ee

Please sign in to comment.