Skip to Content
author's profile photo Former Member
Former Member

Insert Outlook Signature in created mail with 'Outlook.Application'

Hi


How can I add Outllok Signature in my created E-Mail?


I use this code to create an email via Outlook:


***************************************************************************************

DATA : lv_ooutapp TYPE ole2_object, "Outlook.Application

lv_omail TYPE ole2_object, "Outlook.MailItem.

CREATE OBJECT lv_ooutapp 'Outlook.Application'.

CALL METHOD OF

lv_ooutapp

'CreateItem' = lv_omail

EXPORTING

#1 = 0.

SET PROPERTY OF lv_omail 'Importance' = 1 .

SET PROPERTY OF lv_omail 'Subject' = 'TEST'.

SET PROPERTY OF lv_omail 'Htmlbody' = 'TEST'.


* start outlook in display mode

CALL METHOD OF

lv_omail

'Display'.

* Ausräumen

FREE OBJECT lv_omail.

***************************************************************************************

Thanks

M.Aydin

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 16, 2014 at 12:25 PM

    problem was solved:


    CALL METHOD OF lv_omail 'Display'.

    GET PROPERTY OF lv_omail 'GetInspector' = lv_inspector.

    CALL METHOD OF lv_inspector 'Display'.

    GET PROPERTY OF lv_omail 'Htmlbody' = lv_body_old.

    CONCATENATE lv_body lv_body_old INTO lv_body_new.


    SET PROPERTY OF lv_omail 'Htmlbody' = lv_body_new.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.