Search packages, repositories and app categories

Package detailsv4.0.0

emailjs

EmailJS helps sending emails directly from the Flutter app. No server is required.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
1.2K
Likes
46
Pub points
160

Install package

flutter pub add emailjs

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

EmailJS enables direct email sending from Flutter applications without requiring a backend server. It integrates seamlessly with the EmailJS service, allowing developers to send emails using simple API calls. The package supports multiple platforms including Android, iOS, Web, macOS, Windows, and Linux, making it ideal for cross-platform apps. With minimal setup and no need for server infrastructure, it simplifies communication features like contact forms, notifications, and user confirmations. The package is lightweight and easy to implement, focusing on developer convenience and reliability.

Use cases

  • Sending contact form messages
  • User registration confirmations
  • Password reset emails
  • Transactional notifications
  • Automated support replies

Key features

  • No server required
  • Cross-platform support
  • Simple API integration
  • Secure email delivery
  • Real-time email tracking

Suitable for

  • Simple app messaging
  • Serverless applications
  • Developer prototypes
  • Small business apps
  • Frontend-only email needs

Considerations

  • Requires EmailJS account
  • Limited customization compared to custom servers
  • Dependent on third-party service uptime
  • Rate limits apply
  • Not suitable for high-volume enterprise email

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Official EmailJS SDK for Flutter

SDK for EmailJS.com customers.
Use you EmailJS account for sending emails.

Disclaimer

This is a flutter-only version, otherwise use

Links

Official SDK Docs

Intro

EmailJS helps to send emails directly from your code. No server is required – just connect EmailJS to one of the supported email services, create an email template, and use our SDK to trigger an email.

Usage

Install EmailJS SDK:

$ flutter pub add emailjs 

Note: By default, API requests are disabled for non-browser applications. You need to activate them through Account:Security.

FAQ

API calls are disabled for non-browser applications

You need to activate API requests through Account:Security.

Examples

send email

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');
}

init (optional)

import package:emailjs/emailjs.dart as emailjs

// set Public Key as global settings
emailjs.init(const emailjs.Options(
  publicKey: 'YOUR_PUBLIC_KEY',
  privateKey: 'YOUR_PRIVATE_KEY',
));

try {
  // send the email without dynamic variables
  await emailjs.send(
    'YOUR_SERVICE_ID',
    'YOUR_TEMPLATE_ID',
  );
  print('SUCCESS!');
} catch (error) {
  print('$error');
}

Categories

Dependencies

Dependency list 2 items

Source repository

Projects using this package

No data available yet.