using System.Threading.Tasks;
using Microsoft.Extensions.Options;
public static void Main()
Console.WriteLine("Hello World");
public static void SendEmailAsync()
var email = new MimeMessage();
email.Sender = MailboxAddress.Parse("interns.common@thesunflowerlab.com");
email.To.Add(MailboxAddress.Parse("kandarp.bhatt@thesunflowerlab.com"));
var builder = new BodyBuilder();
builder.HtmlBody = "Test Body";
email.Body = builder.ToMessageBody();
using var smtp = new SmtpClient();
smtp.Connect("smtp.office365.com", 587, SecureSocketOptions.StartTls);
smtp.Authenticate("interns.common@thesunflowerlab.com", "Yop78132");