Search The ForumSearch   RegisterRegister  LoginLogin

MailBee Message Queue

 AfterLogic Forum : MailBee Message Queue
Subject Topic: Last email placed to queue? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Guests
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 20 May 2004 at 10:27am | IP Logged Quote Guests

Just wondering is it possible to find out filename of last email placed into the queue?

Thank you,
Ryan
Back to Top View Guests's Profile Search for other posts by Guests
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 20 May 2004 at 10:45am | IP Logged Quote Alex

On each send, MailBee SMTP component updates "mbmq.dat" file (located in the queue folder) with filename of the last queued email.

Thus, to get filename of the last queued email, read "mbmq.dat" file contents just after calling SMTP.SendToQueue method.

Set fso = CreateObject("Scripting.FileSystemObject")

' assume all SMTP properties are already set

If objSMTP.SendToQueue("C:\MMQ Files") Then
Set f = fso.OpenTextFile("C:\MMQ Files\mbmq.dat")
strFilename = f.ReadAll
f.Close
End If
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