public InternetServiceProfile(int ServiceProfileID, InternetServiceType type, InternetConnectionProfile profile) { this.pDelFlag = POPDeleteFlage.unknown; this.alphabet = Alphabet.unknown; this.pCmd = POPCommand.unknown; this.profileID = ServiceProfileID; this.srvType = type; this.conId = profile.profileID; user = passwd = tcpPort = address = hcContent = hcContLen = hcUsrAgent = hcProp = hcRedir = hcAuth = smFrom = smRcpt = smCC = smSubj = smHdr = smAuth = pNumber = pLength = tcpMR = tcpOT = secOpt = ""; }
/// <summary> /// this will over write server profile 3 /// </summary> /// <param name="POPserver"></param> /// <param name="Username"></param> /// <param name="Password"></param> /// <param name="Command"></param> /// <param name="MessageID"></param> /// <param name="Flage"></param> /// <returns></returns> public InternetRequestResponse Internet_POP(string POPserver, string Username, string Password, POPCommand Command, string MessageID, POPDeleteFlage Flage) { InternetServiceProfile profile = new InternetServiceProfile(3, InternetServiceType.Pop3, 0); profile.address = POPserver; profile.user = Username; profile.passwd = Password; profile.pCmd = Command; profile.pNumber = MessageID; profile.pDelFlag = Flage; profile.smAuth = "1"; profile.alphabet = Alphabet.international_reference_alphabet; profile.tcpPort = "110"; Internet_Setup_Service_Profile(profile); return Internet_POP(profile); }