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

PRO+

Content

Find more PRO+ content and other member only offers, here.

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:

-ADS BY GOOGLE

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close