简体   繁体   中英

How to get the incoming email address -Sharepoint?

I want to send the email to the sharepoint adminsitrator when user clicks the form button. How I can achieve this ?

The simplest solution for this scenario is to create a workflow with SharePoint Designer 2007 . Here is an article that describes how to create a workflow that sends an email . You can manually choose administrators you want to mail, but it is much better approach to create a SharePoint group for admins and send an email to this group.

Make sure you have properly configured SharePoint outgoing email settings .

Upvoted Toni's but since the OP tagged it as C#, the function to send emails using the Central Administration is called SPUtiliy.SendEmail . To grab the email of the user (if you dont know the email) you could go with something like SPContext.Current.Web.AllUsers["DOMAIN\\login"].Email (not test environment here, syntax may be off)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM