Author |
|
Caroline Guest Group
Joined: 10 November 2003
Online Status: Online Posts: 262
|
Posted: 17 July 2005 at 8:41pm | IP Logged
|
|
|
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 |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 18 July 2005 at 7:46am | IP Logged
|
|
|
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 |
|
|