This commit is contained in:
@@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user