In our company we have two SMTP servers configured for sending mails. One server for sending mails within the company and the other one for sending external mails. We have configured two SMTP nodes SMTP1 and SMTP2 in tcode SCOT. All internal mails send from sap should route through SMTP1 and external mail through SMTP2. This means all mails sending with in the company should be send from the SMTP server configured in the SMTP1 and external mails should send from SMTP server configured in SMTP2.
In ABAP, we use CL_BCS classes for sending mail. But, in any of the BCS classes methods we used, we cannot find an area where we can mention the SMTP node to be used for sending mail. If somebody knows, please help.