Home > DeveloperSection > Interviews > Would you use SPWebApplication to get information like the SMTP address of the SharePoint site?

Posted on    November-15-2011 3:19 AM

 SharePoint SharePoint 
 1 Answer(s)
  2010  View(s)
Rate this:

Awadhendra Tiwari

Total Post:510

Posted on    November-15-2011 1:00 AM

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.

Don't want to miss updates? Please click the below button!

Follow MindStick