WOULD YOU USE SPWEBAPPLICATION TO GET INFORMATION LIKE THE SMTP ADDRESS OF THE SHAREPOINT SITE?

Awadhendra Tiwari

Total Post:510

Points:2550
Posted by  Awadhendra Tiwari
 2041  View(s)
Ratings:
Rate this:
  1. Awadhendra Tiwari

    Post:510

    Points:2550
    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!