socketlabs 0.1.0 copy "socketlabs: ^0.1.0" to clipboard
socketlabs: ^0.1.0 copied to clipboard

An API client for the SocketLabs email service, that allows you to send emails using their REST API.

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
130
pub points
39%
popularity

Publisher

unverified uploader

An API client for the SocketLabs email service, that allows you to send emails using their REST API.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

http, logging

More

Packages that depend on socketlabs