sendmail 0.0.4 copy "sendmail: ^0.0.4" to clipboard
sendmail: ^0.0.4 copied to clipboard

PlatformAndroid

Send Email using java jar for android

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:sendmail/sendmail.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  final _sendmailPlugin = Sendmail();


  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          //child: Text('Running on: $_platformVersion\n'),
          child: MaterialButton(
            onPressed: (){
              _sendmailPlugin.sendEmail("user@gmail.com", "password", "Lebanon Exams", "This is a test");
            }, color: Colors.green, child: const Text("Show Alert")
          ),
        ),
      ),
    );
  }
}
0
likes
150
points
1
downloads

Publisher

unverified uploader

Weekly Downloads

Send Email using java jar for android

Documentation

API reference

License

BSD-3-Clause, MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on sendmail

Packages that implement sendmail