Click here to Skip to main content
15,884,176 members
Articles / Programming Languages / C#

Understanding the Insides of the POP3 Mail Protocol: Part 2

Rate me:
Please Sign up or sign in to vote.
4.96/5 (32 votes)
9 Dec 2012MIT5 min read 118.1K   3.2K   95  
This article describes the mail sending process for beginners of the mail protocol.
The purpose of this article is to explore the insides of the POP3 protocol and show you how to implement it with C#.
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>10.0.20506</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{E1DF75C3-2AF2-4494-8304-62F84FA1C727}</ProjectGuid>
    <ProjectTypeGuids>{C089C8C0-30E0-4E22-80C0-CE093F111A43};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>HigLabo.Net</RootNamespace>
    <AssemblyName>HigLabo.Net.WindowsPhone7</AssemblyName>
    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
    <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
    <TargetFrameworkProfile>WindowsPhone71</TargetFrameworkProfile>
    <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
    <SilverlightApplication>false</SilverlightApplication>
    <ValidateXaml>true</ValidateXaml>
    <ThrowErrorsInValidation>true</ThrowErrorsInValidation>
    <SccProjectName>SAK</SccProjectName>
    <SccLocalPath>SAK</SccLocalPath>
    <SccAuxPath>SAK</SccAuxPath>
    <SccProvider>SAK</SccProvider>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>Bin\Debug</OutputPath>
    <DefineConstants>DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
    <NoStdLib>true</NoStdLib>
    <NoConfig>true</NoConfig>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>Bin\Release</OutputPath>
    <DefineConstants>TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
    <NoStdLib>true</NoStdLib>
    <NoConfig>true</NoConfig>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="Newtonsoft.Json.WindowsPhone7">
      <HintPath>..\Reference\Newtonsoft.Json.WindowsPhone7.dll</HintPath>
    </Reference>
    <Reference Include="System.Windows" />
    <Reference Include="system" />
    <Reference Include="System.Core" />
    <Reference Include="System.Xml" />
    <Reference Include="System.Net" />
    <Reference Include="mscorlib.extensions" />
    <Reference Include="System.Xml.Linq" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Core\AsciiCharCode.cs" />
    <Compile Include="Core\AsyncHttpCallErrorEventArgs.cs" />
    <Compile Include="Core\AsyncHttpContext.cs" />
    <Compile Include="Core\ResponseObject.cs" />
    <Compile Include="Core\ResponseObjectParseException.cs" />
    <Compile Include="Core\StreamWriteContext.cs" />
    <Compile Include="Core\XmlAttribute.cs" />
    <Compile Include="Core\XmlData.cs" />
    <Compile Include="Extensions\DictionaryParserExtensions.cs" />
    <Compile Include="Extensions\StreamExtensions.cs" />
    <Compile Include="Extensions\XmlParserExtensions.cs" />
    <Compile Include="Http\HttpClient.AsyncCall.cs" />
    <Compile Include="Http\HttpClient.cs" />
    <Compile Include="Http\HttpMethodName.cs" />
    <Compile Include="Http\HttpProtocolType.cs" />
    <Compile Include="Http\HttpRequestCommand.cs" />
    <Compile Include="Http\HttpRequestUploadingEventArgs.cs" />
    <Compile Include="Http\HttpResponse.cs" />
    <Compile Include="Http\HttpResponseException.cs" />
    <Compile Include="OAuth\AccessTokenInfo.cs" />
    <Compile Include="OAuth\AuthorizeInfo.cs" />
    <Compile Include="OAuth\GetRequestTokenCommand.cs" />
    <Compile Include="OAuth\OAuthClient.AsyncCall.cs" />
    <Compile Include="OAuth\OAuthClient.cs" />
    <Compile Include="OAuth\OAuthClient.InnerClass.cs" />
    <Compile Include="OAuth\OAuthClient.Static.cs" />
    <Compile Include="OAuth\OAuthMode.cs" />
    <Compile Include="OAuth\OAuthSignatureTypes.cs" />
    <Compile Include="OAuth\SignatureInfo.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
  </ItemGroup>
  <Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.$(TargetFrameworkProfile).Overrides.targets" />
  <Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.CSharp.targets" />
  <ProjectExtensions />
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
</Project>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The MIT License


Written By
CEO TinyBetter, Inc
Japan Japan
I'm a CEO of TinyBetter, Inc in Japan.

Comments and Discussions