---
title: "Would you use SPWebApplication to get information like the SMTP address of the SharePoint site?"  
description: "Would you use SPWebApplication to get information like the SMTP address of the SharePoint site?"  
author: "Anonymous User"  
published: 2011-11-15  
updated: 2020-09-15  
canonical: https://www.mindstick.com/interview/1361/would-you-use-spwebapplication-to-get-information-like-the-smtp-address-of-the-sharepoint-site  
category: "sharepoint"  
tags: ["sharepoint"]  
reading_time: 1 minute  

---

# Would you use SPWebApplication to get information like the SMTP address of the SharePoint site?

Yes, since this is a Web Application level setting. You would iterate through each SPWebApplication in the \
SPWebApplication collection, and then use the appropriate property calls (OutboundMailServiceInstance) in order to return settings regarding the mail service such as the SMTP address.

## Answers

### Answer by Anonymous User

Yes, since this is a Web Application level setting. You would iterate through each SPWebApplication in the \
SPWebApplication collection, and then use the appropriate property calls (OutboundMailServiceInstance) in order to return settings regarding the mail service such as the SMTP address.


---

Original Source: https://www.mindstick.com/interview/1361/would-you-use-spwebapplication-to-get-information-like-the-smtp-address-of-the-sharepoint-site

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
