tags:

views:

68

answers:

2

Hi,

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

+3  A: 

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.

Toni Frankola
I have a user control where I have created form...and on click of a button I want to send the email....so I wonder I can't use sharepoint designer method....
AB
A: 

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)

F.Aquino
Thanks but I don't want to use SPutility I m using .net mail option for it.....any idea how to get without SPutility...
AB
Then you need to extract the user email the same way I described above, and send the email normally like on: http://www.4guysfromrolla.com/articles/072606-1.aspx
F.Aquino