SMTP (Simple Mail Transfer Protocol)

A lightweight, pure Dart solution to send emails directly via SMTP without any third-party dependencies. Perfect for Flutter and Dart applications that need simple, programmatic email sending.

Use Exmaple

void main() async {

  await SMTPService.sendEmailViaSTMP(
    sender: "youremail@gmail.com",
    recipient: "recipient@example.com",
    password: "your_app_password",
    subject: "Hello from Dart!",
    message: "This is a simple test email sent using SMTPService",
  );

  print("Email sent successfully!");
}

Author

Ahmed Wael

Flutter Developer

Passionate about building modern, scalable apps

GitHub: https://github.com/AhmedWaela

Libraries

stmp