Author |
|
clsaad Newbie
Joined: 16 November 2006
Online Status: Offline Posts: 6
|
Posted: 17 April 2008 at 8:28am | IP Logged
|
|
|
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 |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 18 April 2008 at 1:12am | IP Logged
|
|
|
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 |
|
|
clsaad Newbie
Joined: 16 November 2006
Online Status: Offline Posts: 6
|
Posted: 18 April 2008 at 8:58am | IP Logged
|
|
|
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 |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 18 April 2008 at 12:10pm | IP Logged
|
|
|
*.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 |
|
|