Skip to Content
avatar image
Former Member

Problem with sending email from 4.6C to MS-outlook / Exchange

Hello,

I'm trying to send an email with a pdf-attachment from my 46C system. In trans SOST everything looks fine. There is a document with an attachment. When I send it to my email-client there's no attachment. And the following message is given in my email:

This message is in MIME format. Your mail reader does not support MIME. Please read the first section, which is plain text, and ignore the rest. Better yet, get a MIME-capable mail reader.

Does anybody recognise this message ???

Regards,

GJ van Holland

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    May 13, 2006 at 06:28 AM

    Hai G.J.Van

    Check the following Code

    DATA: OBJPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.

    DATA: OBJHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.

    DATA: OBJBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.

    DATA: OBJTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.

    DATA: RECLIST LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE.

    DATA: DOC_CHNG LIKE SODOCCHGI1.

    DATA: TAB_LINES LIKE SY-TABIX.

    DATA L_NUM(3).

    • Creation of the document to be sent

    • File Name

    DOC_CHNG-OBJ_NAME = 'SENDFILE'.

    • Mail Subject

    DOC_CHNG-OBJ_DESCR = 'Delivered Mail'.

    • Mail Contents

    OBJTXT = 'Object text'.

    APPEND OBJTXT.

    DESCRIBE TABLE OBJTXT LINES TAB_LINES.

    READ TABLE OBJTXT INDEX TAB_LINES.

    DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).

    • Creation of the entry for the compressed document

    CLEAR OBJPACK-TRANSF_BIN.

    OBJPACK-HEAD_START = 1.

    OBJPACK-HEAD_NUM = 0.

    OBJPACK-BODY_START = 1.

    OBJPACK-BODY_NUM = TAB_LINES.

    OBJPACK-DOC_TYPE = 'RAW'.

    APPEND OBJPACK.

    • Creation of the document attachment

    LOOP AT ITAB_DATA.

    CONCATENATE ITAB_DATA-PRODUCTOR

    ITAB_DATA-VBELN

    ITAB_DATA-POSNR

    ITAB_DATA-MATNR INTO OBJBIN.

    APPEND OBJBIN.

    ENDLOOP.

    DESCRIBE TABLE OBJBIN LINES TAB_LINES.

    OBJHEAD = 'ORDERS'.

    APPEND OBJHEAD.

    • Creation of the entry for the compressed attachment

    OBJPACK-TRANSF_BIN = 'X'.

    OBJPACK-HEAD_START = 1.

    OBJPACK-HEAD_NUM = 1.

    OBJPACK-BODY_START = 1.

    OBJPACK-BODY_NUM = TAB_LINES.

    OBJPACK-DOC_TYPE = 'TXT'.

    OBJPACK-OBJ_NAME = 'WEBSITE'.

    OBJPACK-OBJ_DESCR = 'ORDERS.TXT'.

    OBJPACK-DOC_SIZE = TAB_LINES * 255.

    APPEND OBJPACK.

    • Completing the recipient list

    • target recipent

    clear RECLIST.

    RECLIST-RECEIVER = 'test@here.com'.

    RECLIST-EXPRESS = 'X'.

    RECLIST-REC_TYPE = 'U'.

    APPEND RECLIST.

    • copy recipents

    clear RECLIST.

    RECLIST-RECEIVER = 'secondtest@here.com'.

    RECLIST-EXPRESS = 'X'.

    RECLIST-REC_TYPE = 'U'.

    RECLIST-COPY = 'X'.

    APPEND RECLIST.

    • Sending the document

    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'

    EXPORTING

    DOCUMENT_DATA = DOC_CHNG

    TABLES

    PACKING_LIST = OBJPACK

    OBJECT_HEADER = OBJHEAD

    CONTENTS_BIN = OBJBIN

    CONTENTS_TXT = OBJTXT

    RECEIVERS = RECLIST

    EXCEPTIONS

    TOO_MANY_RECEIVERS = 1

    DOCUMENT_NOT_SENT = 2

    OPERATION_NO_AUTHORIZATION = 4

    OTHERS = 99.

    Thanks & regards

    Sreenivasulu P

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      This is de content of my email:

      Maybe this can help to solve my problem !

      To: test@test.nl

      Cc: secondtest@here.com

      From: "Test" <test@test.nl>

      Message-Id: <ADR31000000000201YZT@ysl.nl>

      Mime-Version: 1.0

      X-Mailer: SAP R/3 Internet Mail Gateway 4.6D14

      Priority: Urgent

      X-Priority: 1 (Highest)

      Subject: Delivered Mail

      Content-Type: MULTIPART/MIXED; Boundary="SAP.Boundary.1819UUeyeELesOHenNhOj"

      This message is in MIME format. Your mail reader does not support

      MIME. Please read the first section, which is plain text, and

      ignore the rest. Better yet, get a MIME-capable mail reader.

      --SAP.Boundary.1819UUeyeELesOHenNhOj

      Content-ID: <SAPOffice.1.ADR31000000000201YZT@test.nl>

      Content-Description: Delivered Mail

      Content-Type: TEXT/PLAIN; Charset="US-ASCII"

      Content-Transfer-Encoding: 7BIT

      Object text

      --SAP.Boundary.1819UUeyeELesOHenNhOj

      Content-ID: <SAPOffice.2.ADR31000000000201YZT@test.nl>

      Content-Description: ORDERS.TXT

      Content-Type: TEXT/PLAIN; Charset="US-ASCII";

      Name="ORDERS.TXT"

      Content-Disposition: ATTACHMENT;

      Filename="ORDERS.TXT"

      Content-Transfer-Encoding: 7BIT

      --SAP.Boundary.1819UUeyeELesOHenNhOj

  • avatar image
    Former Member
    May 14, 2006 at 04:49 AM

    Hi,

    Please refer the below link ..

    http://www.experts-exchange.com/Applications/Email/Q_21586122.html

    Thanks

    Sudheer

    Add comment
    10|10000 characters needed characters exceeded