static void Main(string[] args) { EmailCreator.CreateEmailFrom("*****@*****.**") .To("*****@*****.**", "*****@*****.**", "*****@*****.**") .CC("*****@*****.**", "*****@*****.**") .BCC("*****@*****.**", "*****@*****.**", "*****@*****.**", "*****@*****.**") .WithSubject("Email subject here") .WithBody("Email body here") .Send(); }
public void DoSomething() { // Pretend there is business-logic here // Send an e-mail - version behind wrapper/facade, with multiple "to", "cc", and "bcc" addresses. EmailCreator.CreateEmailFrom("*****@*****.**") .To("*****@*****.**", "*****@*****.**", "*****@*****.**") .CC("*****@*****.**", "*****@*****.**") .BCC("*****@*****.**", "*****@*****.**", "*****@*****.**", "*****@*****.**") .WithSubject("Email subject here") .WithBody("Email body here") .Send(); }