cancel
Showing results for 
Search instead for 
Did you mean: 

Send html email with image embedded

former_member293763
Participant
0 Kudos

Hi Guys,

I want send an email using class CL_BCS.

Can someone please help me to tell me how can we send the email with image embedded in the body?

The image is stored in the mime repository and was uploaded through se78.

I have searched online but am not able to send it.

It will be great if someone has working code for this.

Regards,

Dhruv Kashyap

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

HI ,,

   Refer the following function module & table  ,,

FM:

1      WWW_GET_MIME_OBJECT

2     DP_CREATE_URL

Table: W3MIME, W3MIME

and cl_bcs , Add_attachement type as BMP

first update your Content in mime , then refer this function module... or else if you have FTP access in you client place your File there in CL_BCS  choose HTM type inside the use Image html tag source as FTP access . this is bit complicated .. you can try the first one . it will work .

former_member293763
Participant
0 Kudos

Hi,

Thanks for the quick reply.I am not sure what you mean by updating content in mime type. and do you know what are the input parameters to function module WWW_GET_MIME_OBJECT.


Regards

Dhruv Kashyap

Former Member
0 Kudos

Hi go to T-code : SMW0   -- To upload the images , after that you can find that entries in wwwparams table .


Refer this .

SAPTechnical.COM - Display images (like company logo) on the selection-screen

In order to send it as email you have to add  attachment type as BMP from you BCS class.

Just try you can .