cancel
Showing results for 
Search instead for 
Did you mean: 

How does SAP handle emails?

Former Member
0 Kudos

Can anyone say where can we find the code to call SMTP protocol for sending emails within the Standard Driver Program of Sapscript? If it is handle in somewhere else please mention it for me?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

this will help u [SMTP config|http://help.sap.com/saphelp_nw04/helpdata/en/af/73563c1e734f0fe10000000a114084/frameset.htm]

see these sap help too

http://help.sap.com/saphelp_nw04s/helpdata/en/1b/b8e93a2876a81ae10000000a11402f/frameset.htm

http://help.sap.com/saphelp_nw04s/helpdata/en/43/e74af756b60a29e10000000a11466f/frameset.htm

Edited by: kartik tarla on Feb 17, 2009 11:52 PM

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

for pre requisite is configuring the port settings.

CALL FUNCTION 'OPEN_FORM'
* EXPORTING
*   APPLICATION                       = 'TX'
*   ARCHIVE_INDEX                     =
*   ARCHIVE_PARAMS                    =
*   DEVICE                            = 'PRINTER'
*   DIALOG                            = 'X'
*   FORM                              = ' '
*   LANGUAGE                          = SY-LANGU
*   OPTIONS                           =
*   MAIL_SENDER                       =  "-------->HERE
*   MAIL_RECIPIENT                    = "-------->HERE
*   MAIL_APPL_OBJECT                  =
*   RAW_DATA_INTERFACE                = '*'
*   SPONUMIV                          =
* IMPORTING
*   LANGUAGE                          =
*   NEW_ARCHIVE_PARAMS                =
*   RESULT                            =
* EXCEPTIONS
*   CANCELED                          = 1
*   DEVICE                            = 2
*   FORM                              = 3
*   OPTIONS                           = 4
*   UNCLOSED                          = 5
*   MAIL_OPTIONS                      = 6
*   ARCHIVE_ERROR                     = 7
*   INVALID_FAX_NUMBER                = 8
*   MORE_PARAMS_NEEDED_IN_BATCH       = 9
*   SPOOL_ERROR                       = 10
*   CODEPAGE                          = 11
*   OTHERS                            = 12
          .
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

Former Member
0 Kudos

Hi,

Its very important to know how actually the options have to be configured.In addition to that,i would like to know after the configurations has been done in the driver program and/or in transaction SOST, where exactly is the code to finally call the SMTP protocol and finally the email gets sent?

Thanks for replying.

Hope i can get the configuration pre requisites as well as the final call to SMTP!