I would like to get the paramaters shown in the following picture. can this been done and how?

Thank you

P.S. I wonder if it's possible to send email using scom and Sharepoint email system.



You can use below code for that

using(SPSite site = new SPSite(siteUrl))
    string smtpHost = site.WebApplication.OutboundMailServiceInstance.Parent.Name
    string fromEmail = site.WebApplication.OutboundMailSenderAddress


var admin = new Microsoft.SharePoint.Administration.SPGlobalAdmin()
var server = admin.OutboundSmtpServer
var replyToAddress = admin.MailReplyToAddress
var fromAddress = admin.MailFromAddress
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.