protected void btnSubmit_Click(object sender, EventArgs e)
 {
     var smtpConnection = new SmtpConnection();
     smtpConnection.IsDelete = false;
     smtpConnection.CreatedDate = System.DateTime.Now;
     smtpConnection.DailyLimit = Convert.ToInt32(txtDailyLimit.Text);
     smtpConnection.EmailId = txtEmail.Text;
     smtpConnection.Name = txtName.Text;
     smtpConnection.UserName = txtUserName.Text;
     smtpConnection.Url = txtSmtpUrl.Text;
     smtpConnection.OwnerId = Convert.ToInt32(Session["uid"]);
     smtpConnection.Password = txtPassword.Text;
     smtpConnection.Port = txtPortNo.Text;
     smtpConnection.Priority = Convert.ToInt32(txtPriority.Text);
     _dbScheduler.SmtpConnections.InsertOnSubmit(smtpConnection);
     _dbScheduler.SubmitChanges();
     BindConnections();
     txtEmail.Text = "";
     txtName.Text = "";
     txtPassword.Text = "";
     txtSmtpUrl.Text = "";
     txtPriority.Text = "";
     txtPortNo.Text = "";
     txtUserName.Text = "";
     txtDailyLimit.Text = "";
 }
示例#2
0
 public EhloParseExtensionsTest()
 {
     _smtpConnection = new SmtpConnection(s_authenticationModules);
 }
 public IActionResult Post(
     [FromServices] IPostSmtpConnectionCommand command,
     [FromBody] SmtpConnection smtpConnection) => command.Execute(smtpConnection);
示例#4
0
 public EhloParseExtensionsTest()
 {
     _smtpConnection = new SmtpConnection(s_authenticationModules);
 }
 public SmtpWindow()
 {
     InitializeComponent();
     _smtp = new SmtpConnection();
 }
 partial void DeleteSmtpConnection(SmtpConnection instance);
 partial void UpdateSmtpConnection(SmtpConnection instance);
 partial void InsertSmtpConnection(SmtpConnection instance);