To send an email from SAP, you can use the standard SAP function module SO_NEW_DOCUMENT_SEND_API1. Here are the steps:
Open the SAP transaction SE37 (Function Builder).
Enter the function module name SO_NEW_DOCUMENT_SEND_API1 and click on the Display button.
In the next screen, click on the Test button.
In the Test screen, enter the following parameters:
I_SEND_IMMEDIATELY: X
I_DOCUMENT_DATA:
SUBJECT: Enter the subject of the email.
LANGUAGE: Enter the language code (e.g. EN, DE, FR).
I_TEXT:
SUBJECT: Enter the subject of the email.
LINE: Enter the message text.
I_RECIPIENT:
ADDR_TYPE: Enter the recipient address type (e.g. INT, SMTP).
ADDRESS: Enter the recipient email address.
Click on the Execute button to send the email.
Alternatively, you can also send emails from SAP using the transaction code SBWP, which allows you to send emails directly from the SAP inbox. Simply open the transaction, compose a new email, and enter the recipient's email address, subject, and message text. You can also attach files and use formatting options such as bold, italic, and underline. Once you have composed the email, simply click on the Send button to send it.