Would you use SPWebApplication to get information like the SMTP address of the SharePoint site?
3196
15-Nov-2011
Updated on 15-Sep-2020
Anonymous User
15-Nov-2011SPWebApplication collection, and then use the appropriate property calls (OutboundMailServiceInstance) in order to return settings regarding the mail service such as the SMTP address.