Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET Queue

 AfterLogic Forum : MailBee.NET Queue
Subject Topic: Return Errors from Bad Directory Post ReplyPost New Topic
Message << Prev Topic | Next Topic >>

Joined: 25 July 2019
Location: United Kingdom
Online Status: Offline
Posts: 1
Posted: 25 July 2019 at 9:59am | IP Logged Quote BillPeach

Is it possible to do the following

Firstly get the EML file name returned when an email is submitted to 'Pickup' directory, so It can be related back to the database I am using to generate it

Secondly extract from the log file the error message or reason for an email being moved to the 'Bad' directory
Back to Top View BillPeach's Profile Search for other posts by BillPeach
AfterLogic Support
AfterLogic Support

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 26 July 2019 at 1:48am | IP Logged Quote Alex

Smtp.SubmitToPickupFolder (which you're using to send email to the pickup folder) returns the generated filename.

As for logging error messages, there are a number of ways. You can modify the source code to add your processing in OnMessageNotSent method in MailBee.NET Queue API\QueueRunner.cs

That method saves the exception in Windows Event Log. You can also save it to whenever you need to.

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