Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET Objects

 AfterLogic Forum : MailBee.NET Objects
Subject Topic: MailBee.SmtpMail.Smtp object to send emai Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
khaldrogo
Newbie
Newbie


Joined: 23 February 2021
Location: American Samoa
Online Status: Offline
Posts: 1
Posted: 23 February 2021 at 7:56pm | IP Logged Quote khaldrogo

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 View khaldrogo's Profile Search for other posts by khaldrogo
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 24 February 2021 at 3:31am | IP Logged Quote Alex

Hi,

First of all, are you on the latest version (v12.2 at the moment)?

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide