Author |
|
khaldrogo Newbie
Joined: 23 February 2021 Location: American Samoa
Online Status: Offline Posts: 1
|
Posted: 23 February 2021 at 7:56pm | IP Logged
|
|
|
Hi,
we use a MailBee.SmtpMail.Smtp object to send emails in a loop to for e.g. 5.000 recipients. If the mail has some bigger attachments we get an OutOfMemoryException when calling 'Send' after for e.g. 37, 185 or 467 mails were successfuilly sent. We call GC.Collect after each mail sent to clean up memroy and we use Message.Reset and Message.Attachments.Clear to re-initialize before preparing and sending the next mail. Any hints on the reason for this and how to avoid OutOfMemoryException in this szenario?
Thanks...
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 24 February 2021 at 3:31am | IP Logged
|
|
|
Hi,
First of all, are you on the latest version (v12.2 at the moment)?
Regards,
Alex
|
Back to Top |
|
|