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
        public Email Create(Member member)
        {
            Subject = "smallworld Confirmation";
            To(member);

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

Thank you for joining smallworld!

To confirm your email address please click [this link]({links.JoinConfirmation(member)}).

-The smallworld Team
");

            return(Finish());
        }