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: 

JPG file as background in mail

Former Member
0 Kudos
329

Hi,

I want to send a mail in which my picture should appear as a background and not as an attachment. I tried with these functions:

1. SO_OBJECT_SEND

2. SO_OBJECT_DIRECT_SEND

3. SO_DOCUMENT_SEND_API1

4. SO_NEW_DOCUMENT_SEND_API1

But its not giving the desired result. Pls help me.

I am using 4.6C Version.

Regds,

Sriniwas.

91-9323950902.

4 REPLIES 4

Former Member
0 Kudos
158

Hi Srini,

Check out this link..

http://www.sap-img.com/fu002.htm

Hope this will helps you.

Regards,

Sakthi.

Former Member
0 Kudos
158

Hi!

You can send your mail in html-format where such requirement is straightforward.

Rich Heilman has provided sample code for sending mail in html-format:

And welcome here on SDN!

Regards,

Maxim.

Former Member
0 Kudos
158

hi sriniwas,

if u got how to put an image file as background in mail, please let me know.

e-mail : reddy.14@gmail.com

anversha_s
Active Contributor
0 Kudos
158

Hi,

chk this sample code.

report zemail no standard page heading line-size 220.

data: message_content like soli occurs 10 with header line,
        receiver_list like soos1 occurs 5 with header line,
        w_object_hd_change like sood1.

start-of-selection.

* Receivers
receiver_list-recextnam = 'dude@domain.com'.
receiver_list-recesc = 'E'.
receiver_list-sndart = 'INT'
receiver_list-sndpri = '1'.
append receiver_list.

* General data
w_object_hd_change-objla = sy-langu.
w_object_hd_change-objnam = 'Object name'.
w_object_hd_change-objsns = 'P'.
w_object_hd_change-file_ext = 'HTM'. "<--this is important

* Mail subject
w_object_hd_change-objdes = 'HTML from SAP/ABAP'.

* Mail body
append 'Message content' to message_content.
append '<b>How''s this for sending HTML E-mail from SAP?</b>' to
message_content.
append '<p>New paragraph</p>' to message_content.
append '<p>Apostrophe&#8217s</p>' to message_content.

* Call function to send email - SAPConnect needs to be configured
call function 'SO_OBJECT_SEND'
  exporting
      object_hd_change = w_object_hd_change
      object_type = 'RAW'
      owner = sy-uname
  tables
      objcont = message_content
      receivers = receiver_list.

Regards

Anver

if hlped pls mark points