SharePoint Links

How to Deploy Solution Package in MOSS 2007

To deploy the solution package like *.wsp or *.cab in SharePoint FARM. first we need to add the solution package file to the solution store, then it can be deployed at web application level or in FARM level(Global Deployment). Use the following stsadm command to add the solution to the deployment store. stsadm -0 addsolution […]

How to Send an EMail From WebPart in MOSS 2007

Hi Devs, The following is the piece of code to send Email from webpart.

using System; using System.Collections.Generic; using System.ComponentModel; using System.Text; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Collections.ObjectModel; using Microsoft.SharePoint.Utilities; using Microsoft.SharePoint; using System.Data; using System.Collections; namespace SendMail { public class SendMail : Microsoft.SharePoint.WebPartPages.WebPart { private TextBox txtTo; private Button btnSendMail; protected override […]