Search The ForumSearch   RegisterRegister  LoginLogin

MailBee SMTP

 AfterLogic Forum : MailBee SMTP
Subject Topic: how to store the jmails in junk folder Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
klint
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 21 December 2005 at 4:19am | IP Logged Quote klint

hi
      actually my problem is SendToQueueEx Method


               please give me details of this method i can't understand how to using this and also give some code
thanks
klint
Back to Top View klint's Profile Search for other posts by klint
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 21 December 2005 at 9:22am | IP Logged Quote Alex

SMTP.SendToQueueEx method is intended for deferred sending large volumes of emails. With this method, emails are submitted to MailBee Message Queue service which then sends them in the background.

If you wish to move mails between folders of your account, you should use IMAP4.CopyMessages and IMAP4.DeleteMessages methods for this:
Code:

' Assume we've already connected to IMAP account
' and wish to move message #1 into Junk folder
If IMAP4.CopyMessages("Junk", 1, 1, False) Then
  IMAP4.DeleteMessages(1, 1, False)
  IMAP4.ExpungeAndClose
End If

However, make sure junk folder can be accessed via IMAP. With some servers (such as SurgeMail) the only way to access junk folder is to directly manipulate mailbox files on the mail server.

Regards,
Alex
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