Example #1
0
 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);
         }
     }
 }
Example #2
0
        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;
        }
Example #3
0
 public int IndexOf(CEmailProfile aProfile)
 {
     return IndexOf(aProfile.NodeID);
 }
Example #4
0
 public void AddProfile(CEmailProfile aProfile)
 {
     if (IndexOf(aProfile) < 0)
         _Profiles.Add(aProfile);
 }