Einzelnen Beitrag anzeigen

Delphi-Lover

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

Change the "From" mail address in outlook OLE

  Alt 31. Mär 2005, 14:39
Hello,

With a Delphi program I create an automatic E-Mail message, but the user using the program might have two inboxes in outlook. Like, one of the user self and another that is shared with others. Now when I create an E-Mail the MailItem always takes the Mail-Address of the user. Is there a way to tell the MailItem to use the other sendersaddress. It create the Outlook object in the normal fasion:

Code:
OutlookApplication := CreateOleObject('Outlook.Application');
MailItemSend := OutlookApplication.CreateItem(olMailItem);
MailItemSend.Recipients.Add(email@SomeUser.com');

I like to do this !!!
//MailItemSend.FromAddress:='email@aMailAddress.com';
 
MailItemSend.Subject:=My Subject';
MailItemSend.Body:='Hello Delphi PRAXiS Forum';
MailItemSend.Display;
Thanks,

Rob.
Rob
  Mit Zitat antworten Zitat