cancel
Showing results for 
Search instead for 
Did you mean: 

ITSM Mail Form Body is empty

Former Member
0 Kudos

Hi All,

I have created an email notification via mail form and all is working fine.but when an email is triggered the picture that was supposed to show on the mail body is coming up as an attachment and also the body is blank.

Problem

* Mail body is empty

* Picture are coming as an attachment and its supposed to show on the mail body.

What i tried is?

*In SCOT i tried to change the output format from PDF to TXT and vice versa

*Implemented note 1908005 but still nothing.

Your help will be highly appreciated.

Thanks

Tebogo

Accepted Solutions (0)

Answers (1)

Answers (1)

rishav54
Active Contributor
0 Kudos

Hi,

Can you try to change it to HTML once and paste the result.

Regards

Rishav

Former Member
0 Kudos

Hi Rishav,

Thank you very much for the response,i tried changing it but the results are still the same.

Please see attached.

Thanks

rishav54
Active Contributor
0 Kudos

Hi

You can do the custom development, follow the link

Another way:

upload from local machine or get the binary content of the image from SAP.

then

add it as attachment to your mail

call method document->add_attachment

        exporting  i_attachment_type = 'jpg'

                   i_attachment_subject = 'scan0002'

                   i_att_content_hex    = binary_content.

in the body of the email refer to the image attachment.

append '<html><body><img src="<b>cid:scan0002.jpg</b>"></body></html>' to text.

      document = cl_document_bcs=>create_document(

                      i_type    = 'HTM'

                      i_text    = text

  •                      i_length  = '12'

                      i_subject = 'test created by BCS_EXAMPLE_2' ).

Or make your picture available on internet which should be accessible, make use of HTML

use HTML to build your email body.

Here is an example,

Regards

Rishav

Former Member
0 Kudos

Hi Rishan,

Thank you for the response, unfortunately we don`t want to go the  coding (ABAP) way so if possible we can go through with me the possible causes of the mail not showing on the mail body.

Thanks

Tebogo