07-21-2017 7:28 PM
Hi all,
My environment has two companies and respectivally its users. The users of first company have the domain "@comp1.com" and the second company have the domain "@comp2.com".
In my SCOT, i have one SMTP configured to manage the company one, as "smtp.comp1.com".
I tried to configure a second SMTP node with the domain "smtp.comp2.com", but the messages never pass through there.
My need is: when a user from company 1 send a email, it would pass through smtp.comp1.com; and when a user from company 2 do it, it would pass through smtp.comp2.com.
There's a way to do it?
King regards,
Gustavo
07-21-2017 10:33 PM
It's more an Administration question than an ABAP question !
07-21-2017 10:37 PM
For the node of comp1, you enter the SMTP host/port for comp1, and you enter the address type *.comp1.com
For the node of comp2, you enter the SMTP host/port for comp2, and you enter the address type *.comp2.com
For every user, you enter their email address.
So, when a user sends a mail, it's automatically routed to the right SMTP server according to the user's email address.
07-25-2017 1:21 PM
Sandra, can you provide some screenshots for your suggestion?
07-25-2017 1:24 PM
Note that my problem is with the sender (employee-sap-user@comp1 , employee-sap-user@comp2 must go through different servers), not the receiver.
07-25-2017 8:56 PM
I tried to investigate a little bit, and I couldn't find a solution. I have read the code in subroutine OBJECT_SEND_EXTERN of include LSOA2FE1, which I think is triggered when an email is sent, to determine the node (field SNDART in table SOSC), and it seems there's absolutely no code about the sender, and only an enhancement of the code can solve your requirement.
06-11-2021 4:43 PM
sandra.rossi
I have a similar requirement of gustavo.prado. Could you please tell which method is used to send the mail. CL_BCS class or function SO_NEW_DOCUMENT_ATT_SEND_API1
or something else. I tried these two methods, but the subroutine OBJECT_SEND_EXTERN is not triggered.