socketlabs 0.0.2
socketlabs: ^0.0.2 copied to clipboard

An API client for the SocketLabs email service.

example/example.dart

import 'package:socketlabs/socketlabs.dart';

void main() async {
  final socketLabs = SocketLabsClient(serverId: 'server-id', apiKey: 'api-key');

  final message = BasicMessage(from: Email('from@test'), subject: 'Subject')
    ..to.add(Email('to@email.com'))
    ..textBody = 'Email Content'
    ..htmlBody = '<html><strong>Email Content</strong></html>';

  await socketLabs.send([message]);
}
1
likes
80
pub points
1%
popularity

An API client for the SocketLabs email service.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

http, logging, meta

More

Packages that depend on socketlabs