Search: 
Knowledge Base Entry

How do I move a message sent with the SMTP component to my Sent folder?

Date Entered:  06/25/2007

Last Update:  06/25/2007

APPLIES TO

IP*Works!
IP*Works! SSL

SYNOPSIS

You can use the IMAP component to append a message to your Sent folder.

SOLUTION

If you need to save a copy of the message you've sent with the SMTP component to your Sent Items folder on your mail server you can take the following approach:

First, save the headers and the body of the message you sent like so:

  String myMessage = smtp.MessageHeaders + "\r\n\r\n" + smtp.MessageText;

Then, using the IMAP component you would do:

  imap.MesageText = myMessage;
  imap.Mailbox = "SENT";
  imap.AppendToMailbox();

| About | Privacy Policy | Terms of Use |
© Copyright 2010 /n software inc.