コード例 #1
0
ファイル: EmailSupport.cs プロジェクト: sandatan/reportsmart
 public void AddProfile(CEmailProfile aProfile)
 {
     if (IndexOf(aProfile) < 0)
     {
         _Profiles.Add(aProfile);
     }
 }
コード例 #2
0
ファイル: EmailSupport.cs プロジェクト: sandatan/reportsmart
 public void ScanForProfiles()
 {
     foreach (XmlNode aNode in DataNode.ChildNodes)
     {
         if (aNode.Name.ToUpper() == CEmailProfile.XML_SMPTPROFILE.ToUpper())
         {
             CEmailProfile lProfile = new CEmailProfile(this, aNode);
             if (IndexOf(lProfile) < 0)
             {
                 this.AddProfile(lProfile);
             }
         }
     }
 }
コード例 #3
0
ファイル: EmailSupport.cs プロジェクト: sandatan/reportsmart
        public CEmailProfile CreateNewProfile(string aProfileName, string aSMTP_Server)
        {
            string lNewId = CXmlSettingsNode.ValidateNewID(aSMTP_Server, DataNode);

            CEmailProfile lResult = new CEmailProfile(this, lNewId, true);

            lResult.ProfileName = aProfileName;
            lResult.SMTPServer  = aSMTP_Server;
            lResult.SMTPPort    = DEFAULT_PORT.ToString();
            lResult.SenderName  = "";
            lResult.SenderMail  = "";

            this._Profiles.Add(lResult);

            return(lResult);
        }
コード例 #4
0
ファイル: EmailSupport.cs プロジェクト: sandatan/reportsmart
 public int IndexOf(CEmailProfile aProfile)
 {
     return(IndexOf(aProfile.NodeID));
 }