diff --git a/Logic/Communications/TypedMailTemplate.cs b/Logic/Communications/TypedMailTemplate.cs index 406add96..684e48cb 100644 --- a/Logic/Communications/TypedMailTemplate.cs +++ b/Logic/Communications/TypedMailTemplate.cs @@ -868,7 +868,7 @@ namespace Swarmops.Logic.Communications else if (personObject is Person) { Person person = (Person)personObject; - this.ReporterEmail = person.Email; + this.ReporterEmail = person.Mail; this.ReporterName = person.Name; this.ReporterCategories = "Piratpartiet/Funktionär"; } @@ -936,7 +936,7 @@ namespace Swarmops.Logic.Communications this.MemberNumber = person.PersonId.ToString(); this.Name = person.Name; this.NameUrl = HttpUtility.UrlEncode(person.Name); - this.EmailBase64Url = HttpUtility.UrlEncode(Convert.ToBase64String(Encoding.UTF8.GetBytes(person.Email))); + this.EmailBase64Url = HttpUtility.UrlEncode(Convert.ToBase64String(Encoding.UTF8.GetBytes(person.Mail))); this.PhoneBase64Url = HttpUtility.UrlEncode(Convert.ToBase64String(Encoding.UTF8.GetBytes(person.Phone))); } } diff --git a/Logic/Swarm/AuditedPerson.cs b/Logic/Swarm/AuditedPerson.cs index ff80409b..00fc56e4 100644 --- a/Logic/Swarm/AuditedPerson.cs +++ b/Logic/Swarm/AuditedPerson.cs @@ -117,11 +117,11 @@ namespace Swarmops.Logic.Swarm public virtual string Email { - get { return person.Email; } + get { return person.Mail; } set { AuditField("Email", Email, value); - person.Email = value; + person.Mail = value; } } diff --git a/Logic/Swarm/ParleyAttendee.cs b/Logic/Swarm/ParleyAttendee.cs index 3972d14a..d9e75f98 100644 --- a/Logic/Swarm/ParleyAttendee.cs +++ b/Logic/Swarm/ParleyAttendee.cs @@ -81,7 +81,7 @@ namespace Swarmops.Logic.Swarm } OutboundInvoice invoice = OutboundInvoice.Create(this.Parley.Organization, this.Parley.Person, invoiceDue, - this.Parley.Budget, this.Person.Name, this.Person.Email, + this.Parley.Budget, this.Person.Name, this.Person.Mail, string.Empty, this.Parley.Organization.DefaultCountry.Currency, true, string.Empty); diff --git a/Utility/Mail/NewsletterTransmitter.cs b/Utility/Mail/NewsletterTransmitter.cs index 6ac7e372..7d7029dd 100644 --- a/Utility/Mail/NewsletterTransmitter.cs +++ b/Utility/Mail/NewsletterTransmitter.cs @@ -244,7 +244,7 @@ namespace Swarmops.Utility.Mail continue; } - if (person.Email.Length < 2) + if (person.Mail.Length < 2) { Console.WriteLine("NO EMAIL"); continue; @@ -258,13 +258,13 @@ namespace Swarmops.Utility.Mail MailMessage message = new MailMessage( new MailAddress("rick.falkvinge@piratpartiet.se", "Rick Falkvinge (Piratpartiet)"), - new MailAddress(person.Email, person.Name)); + new MailAddress(person.Mail, person.Name)); message.Subject = "Piratpartiet: " + title; message.AlternateViews.Add(htmlView); - string personEmail = person.Email.Trim().ToLower(); + string personEmail = person.Mail.Trim().ToLower(); string identifier = String.Format("{0:X4}", person.Identity); char[] array = identifier.ToCharArray(); diff --git a/Utility/Mail/NewsletterTransmitter3.cs b/Utility/Mail/NewsletterTransmitter3.cs index da3e739e..674d6a5d 100644 --- a/Utility/Mail/NewsletterTransmitter3.cs +++ b/Utility/Mail/NewsletterTransmitter3.cs @@ -175,7 +175,7 @@ namespace Swarmops.Utility.Mail { //Console.Write (recipient.Name + "(#" + recipient.Identity.ToString() + ")... "); - if (recipient.Email.Length < 2) + if (recipient.Mail.Length < 2) { //Console.WriteLine("canceled."); continue; // no email on file @@ -194,7 +194,7 @@ namespace Swarmops.Utility.Mail MailMessage message = new MailMessage( new MailAddress(newsletter.SenderAddress, qp8859.EncodeMailHeaderString(newsletter.SenderName), Encoding.GetEncoding("ISO-8859-1")), - new MailAddress(recipient.Email, qp8859.EncodeMailHeaderString(recipient.Name), Encoding.GetEncoding("ISO-8859-1"))); + new MailAddress(recipient.Mail, qp8859.EncodeMailHeaderString(recipient.Name), Encoding.GetEncoding("ISO-8859-1"))); message.Subject = "Piratpartiet: Nyhetsbrev " + DateTime.Today.ToString("yyyy-MM-dd"); // HACK @@ -213,7 +213,7 @@ namespace Swarmops.Utility.Mail attachment.ContentDisposition.Inline = true; message.Attachments.Add(attachment);*/ - string personEmail = recipient.Email.Trim().ToLower(); + string personEmail = recipient.Mail.Trim().ToLower(); string identifier = " [PP" + recipient.HexIdentifier() + "]"; @@ -252,7 +252,7 @@ namespace Swarmops.Utility.Mail ExceptionMail.Send( new Exception( "Error sending mail to " + recipient.Name + " (#" + recipient.Identity.ToString() + ") <" + - recipient.Email + ">:", e)); + recipient.Mail + ">:", e)); } } }