Closed SittiphanSittisak closed 1 year ago
You will only get a SendReport
if the message was sent successfully.
try {
final sendReport = await send(message, smtpServer);
print('Message sent: ' + sendReport.toString());
} on MailerException catch (e) {
print('Message not sent.');
for (var p in e.problems) {
print('Problem: ${p.code}: ${p.msg}');
}
}
I don't see any method like
SendReport.isSuccess
. How do I check this result whether this mail was sent?Or when this sending failed. This function will throw an error and I can check it by using a try/catch like this.