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
150
points
55
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

http, logging

More

Packages that depend on socketlabs