Exception of type 'System.OutOfMemoryException' was thrown. in bulk email process

Exception of type ‘System.OutOfMemoryException’ was thrown.
at System.Threading.Thread.StartInternal(IPrincipal principal, StackCrawlMark& stackMark)
at System.Threading.Thread.Start(StackCrawlMark& stackMark)
at System.Threading.Thread.Start()
at #=zxJF6AD8LAuqBpcOBJnP$CFEjGs1H.#=zLyyHRjU=()
at #=zCziMTQNHSz4rmEe8EF$jStW026Mb9Ow51p_JHi8=.#=zlZx4LhwBn01g(String #=zleoZ4wM=, Int32 #=zqcbRDkU=)
at #=zDBMatffxVx$CNdnYgX0Z2IY5fctK.#=zF78Y6xw=(Int32 #=zACrY8s8=)
at #=zDBMatffxVx$CNdnYgX0Z2IY5fctK.#=zF78Y6xw=()
at #=zDBMatffxVx$CNdnYgX0Z2IY5fctK.#=zF78Y6xw=(IConnection #=zk3vnks8=)
at Aspose.Email.Clients.Smtp.SmtpClient.BeginSend(IConnection iConnection, IEnumerable1 messages, EventHandler1 messageSentDelegate, AsyncCallback callback, Object state)
at Aspose.Email.Clients.Smtp.SmtpClient.Send(IConnection iConnection, IEnumerable`1 messages)
at Aspose.Email.Clients.Smtp.SmtpClient.Send(MailMessage message)

I am trying to send bulk emails through a job after few minutes i am seeing a error log above and job stopped

any fixes for it?

@sandeepr,

Please share your exact sample code with us along with the email server details that is used for sending emails. If it is possible for you to share test account credentials with us, that will be helpful for us to assist you further accordingly.