Sending SMTP email through SAP

For sending SMTP email thru SAP, you can use following function module.

For sending SMTP email through SAP, you can use following function module. 'SO_NEW_DOCUMENT_SEND_API1' You have

to use SU01 and enter the Internet address for the UserID from which you are going to run the function module above.


CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'             
     EXPORTING                                        
          DOCUMENT_DATA              = MAILHEADER     
          DOCUMENT_TYPE              = 'RAW'          
          PUT_IN_OUTBOX              = 'X'            
     TABLES                                           
           OBJECT_CONTENT             = OBJCONT       
          RECEIVERS                  = RECEIVER       
     EXCEPTIONS                                       
          TOO_MANY_RECEIVERS         = 1              
          DOCUMENT_NOT_SENT          = 2              
          DOCUMENT_TYPE_NOT_EXIST    = 3              
         OPERATION_NO_AUTHORIZATION  = 4              
         PARAMETER_ERROR             = 5              
         X_ERROR                     = 6              
         ENQUEUE_ERROR               = 7
This was first published in June 2002

Dig deeper on SAP Basis administration and NetWeaver administration

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close