Tuesday, August 26, 2014

An error occurred while talking to SMTP host mail.something.local Event ID 6858

this error occurred to me when I setup SMTP virtual sever for SharePoint farm. then I tried to trouble shoot email sending using PowerShell and it also return False.

Trouble shooting SharePoint Emails (SMTP server) 

$dict = new-object System.collections.specialized.stringdictionary
// recipient's Email Address
$dict .add("to","somebosy@gmail.com")
// sender: you can put anything that you want to visible in the email
$dict .add("from","outsender@sharepoint.local")
$dict .add("Subject","sample subject")
// this is any existing sp web url
$web = get-spweb "http://4587wfe2013:5003"
$body = "This is our body codes in it."
[Microsoft.SharePoint.Utilities.SPUtility]::SendEmail($web,$sd,$body)

This code will return True if success otherwise will be False.


This error occurred me because of connection issues to SMTP server. thus I go to SMTP properties


 image


Then go to Access Tab and click Connection and Relay buttons and make the radio selection to all except to list below.


image


image

Tuesday, July 29, 2014

SharePoint 2013 Training–Part 1

Share Point Training 2014

Hosted a SharePoint training for Pyxle colleagues; session went well with practical sessions and technical discussions.

Tuesday, July 15, 2014

SharePoint Sample Field (Columns) Schemas

SharePoint Fields (Columns) XML is essential for every SharePoint Object Model development.

Multiple User Field

<Field
     ID="{f6377553-35fc-4166-9cc3-88fa32a5d7dd}"
     Name="WFCApprovers"
     DisplayName="WFC Approvers"
     Type="UserMulti"
     Required="FALSE"
     UserSelectionMode="PeopleOnly"
     Group="Custom">
</Field>

UserSelectionMode Options: PeopleOnly , PeopleAndGroup


User Field



<Field
     ID="{f6377553-35fc-4166-9cc3-88fa32a5d7dd}"
     Name="UserField"
     DisplayName="User Field"
     Type="User"
     Required="FALSE"
     UserSelectionMode="PeopleOnly"
     Group="Custom">
</Field>

Boolean Field



<Field
     ID="{6ed8dbbf-4726-4a63-b358-e4797149a8ba}"
     Name="Booleanfld"
     DisplayName="Boolean Feild"
     Type="Boolean"
     Required="FALSE"
     Group="Custom">
  <Default>1</Default>
</Field>

Text Field



<Field
     ID="{9253731d-2eba-48a1-8172-94e3eae4d266}"
     Name="TextField"
     DisplayName="Text Field"
     Type="Text"
     Required="FALSE"
     Group="Custom">
</Field>

Note Field



<Field
     ID="{9253731d-2eba-48a1-8172-94e3eae4d266}"
     Name="TextField"
     DisplayName="Text Field"
     Type="Note"
     Required="FALSE"
     Group="Custom">
</Field>

Number Field



<Field
     ID="{d0b93b5a-7df2-4aa8-95ce-98c89feefb8b}"
     Name="NumberField"
     DisplayName="NumberField"
     Type="Number"
     Required="FALSE"
     Group="Custom">
</Field>

Choice Field



<Field
     ID="{1af7f723-5eb6-43fc-a399-f6dde4397598}"
     Name="ChoiceField"
     DisplayName="Choice Field"
     Type="Choice"
     Required="FALSE"
     Group="Custom">
  <CHOICES>
    <CHOICE>NEW</CHOICE>
    <CHOICE>OLD</CHOICE>
  </CHOICES>
</Field>

Lookup List



<Field 
       ID="{d98ee21b-158e-49ff-b45e-86fb6df54225}"
       Name ="LookupList"
       DisplayName="Lookup List" 
       Type="Lookup" 
       List="Lists/List1"  
       ShowField="Title"
       Group="Custom" >
</Field>

Multi Lookup List



<Field 
       ID="{d98ee21b-158e-49ff-b45e-86fb6df54225}"
       Name ="LookupList"
       DisplayName="Lookup List" 
       Type="LookupMulti" 
       Mult="True" 
       List="Lists/List1"  
       ShowField="Title"
       Group="Custom" >
</Field>

Date Field



<Field
     ID="{33a66323-6665-434e-98b1-be3d3f692ac3}"
     Name="DateField"
     DisplayName="Date Field"
     Type="DateTime"
     Required="FALSE"
     Group="Custom">
</Field>

Calculated Field



<Field
     ID="{64027cf3-2e86-44df-8ae4-7c3fe56128e3}"
     Name="ConcatTitle"
     DisplayName="Concat Title"
     Type="Calculated"
     ResultType="Text"
     Required="FALSE"
     Group="Custom">
  <Formula>
    =CONCATENATE(PCode,&quot;-&quot;,Title)
  </Formula>
  <FormulaDisplayNames>
    =CONCATENATE([P Code],&quot;-&quot;,Title)
  </FormulaDisplayNames>
  <FieldRefs>
    <FieldRef Name="PCode" />
    <FieldRef Name="Title" />
  </FieldRefs>
</Field>