protected void Page_Load(object sender, EventArgs e) { if (!this.Posted) { r = Utility.getSESUtils().listVerifiedEmails(); } else // process the form post. { // if not a valid form post, then do nothing else. if (!validForm()) { r = Utility.getSESUtils().listVerifiedEmails(); return; } SESUtils sesUtils = Utility.getSESUtils(); String[] stringSeparator = new String[] { ";" }; Email msg = new Email(); msg.subject = this.Subject; msg.to = this.ToAddressesList; if (!String.IsNullOrEmpty(this.CcAddresses)) { msg.cc = this.CcAddressesList; } if (!String.IsNullOrEmpty(this.BccAddresses)) { msg.bcc = this.BccAddressesList; } if (!String.IsNullOrEmpty(this.ReplyToAddresses)) { msg.replyToAddresses = this.ReplyToAddressesList; } msg.returnPath = this.ReturnPath; // bounces go here msg.source = this.Source; // sender's email address msg.html = this.BodyHTML; msg.text = this.BodyTEXT; sesUtils.sendEmail(msg); emailSent = true; } }
protected void Page_Load(object sender, EventArgs e) { switch (this.command) { case "delete": Utility.getSESUtils().deleteVerifiedEmail(this.emailAddress); Response.Redirect("default.aspx"); break; default: break; } r = Utility.getSESUtils().listVerifiedEmails(); }