SEND_MAIL SAP Method Send Email









Below is documentation, parameters and attributes of ABAP Method SEND_MAIL within SAP class /SCMTMS/CL_COMMON_HELPER. There is also a number of example ABAP code snipts to help you use the functionality of this method.

This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name /SCMTMS/CL_COMMON_HELPER into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.


Method Type - Static

This is a Static Method so you can call it directly

The following technical details of method SEND_MAIL can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method SEND_MAIL

.

NameTypeData TypeDescriptionDefault Value
IT_RECIPIENT_MAIL_ADRESSImportingTYPE
TT_MAIL_ADRESS
IT_RECIPIENT_USER_NAMEImportingTYPE
TT_USER_NAME
IV_COMMITImportingTYPE
BOOLEAN
'X' = COMMIT WORK
IV_CONTENTImportingTYPE
STRING
IV_RECIPIENT_MAIL_ADRESSImportingTYPE
AD_SMTPADR
E-Mail Address
IV_RECIPIENT_USER_NAMEImportingTYPE
SY-UNAME
ABAP System Field: Name of Current User
IV_SENDER_MAIL_ADRESSImportingTYPE
AD_SMTPADR
E-Mail Address
IV_SENDER_USER_NAMEImportingTYPE
SY-UNAME
ABAP System Field: Name of Current User
IV_SUBJECTImportingTYPE
CHAR50
Comment



Exceptions of Method SEND_MAIL

This method does not have any exceptions

Example ABAP coding


DATA: lv_IT_RECIPIENT_MAIL_ADRESS TYPE TT_MAIL_ADRESS,
lv_IT_RECIPIENT_USER_NAME TYPE TT_USER_NAME,
lv_IV_COMMIT TYPE BOOLEAN,
lv_IV_CONTENT TYPE STRING,
lv_IV_RECIPIENT_MAIL_ADRESS TYPE AD_SMTPADR,
lv_IV_RECIPIENT_USER_NAME TYPE SY-UNAME,
lv_IV_SENDER_MAIL_ADRESS TYPE AD_SMTPADR,
lv_IV_SENDER_USER_NAME TYPE SY-UNAME,
lv_IV_SUBJECT TYPE CHAR50,
lv_other TYPE c.

CALL METHOD /SCMTMS/CL_COMMON_HELPER=>SEND_MAIL(
EXPORTING
IT_RECIPIENT_MAIL_ADRESS = lv_IT_RECIPIENT_MAIL_ADRESS
IT_RECIPIENT_USER_NAME = lv_IT_RECIPIENT_USER_NAME
IV_COMMIT = lv_IV_COMMIT
IV_CONTENT = lv_IV_CONTENT
IV_RECIPIENT_MAIL_ADRESS = lv_IV_RECIPIENT_MAIL_ADRESS
IV_RECIPIENT_USER_NAME = lv_IV_RECIPIENT_USER_NAME
IV_SENDER_MAIL_ADRESS = lv_IV_SENDER_MAIL_ADRESS
IV_SENDER_USER_NAME = lv_IV_SENDER_USER_NAME
IV_SUBJECT = lv_IV_SUBJECT ).

Links to Related Class(s)

/SCMTMS/...
Full list of available SAP object classes

Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!