Search The ForumSearch   RegisterRegister  LoginLogin

MailBee Message Queue

 AfterLogic Forum : MailBee Message Queue
Subject Topic: Using MMQ to track messages Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
clsaad
Newbie
Newbie


Joined: 16 November 2006
Online Status: Offline
Posts: 6
Posted: 17 April 2008 at 8:28am | IP Logged Quote clsaad

Hello my Friend,

I'd like more information if it's possible to track a email message using MMQ.

I guess to try to this bellow:

1) using MailBee.NET SMTP, send a message to MMQ (in a folder)
2) When MMQ sent the message with error or with OK, put the message in a folder (ex: folder\error, folder\ok, folder\retry)

It's possible? I'd like to try this, because our system of mailing put in a message header information about the sender and recipient, I we need to read these information to update the database.

Best Regards
Cleber Saad
Back to Top View clsaad's Profile Search for other posts by clsaad
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 18 April 2008 at 1:12am | IP Logged Quote Andrew

You can submit messages to MMQ via Smtp.SubmitToPickupFolder method.

Once a message is successfully sent from the queue, it's immediately deleted. With regard to failed messages, they're renamed to *.bad and remain in the queue folder.

You may create a list of all submitted to queue messages, then check the queue after sending, so you're able to get list of failed messages as well as successful ones (the entire list minus failed).

Messages are submitted to queue in standard .eml format, so you may use MailMessage.LoadMessage method to load such messages for further processing via MailBee.NET Objects.

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 
clsaad
Newbie
Newbie


Joined: 16 November 2006
Online Status: Offline
Posts: 6
Posted: 18 April 2008 at 8:58am | IP Logged Quote clsaad

Andrew,

In the .bad file, have the error that has been ocurred? Or it's only the original message?

Best Regards
Cleber
Back to Top View clsaad's Profile Search for other posts by clsaad
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 18 April 2008 at 12:10pm | IP Logged Quote Andrew

*.bad files are the .eml files with unmodified content, they're just renamed.

The log file created by MMQ may be useful to you. It contains records about both successful and failed sends. Moreover, there are two detail levels: basic and detailed. Which of them to choose depends on your requirements. Path to the log file can be specified (as well as detail level) in MMQ Control Panel.

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 

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