07-02-2020 4:32 PM
Hello i am using ole2_object to open new outlook message.
DATA: OMAIL TYPE OLE2_OBJECT
CREATE OBJECT OMAIL 'Outlook.Application'.
Is there any posibility through some "method" or "set property" or something else, to chose the sender (From) ? I have multiple emails accounts linked in outlook. When i am creating new email manually, outlook lets me chose to use one of this email adress as sending adress. Is there any posibility to chose one of this senders programmatically ?
07-02-2020 5:07 PM
Hello juraj14
Check out these MS Help topics:
https://docs.microsoft.com/en-us/office/vba/api/outlook.mailitem.sender
https://docs.microsoft.com/en-us/office/vba/api/outlook.mailitem.sendusingaccount
Kind regards,07-02-2020 5:07 PM
Hello juraj14
Check out these MS Help topics:
https://docs.microsoft.com/en-us/office/vba/api/outlook.mailitem.sender
https://docs.microsoft.com/en-us/office/vba/api/outlook.mailitem.sendusingaccount
Kind regards,07-12-2020 9:32 PM
Thank you, even suggested topics are for VBA and not for ABAP i figured out right ABAP statement from these topics. Right statement in ABAP is:
SET PROPERTY OF OMAIL 'SentOnBehalfOfName' = 'chosen_account@mail.com'