Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,7 @@ List of all parameters:
* senderName (required) - name of sender email
* senderPassword (required) - password for sender email
* recipients (required) - list which contains recipient emails
* senderUsername (optional) - if the SMTP username is different from senderEmail, it can be set
* enableSSL (optional) - if your email provider supports SSL, you can enable this option
* enableDeviceParameters (optional) - please look in console handler description
* enableApplicationParameters (optional) - please look in console handler description
Expand Down
4 changes: 3 additions & 1 deletion lib/handlers/email_auto_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class EmailAutoHandler extends BaseEmailHandler {
final String senderEmail;
final String senderName;
final String senderPassword;
final String? senderUsername;
final bool enableSsl;
final List<String> recipients;
final bool sendHtml;
Expand All @@ -23,6 +24,7 @@ class EmailAutoHandler extends BaseEmailHandler {
this.senderName,
this.senderPassword,
this.recipients, {
this.senderUsername,
this.enableSsl = false,
this.sendHtml = true,
this.printLogs = false,
Expand Down Expand Up @@ -85,7 +87,7 @@ class EmailAutoHandler extends BaseEmailHandler {
smtpHost,
port: smtpPort,
ssl: enableSsl,
username: senderEmail,
username: senderUsername ?? senderEmail,
password: senderPassword,
);
}
Expand Down