try to fix mailbox
This commit is contained in:
parent
94ba4801a9
commit
8818825f17
1 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,7 @@ class MailClientController extends AutoDisposeAsyncNotifier<MailClient> {
|
|||
password: (await File(settings.smtpPasswordFile).readAsString()).trim(),
|
||||
);
|
||||
|
||||
return MailClient(account, isLogEnabled: true);
|
||||
return MailClient(account);
|
||||
}
|
||||
|
||||
Future<void> sendMessage({
|
||||
|
@ -40,6 +40,7 @@ class MailClientController extends AutoDisposeAsyncNotifier<MailClient> {
|
|||
MailAddress(settings.mailName, settings.emailAlias ?? settings.email),
|
||||
]
|
||||
..to = [to],
|
||||
sentMailbox: await client.selectMailboxByFlag(MailboxFlag.sent),
|
||||
);
|
||||
|
||||
await client.disconnect();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue