本文整理汇总了C#中WebsitePanel.Providers.Mail.MailList类的典型用法代码示例。如果您正苦于以下问题:C# MailList类的具体用法?C# MailList怎么用?C# MailList使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MailList类属于WebsitePanel.Providers.Mail命名空间,在下文中一共展示了MailList类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: BindItem
public void BindItem(MailList item)
{
itemName = item.Name;
txtDescription.Text = item.Description;
if (String.IsNullOrEmpty(item.ModeratorAddress))
{
Utils.SelectListItem(ddlListModerators, GetLocalizedString("Text.SelectModerator"));
selectedModerator = GetLocalizedString("Text.SelectModerator");
}
else
{
Utils.SelectListItem(ddlListModerators, item.ModeratorAddress);
selectedModerator = item.ModeratorAddress;
}
chkReplyToList.Checked = (item.ReplyToMode == ReplyTo.RepliesToList);
Utils.SelectListItem(ddlPostingMode, item.PostingMode);
txtPassword.Text = item.Password;
chkPasswordEnabled.Checked = item.RequirePassword;
txtSubjectPrefix.Text = item.SubjectPrefix;
chkSubjectPrefixEnabled.Checked = item.EnableSubjectPrefix;
txtMaxMessageSize.Text = item.MaxMessageSize.ToString();
txtMaxRecipients.Text = item.MaxRecipientsPerMessage.ToString();
// members
mailEditItems.Items = item.Members;
}
开发者ID:jordan49,项目名称:websitepanel,代码行数:26,代码来源:SmarterMail_EditList.ascx.cs
示例2: SaveItem
public void SaveItem(MailList item)
{
item.PostingMode = (PostingMode)Enum.Parse(typeof(PostingMode), ddlPostingMode.SelectedValue, true);
item.ModeratorAddress = txtEmailAnnouncements.Text;
item.Members = mailEditItems.Items;
item.RequireSmtpAuthentication = cbSMTPAuthentication.Checked;
}
开发者ID:lwhitelock,项目名称:Websitepanel,代码行数:7,代码来源:hMailServer43_EditList.ascx.cs
示例3: SaveItem
public void SaveItem(MailList item)
{
item.ReplyToMode = (ReplyTo)Enum.Parse(typeof(ReplyTo), ddlReplyTo.SelectedValue, true);
item.PostingMode = (PostingMode)Enum.Parse(typeof(PostingMode), ddlPostingMode.SelectedValue, true);
item.Members = mailEditItems.Items;
}
开发者ID:jordan49,项目名称:websitepanel,代码行数:7,代码来源:ArgoMail_EditList.ascx.cs
示例4: BindItem
public void BindItem(MailList item)
{
Utils.SelectListItem(ddlReplyTo, item.ReplyToMode);
Utils.SelectListItem(ddlPostingMode, item.PostingMode);
mailEditItems.Items = item.Members;
}
开发者ID:jordan49,项目名称:websitepanel,代码行数:7,代码来源:ArgoMail_EditList.ascx.cs
示例5: BindItem
public void BindItem(MailList item)
{
Utils.SelectListItem(ddlPostingMode, item.PostingMode);
mailEditItems.Items = item.Members;
txtEmailAnnouncements.Text = item.ModeratorAddress;
cbSMTPAuthentication.Checked = item.RequireSmtpAuthentication;
ToggleFormControls();
}
开发者ID:lwhitelock,项目名称:Websitepanel,代码行数:8,代码来源:hMailServer43_EditList.ascx.cs
示例6: BindItem
public void BindItem(MailList item)
{
Utils.SelectListItem(ddlReplyTo, item.ReplyToMode);
Utils.SelectListItem(ddlPostingMode, item.PostingMode);
chkModerationEnabled.Checked = item.Moderated;
txtModeratorEmail.Text = item.ModeratorAddress;
mailEditItems.Items = item.Members;
}
开发者ID:jordan49,项目名称:websitepanel,代码行数:10,代码来源:MDaemon_EditList.ascx.cs
示例7: SaveItem
public void SaveItem(MailList item)
{
item.ReplyToMode = (ReplyTo)Enum.Parse(typeof(ReplyTo), ddlReplyTo.SelectedValue, true);
item.PostingMode = (PostingMode)Enum.Parse(typeof(PostingMode), ddlPostingMode.SelectedValue, true);
// save password
item.Password = txtPassword.Text;
item.Moderated = chkModerationEnabled.Checked;
item.ModeratorAddress = txtModeratorEmail.Text;
item.Members = mailEditItems.Items;
}
开发者ID:jordan49,项目名称:websitepanel,代码行数:13,代码来源:MDaemon_EditList.ascx.cs
示例8: SaveItem
public void SaveItem(MailList item)
{
item.ReplyToMode = (ReplyTo)Enum.Parse(typeof(ReplyTo), ddlReplyTo.SelectedValue, true);
item.PostingMode = (PostingMode)Enum.Parse(typeof(PostingMode), ddlPostingMode.SelectedValue, true);
item.PasswordProtection = (PasswordProtection)Enum.Parse(typeof(PasswordProtection), ddlPasswordProtection.SelectedValue, true);
// save password
item.Password = (txtPassword.Text.Length > 0) ? txtPassword.Text : (string)ViewState["PWD"];
item.Moderated = chkModerationEnabled.Checked;
item.ModeratorAddress = txtModeratorEmail.Text;
item.Description = txtDescription.Text;
item.Members = mailEditItems.Items;
item.MaxMessageSizeEnabled = chkMaxMessageSizeEnabled.Checked;
item.MaxMessageSize = Int32.Parse(txtMaxMessageSize.Text);
item.MaxRecipientsPerMessage = Int32.Parse(txtMaxRecipients.Text);
}
开发者ID:lwhitelock,项目名称:Websitepanel,代码行数:15,代码来源:Merak_EditList.ascx.cs
示例9: BindItem
public void BindItem(MailList item)
{
txtDescription.Text = item.Description;
if (!String.IsNullOrEmpty(item.ModeratorAddress))
{
ddlListModerators.SelectedValue = item.ModeratorAddress;
}
ddlMembersSource.SelectedValue = item.MembersSource.ToString();
mailEditItems.Items = item.Members;
ddlFromHeaderAction.SelectedValue = item.FromHeader.ToString();
ddlReplyToHeaderAction.SelectedValue = item.ReplyToHeader.ToString();
txtFromHeaderValue.Text = item.ListFromAddress;
txtReplyToHeaderValue.Text = item.ListReplyToAddress;
txtSubjectPrefix.Text = item.SubjectPrefix;
ddllblOriginator.SelectedValue = item.Originator.ToString();
ddlPostingMode.SelectedValue = item.PostingMode.ToString();
ddlPasswordProtection.SelectedValue = item.PasswordProtection.ToString();
txtPassword.Text = item.Password;
ddlDefaultRights.SelectedValue = ((int) item.DefaultRights).ToString();
txtMaxMessageSize.Text = item.MaxMessageSize.ToString();
txtMaxMembers.Text = item.MaxMembers.ToString();
chkSendToSender.Checked = item.SendToSender;
chkDigestMailingList.Checked = item.DigestMode;
txtMaxMessagesPerMinute.Text = item.MaxMessagesPerMinute.ToString();
chkSendSubscribe.Checked = item.SendSubscribe;
chkSendUnSubscribe.Checked = item.SendUnsubscribe;
ddlConfirmSubscription.SelectedValue = item.ConfirmSubscription.ToString();
chkCommandInSubject.Checked = item.CommandsInSubject;
chkEnableSubscribe.Checked = !item.DisableSubscribecommand;
chkEnableUnsubscribe.Checked = item.AllowUnsubscribe;
chkEnableLists.Checked = !item.DisableListcommand;
chkEnableWhich.Checked = !item.DisableWhichCommand;
chkEnableReview.Checked = !item.DisableReviewCommand;
chkEnableVacation.Checked = !item.DisableVacationCommand;
chkModerated.Checked = item.Moderated;
txtCommandPassword.Text = item.CommandPassword;
chkSuppressCommandResponses.Checked = item.SuppressCommandResponses;
ddlMembersSource_SelectedIndexChanged(this, null);
ddlFromHeaderAction_SelectedIndexChanged(this, null);
ddlReplyToHeaderAction_SelectedIndexChanged(this, null);
chkModerated_CheckedChanged(this, null);
ddlPasswordProtection_SelectedIndexChanged(this, null);
}
开发者ID:lwhitelock,项目名称:Websitepanel,代码行数:44,代码来源:IceWarp_EditList.ascx.cs
示例10: BindItem
public void BindItem(MailList item)
{
Utils.SelectListItem(ddlReplyTo, item.ReplyToMode);
Utils.SelectListItem(ddlPostingMode, item.PostingMode);
Utils.SelectListItem(ddlPrefixOption, item.PrefixOption);
txtSubjectPrefix.Text = item.SubjectPrefix;
chkModerationEnabled.Checked = item.Moderated;
txtModeratorEmail.Text = item.ModeratorAddress;
mailEditItems.Items = item.Members;
if (!String.IsNullOrEmpty(item.Password))
{
txtPassword.Attributes["value"] = txtPassword.Text = item.Password;
}
else
{
txtPassword.Text = "";
}
txtDescription.Text = item.Description;
switch (item.AttachHeader)
{
case 1:
cbHeader.Checked = true;
break;
case 0:
cbHeader.Checked = false;
break;
}
switch (item.AttachFooter)
{
case 1:
cbFooter.Checked = true;
break;
case 0:
cbFooter.Checked = false;
break;
}
txtHeaderText.Text = item.TextHeader;
txtFooterText.Text = item.TextFooter;
txtHeaderHtml.Text = item.HtmlHeader;
txtFooterHtml.Text = item.HtmlFooter;
}
开发者ID:lwhitelock,项目名称:Websitepanel,代码行数:42,代码来源:MailEnable_EditList.ascx.cs
示例11: BindItem
public void BindItem(MailList item)
{
Utils.SelectListItem(ddlReplyTo, item.ReplyToMode);
Utils.SelectListItem(ddlPostingMode, item.PostingMode);
Utils.SelectListItem(ddlPasswordProtection, item.PasswordProtection);
chkModerationEnabled.Checked = item.Moderated;
txtModeratorEmail.Text = item.ModeratorAddress;
txtDescription.Text = item.Description;
mailEditItems.Items = item.Members;
chkMaxMessageSizeEnabled.Checked = item.MaxMessageSizeEnabled;
txtMaxMessageSize.Text = item.MaxMessageSize.ToString();
txtMaxRecipients.Text = item.MaxRecipientsPerMessage.ToString();
if (!String.IsNullOrEmpty(item.Password))
{
txtPassword.Attributes["value"] = txtPassword.Text = item.Password;
}
else
{
txtPassword.Text = "";
}
}
开发者ID:lwhitelock,项目名称:Websitepanel,代码行数:21,代码来源:Merak_EditList.ascx.cs
示例12: SaveItem
public void SaveItem(MailList item)
{
item.Description = txtDescription.Text;
if (ddlListModerators.SelectedValue == GetLocalizedString("Text.SelectModerator"))
{
item.ModeratorAddress = null;
}
else
{
item.ModeratorAddress = ddlListModerators.SelectedValue;
}
item.ReplyToMode = chkReplyToList.Checked ? ReplyTo.RepliesToList : ReplyTo.RepliesToSender;
item.PostingMode = (PostingMode)Enum.Parse(typeof(PostingMode), ddlPostingMode.SelectedValue, true);
item.Password = txtPassword.Text;
item.RequirePassword = chkPasswordEnabled.Checked;
item.SubjectPrefix = txtSubjectPrefix.Text;
item.EnableSubjectPrefix = chkSubjectPrefixEnabled.Checked;
item.MaxMessageSize = Int32.Parse(txtMaxMessageSize.Text);
item.MaxRecipientsPerMessage = Int32.Parse(txtMaxRecipients.Text);
item.Members = mailEditItems.Items;
ctrl = null;
}
开发者ID:jordan49,项目名称:websitepanel,代码行数:23,代码来源:SmarterMail50_EditList.ascx.cs
示例13: SaveItem
public void SaveItem(MailList item)
{
item.Description = txtDescription.Text;
item.ModeratorAddress = ddlListModerators.SelectedValue;
item.MembersSource = (IceWarpListMembersSource)Enum.Parse(typeof (IceWarpListMembersSource), ddlMembersSource.SelectedValue);
item.Members = mailEditItems.Items;
item.FromHeader = (IceWarpListFromAndReplyToHeader)Enum.Parse(typeof (IceWarpListFromAndReplyToHeader), ddlFromHeaderAction.SelectedValue);
item.ReplyToHeader = (IceWarpListFromAndReplyToHeader)Enum.Parse(typeof (IceWarpListFromAndReplyToHeader), ddlReplyToHeaderAction.SelectedValue);
item.ListFromAddress = txtFromHeaderValue.Text;
item.ListReplyToAddress = txtReplyToHeaderValue.Text;
item.SubjectPrefix = txtSubjectPrefix.Text;
item.Originator = (IceWarpListOriginator)Enum.Parse(typeof (IceWarpListOriginator), ddllblOriginator.SelectedValue);
item.PostingMode = (PostingMode)Enum.Parse(typeof (PostingMode), ddlPostingMode.SelectedValue);
item.PasswordProtection = (PasswordProtection)Enum.Parse(typeof (PasswordProtection), ddlPasswordProtection.SelectedValue);
item.Password = txtPassword.Text;
item.DefaultRights = (IceWarpListDefaultRights)Enum.Parse(typeof (IceWarpListDefaultRights), ddlDefaultRights.SelectedValue);
item.MaxMessageSize = Convert.ToInt32(txtMaxMessageSize.Text);
item.MaxMembers = Convert.ToInt32(txtMaxMembers.Text);
item.SetReceipientsToToHeader = chkSetRecipientToToHeader.Checked;
item.SendToSender = chkSendToSender.Checked;
item.DigestMode = chkDigestMailingList.Checked;
item.MaxMessagesPerMinute = Convert.ToInt32(txtMaxMessagesPerMinute.Text);
item.SendSubscribe = chkSendSubscribe.Checked;
item.SendUnsubscribe = chkSendUnSubscribe.Checked;
item.ConfirmSubscription = (IceWarpListConfirmSubscription)Enum.Parse(typeof (IceWarpListConfirmSubscription), ddlConfirmSubscription.SelectedValue);
item.CommandsInSubject = chkCommandInSubject.Checked;
item.DisableSubscribecommand = !chkEnableSubscribe.Checked;
item.AllowUnsubscribe = chkEnableUnsubscribe.Checked;
item.DisableListcommand = !chkEnableLists.Checked;
item.DisableWhichCommand = !chkEnableWhich.Checked;
item.DisableReviewCommand = !chkEnableReview.Checked;
item.DisableVacationCommand = !chkEnableVacation.Checked;
item.Moderated = chkModerated.Checked;
item.CommandPassword = txtCommandPassword.Text;
item.SuppressCommandResponses = chkSuppressCommandResponses.Checked;
}
开发者ID:jonwbstr,项目名称:Websitepanel,代码行数:36,代码来源:IceWarp_EditList.ascx.cs
示例14: BindItem
public void BindItem(MailList item)
{
mailEditItems.Items = item.Members;
}
开发者ID:lwhitelock,项目名称:Websitepanel,代码行数:4,代码来源:AbilityMailServer_EditList.ascx.cs
示例15: SaveItem
public void SaveItem(MailList item)
{
item.Members = mailEditItems.Items;
}
开发者ID:lwhitelock,项目名称:Websitepanel,代码行数:4,代码来源:AbilityMailServer_EditList.ascx.cs
示例16: CreateList
public void CreateList(MailList maillist)
{
Tree config = AMSHelper.GetMailListsConfig();
AmsMailList amsList = new AmsMailList(maillist.Name);
if (amsList.Load(config))
throw new Exception("Mail list is already exists.");
amsList.Read(maillist);
if (!amsList.Save(config))
throw new Exception("Couldn't create a mail list.");
}
开发者ID:lwhitelock,项目名称:Websitepanel,代码行数:13,代码来源:AbilityMailServer.cs
示例17: UpdateList
public void UpdateList(MailList maillist)
{
Tree config = AMSHelper.GetMailListsConfig();
AmsMailList amsList = new AmsMailList(maillist.Name);
if (amsList.Load(config))
{
amsList.LoadListConfig();
amsList.Read(maillist);
if (!amsList.Save(config))
throw new Exception("Couldn't update specified mail list.");
}
else
{
throw new Exception("Couldn't find specified mail list.");
}
}
开发者ID:lwhitelock,项目名称:Websitepanel,代码行数:18,代码来源:AbilityMailServer.cs
示例18: UpdateListAsync
/// <remarks/>
public void UpdateListAsync(MailList list, object userState)
{
if ((this.UpdateListOperationCompleted == null))
{
this.UpdateListOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateListOperationCompleted);
}
this.InvokeAsync("UpdateList", new object[] {
list}, this.UpdateListOperationCompleted, userState);
}
开发者ID:jordan49,项目名称:websitepanel,代码行数:10,代码来源:MailServerProxy.cs
示例19: GetLists
public virtual MailList[] GetLists(string domainName)
{
try
{
WebsitePanelMailListAdmin svcLists = new WebsitePanelMailListAdmin();
PrepareProxy(svcLists);
MailingListsResult result = svcLists.GetMailingLists(AdminUsername, AdminPassword, domainName);
if (!result.Result)
throw new Exception(result.Message);
List<MailList> items = new List<MailList>();
foreach (MailingListInfo listInfo in result.MailingLists)
{
MailList item = new MailList();
item.Name = listInfo.Name;
item.Description = listInfo.Description;
}
return items.ToArray();
}
catch (Exception ex)
{
throw new Exception("Could not get mail list", ex);
}
}
开发者ID:jordan49,项目名称:websitepanel,代码行数:27,代码来源:SmarterMail2.cs
示例20: UpdateList
public virtual void UpdateList(MailList list)
{
try
{
WebsitePanelMailListAdmin svcLists = new WebsitePanelMailListAdmin();
PrepareProxy(svcLists);
MailListPostOptions postMode = MailListPostOptions.Anyone;
if (list.PostingMode == PostingMode.MembersCanPost)
postMode = MailListPostOptions.SubscribersOnly;
if (list.PostingMode == PostingMode.ModeratorCanPost)
postMode = MailListPostOptions.ModeratorOnly;
GenericResult result = svcLists.UpdateMailingList(AdminUsername, AdminPassword,
list.Name,
list.ModeratorAddress,
list.Description,
list.MaxMessageSize,
list.MaxRecipientsPerMessage,
list.EnableSubjectPrefix,
list.SubjectPrefix,
list.Members,
postMode,
(list.ReplyToMode == ReplyTo.RepliesToList),
list.Password,
list.RequirePassword);
if (!result.Result)
throw new Exception(result.Message);
}
catch (Exception ex)
{
throw new Exception("Could not update mail list", ex);
}
}
开发者ID:jordan49,项目名称:websitepanel,代码行数:35,代码来源:SmarterMail2.cs
注:本文中的WebsitePanel.Providers.Mail.MailList类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论