Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

outlook.aplication - chose sender (from)

juraj14
Explorer
0 Kudos

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 ?

1 ACCEPTED SOLUTION
2 REPLIES 2

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'