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.