Send Email in SharePoint Online Using SharePoint Client Object Model (CSOM)

HI, Below i have figured how to send Email in SharePoint Online using  SharePoint Client Object Model (CSOM).

In this case i have used “Microsoft.SharePoint.Client.Utilities”

This is a commonly used method to send email. You can use a SharePoint Utility class to send an Email. One downside is that you cannot send to external users. If you are sending to external users they should be added to your mail exchange.  That needs to be done in advance since it will take some time to reflect such changes.

Below is the Simple Code,

using (var EmailclientContext = clientContext)
 var emailprpoperties = new EmailProperties();
emailprpoperties .BCC = new List<string> { “” };
emailprpoperties .To = new List<string> { “” };
emailprpoperties .From = “”;
emailprpoperties .Body = “<b>Hi Udara, You receive a test Mail</b>”;
emailprpoperties .Subject = “Mail Testing”;

Utility.SendEmail(EmailclientContext , emailprpoperties );
EmailclientContext .ExecuteQuery();




ASP.NET Form Control Validation using Java Script and JQuery : Validate DropDown List in side the Grid View

Here i would like to explain how to validate Drop Down List in side the Grid View,It’s very Simple.

var GridView = document.getElementById(‘<%=Grid.ClientID %>’);

var DropDownArray = new Array();

for (var i = 0; i < DropDownArray .length; i++) { //Looping Dropdown list Array to validate
if (DropDownArray .item(i).value == ‘Pending’) //If dropdown has no selected value
//Put Validation Message
return false;