Jeg har kigget lidt rundt omkring på nettet og det her er hvad jeg har fundet frem til.
For earlier versions, Outlook provides no direct way to change the account for an outgoing message. These are known workarounds using native Outlook functionality:
1) If the user has Outlook 2002/3 and is not using WordMail as the editor, you set the sending account using CommandBars techniques. See
http://www.outlookcode.com/codedetail.aspx?id=889 for sample code.
2) In an Exchange environment where you want to use another user's mailbox as the From address, set the MailItem.SentOnBehalfOfName property. If you do not want the current user's name to appear in the message at all, the Exchange administrator must grant Send As permission on the other user's mailbox.
3) If you're mainly concerned about replies to your message going to the correct place, add the desired reply address to the MailItem.ReplyRecipients collection.
The third-party Redemption (
http://www.dimastr.com/redemption/ ) library adds two other solutions:
4) Set an RFC822 header property, as described at
http://www.dimastr.com/redemption/faq.htm#145) Set the RDOMail.Account property, as described at
http://www.dimastr.com/redemption/rdo/RDOMail.htm Men jeg har ingen ide om hvordan man programmere, så hvis noget vil hjælpe mig med det. det som jeg skal bruge er det som det bliver henvist til i punkt 3 og hvis jeg skal sende en ny mail også skal det også være fra en anden adresse end den der er default. Skulle måske også nævne at jeg bruger outlook 2003
Indlæg senest redigeret d. 11.07.2007 14:07 af Bruger #2761