Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9269

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

$
0
0

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


Viewing all articles
Browse latest Browse all 9269

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>