MailSender class

A utility class for sending emails using SMTP.

The MailSender class provides a simple interface for sending emails using the mailer package. It allows specifying various email properties and SMTP server configurations, making it easy to send emails programmatically.

Constructors

MailSender()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

sendEmail({required String from, String fromName = '', String host = 'localhost', int port = 1025, required List<String> to, String subject = '', String html = '', String text = '', String? password, String? username, bool ssl = true, bool allowInsecure = true}) Future<bool>
Sends an email using the specified parameters.