Search The ForumSearch   RegisterRegister  LoginLogin

MailBee SMTP

 AfterLogic Forum : MailBee SMTP
Subject Topic: Save sent mail to a folder Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Caroline
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 17 July 2005 at 8:41pm | IP Logged Quote Caroline

How do I save all mail sent to a folder? I'm have an IMAP server and are using the smtp object to send. I have bought microbee objects so i do have imap functionality avaiable.
Back to Top View Caroline's Profile Search for other posts by Caroline
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 18 July 2005 at 7:46am | IP Logged Quote Alex

You can use AppendMessage method of IMAP4 object. The idea is as follows (for short, I omitted creation of IMAP and SMTP objects, assigning license keys, etc):

Code:

If SMTP.Send Then
  ' Connect to IMAP server and upload message into Sent folder
  If IMAP4.Connect("imap.server.com", 143, "user", "pass") Then
    If IMAP4.AppendMessage("Sent", SMTP.Message.RawBody) Then
      MsgBox "Message placed in Sent folder"
    End If
  End If

End If

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