Skip to content
pubscout

emailjs

4.0.0, released 2 years ago by emailjs.com

Send emails directly from Flutter using EmailJS without a server.

WASM-ready
$ flutter pub add emailjs
Source repository

What it does

EmailJS allows Flutter apps to send emails via the EmailJS service by calling a REST API. It requires an EmailJS account and API keys, and supports optional throttling and blocklisting.

AI-written summary of version 4.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • Need to send emails from a Flutter app without a backend server
  • Using EmailJS service for email templates
  • Want built‑in data validation and throttling

Skip it when

  • No EmailJS account or plan
  • Need advanced email features like attachments or custom SMTP

Strengths

  • No server required
  • Easy integration with EmailJS account
  • Built‑in validation and throttling
  • Cross‑platform support

Weaknesses

  • Requires EmailJS account and API keys
  • API calls disabled by default for non‑browser apps
  • Limited to EmailJS service

Setup

Kind
Flutter widgets
Effort
Medium
Code generation
No
Direct dependencies
2

Enable API requests in EmailJS account security settings, add package via flutter pub add, provide public and private keys in Options or init, optionally configure blocklist/limitrate.

import package:emailjs/emailjs.dart as emailjs

Map<String, dynamic> templateParams = {
  'name': 'James',
  'notes': 'Check this out!'
};

try {
  await emailjs.send(
    'YOUR_SERVICE_ID',
    'YOUR_TEMPLATE_ID',
    templateParams,
    const emailjs.Options(
      publicKey: 'YOUR_PUBLIC_KEY',
      privateKey: 'YOUR_PRIVATE_KEY',
    ),
  );
  print('SUCCESS!');
} catch (error) {
  print('$error');
}

Alternatives

Packages that do the same job and could replace emailjs.

Works with

Packages commonly used together with emailjs: ones it builds on, ones built on it, and its own family.