0 votes
by (260 points)
edited

hi. when sending mails with rebex mail via smtp - how can i get them displayed in the "sent mail"-folder? how can i achieve this?

Applies to: Rebex Secure Mail

2 Answers

+1 vote
by (148k points)
edited
 
Best answer

Unless your mail server does this automatically (and it looks like it doesn't in this case), you would have to connect using an IMAP protocol and upload the message to "sent mail" folder using Imap object's StoreMessage method (in addition to sending it using SMTP).

0 votes
by (260 points)
edited

thanks a lot lukas, it is working now! is there a way to check if the mail server does this automatically?

by (148k points)
edited

Try searching for the MessageId of the message in the "sent mail" folder - the code from http://forum.rebex.net/questions/1307/get-new-message-id-after-moving-message should work. If the message isn't there, you will have to add it yourself.

...