Skip to content

Commit

Permalink
Merge pull request kaisellgren#100 from close2/dev
Browse files Browse the repository at this point in the history
documentation correction
  • Loading branch information
close2 authored Jul 4, 2019
2 parents f8f6333 + 325dd3a commit 4e29036
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ Known headers (`list-unsubscribe`,...) should have their own subclass.
See [gmail example](example/send_gmail.dart).

```dart
import 'dart:io';
import 'package:mailer/mailer.dart';
import 'package:mailer/smtp_server.dart';
Expand Down Expand Up @@ -124,16 +122,16 @@ main() async {
// Sending multiple messages with the same connection
//
// Create a smtp client that will persist the connection
var client = SmtpPersistentClient(smtpServer);
var connection = PersistentConnection(smtpServer);
// Send the first message
await client.send(message);
await connection.send(message);
// send the equivalent message
await client.send(equivalentMessage);
await connection.send(equivalentMessage);
// close the connection
await client.close();
await connection.close();
}
```
Expand Down

0 comments on commit 4e29036

Please sign in to comment.