Einzelnen Beitrag anzeigen

Delphi-Lover

Registriert seit: 19. Okt 2004
Ort: Amsterdam
30 Beiträge
 
Delphi 2005 Professional
 
#2

Re: Change the "From" mail address in outlook OLE

  Alt 31. Mär 2005, 15:52
Hello,

I found the answer myself. There is a mailitem property called:

SentOnBehalfOfName

so : MailItemSend.SentOnBehalfOfName:='Name@specialAddr ess.com';

When you display the mailitem you will see an extra line at the top of the mail with the FROM address and a FROM button, like the normal To: and CC: lines. This does NOT mean you can just send an email with another sender address. The address you put in the "SentOnBehalfOfName" property will be verified if you send the message. If you don't have this address attached to your exchange server login. (the current user) then outlook will raise a message that you can not send the email with this address.

Greets and much luck to this PRAXis Website!!

Delphi Lover.
Rob
  Mit Zitat antworten Zitat