Author |
|
Guests Guest Group
Joined: 10 November 2003
Online Status: Online Posts: 262
|
Posted: 20 May 2004 at 10:27am | IP Logged
|
|
|
Just wondering is it possible to find out filename of last email placed into the queue?
Thank you,
Ryan
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 20 May 2004 at 10:45am | IP Logged
|
|
|
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 |
|
|