v0.1.3
sendgrid_mailer
एक डार्ट पुस्तकालय जो सेंडग्रिड v3 मेल सेंड एपीआई का उपयोग करके ईमेल को बनाने और भेजने के लिए उपयोग किया जाता है।
45लाइक 27530-दिन डाउनलोड120Pub अंक
AndroidiOSWebmacOSWindowsLinux
dylanshine/sendgrid_mailer open-source repository details.
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
sendgrid_mailer is a simple library for composing and sending emails using the SendGrid v3 Mail Send API.
import 'package:sendgrid_mailer/sendgrid_mailer.dart';
main() async {
final mailer = Mailer('<<YOUR_API_KEY>>');
final toAddress = Address('to@example.com');
final fromAddress = Address('from@example.com');
final content = Content('text/plain', 'Hello World!');
final subject = 'Hello Subject!';
final personalization = Personalization([toAddress]);
final email =
Email([personalization], fromAddress, subject, content: [content]);
mailer.send(email).then((result) {
// ...
});
}
This library is licensed under MIT.