Question : Send email from .aspx page using Exchange and have it show in users Outlook Sent folder.

Is it possible to do this?
I can login to my Exchange using the WebMail url and it saves to my Sent Folder there and when I open Outlook it appears there also.

Is there a way to send an email from an aspx page and have it show in the users Sent folder?

Below is the code I am using.  The emails send perfectly but they do not show up in the users Sent Folder.

Thanks!

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
MailMessage m = new MailMessage();
m.From = new MailAddress([from email address], [senders name]);
m.To.Add(emailAddressSendingTo);	
m.Subject = subject;
m.Body = body;
m.IsBodyHtml = true;
m.ReplyTo = new MailAddress(replyToEmailAddress);
SmtpClient smtpc = new SmtpClient();
smtpc.Host = "ExchangeServerIP";
smtpc.Credentials = new System.Net.NetworkCredential(employeeNetworkAccount, employeeNetworkPassword, DomainName);
smtpc.Send(m);

Answer : Send email from .aspx page using Exchange and have it show in users Outlook Sent folder.

ok, the baby decided to nap so i got to test and the results are you cannot restore a database with only the logs files as expected

my test was a best case scenario:
1. created a storage group and added a mailbox database
2. created a test mailbox and sent several messages and replied to a few
3. dismounted the database
4. moved all files out of the directory for the database and logs files
5. mounted the database to create a blank database
6. removed all log files from the directory
7. moved my original logs back into the directory
8. ran eseutil /r with the following results

[PS] C:\Program Files\Microsoft\Exchange Server\Bin>eseutil /r e03 /l"C:\Program Files\Microsoft\Exc
hange Server\Mailbox\TestSG" /s"C:\Program Files\Microsoft\Exchange Server\Mailbox\TestSG" /t /d"C:\
Program Files\Microsoft\Exchange Server\Mailbox\TestSG\testdb.edb" /a

Extensible Storage Engine Utilities for Microsoft(R) Exchange Server
Version 08.02
Copyright (C) Microsoft Corporation. All Rights Reserved.

Initiating RECOVERY mode...
    Logfile base name: e03
            Log files: C:\Program Files\Microsoft\Exchange Server\Mailbox\TestSG
         System files: C:\Program Files\Microsoft\Exchange Server\Mailbox\TestSG
   Database Directory: C:\Program Files\Microsoft\Exchange Server\Mailbox\TestSG\testdb.edb

Performing soft recovery...
                      Restore Status (% complete)

          0    10   20   30   40   50   60   70   80   90  100
          |----|----|----|----|----|----|----|----|----|----|
          ...................................................



Operation completed successfully in 5.515 seconds.


9. mounted the database
10. logged into mailbox and all messages were gone
Random Solutions  
 
programming4us programming4us