public async Task SendRawEmailTest() { await NewEmail .Create("This is a raw email test from the .NET SDK.") .To(To, Cc, Bcc) .From("*****@*****.**", "*****@*****.**") .WithBody("This is a raw body email.") .SendAsync(); }
public async Task SendEmailWithSmtpTest() { await NewEmail .Create("This is a raw email test from the .NET SDK.") .To(To, Cc, Bcc) .From("*****@*****.**", "*****@*****.**") .WithBody("This is a raw body email.", false) .Using("smtp.gmail.com", 465, Username, Password) .SendAsync(); }
public async Task SendTemplatedEmailTest() { await NewEmail .Create("This is a raw email test from the .NET SDK.") .To(To, Cc, Bcc) .From("*****@*****.**", "*****@*****.**") .WithTemplateBody("sample", new Dictionary <string, string> { { "username", "john.doe" }, { "firstname", "John" }, { "lastname", "Doe" }, }, false) .SendAsync(); }