kaisellgren / mailer

Compose and send emails from Dart. Supports file attachments, HTML emails and multiple transport methods.
MIT License
168 stars 88 forks source link

Send bulk email #211

Closed ljfreelancer88 closed 1 year ago

ljfreelancer88 commented 2 years ago

Hi, is there any example of how to send bulk email for notifications. Thank you in advance

close2 commented 2 years ago

I am not really sure, what you are looking for.

The README mentions persistent connections at the bottom:

  // Sending multiple messages with the same connection
  //
  // Create a smtp client that will persist the connection
  var connection = PersistentConnection(smtpServer);

  // Send the first message
  await connection.send(message);

  // send the equivalent message
  await connection.send(equivalentMessage);

  // close the connection
  await connection.close();

Do you need more information?