Ejemplo n.º 1
0
        public Email Create(Member member)
        {
            entries.Entry(member)
            .LoadRelations(m => m.World.Account);

            Subject = "Welcome to smallworld";
            To(member);

            Write($@"Hi {member.FirstName},");

            if (!member.HasEmailValidation)
            {
                Write($@"You have been added to the {member.World.Name} smallworld community by
{member.World.Account.Name}. To participate you need to confirm your email address by clicking
[this link]({links.JoinConfirmation(member)}).");
            }
            else
            {
                Write($@"You have been added to the {member.World.Name} smallworld community by
{member.World.Account.Name}. You can expect to receive your first smallworld pairing soon.

You can leave at any time with [this link]({links.InvitePage(member.World)}).");
            }

            Write("-The smallworld Team");

            return(Finish());
        }
Ejemplo n.º 2
0
        private void Construct(Identity init, Identity recv, World world, Pairing pairing)
        {
            Subject = $"{world.Name} - smallworld Connection";
            To(recv);

            var member = recv as Member;

            Write($@"
{feedbackRequest.Create(member, pairing)}

Hi {recv.FirstName},

You have been paired with {init.FullName()} for your next smallworld
connection. {init.FirstName} has been selected as the initiator. Since
everyone is busy from time to time, we suggest contacting your partner
if you have not heard from them within 48 hours of the initial pairing email.

Your partner’s contact information is below. We suggest providing three or
more times to connect in your initial email.

{init.FirstName} {init.LastName}  
{init.Email}

{personalMessage.Create(pairing)}

-The smallworld Team

{optOut.Create(member)}

Use the following link to leave/join your smallworld group at any time: [click here]({links.InvitePage(world)})
");
        }
Ejemplo n.º 3
0
        private void Construct(Member init, Identity recv, World world, Pairing pairing)
        {
            Subject = $"{init.World.Name} - smallworld Connection";
            To(init);

            Write($@"
{feedbackRequest.Create(init, pairing)}

Hi {init.FirstName},

You have been paired with {recv.FirstName} for your next smallworld
connection. You have been selected as the initiator. **As the initiator,
it is your responsibility to send the first email to set up your meeting.**

Your partner’s contact information is below. We suggest providing three or
more times to connect in your initial email.  

{recv.FirstName} {recv.LastName}  
{recv.Email}

{personalMessage.Create(pairing)}

-The smallworld Team

{optOut.Create(init)}

Use the following link to leave/join your smallworld group at any time: [click here]({links.InvitePage(world)})
");
        }