public async Task <bool> SendEmailAsync(string destinationMail, string subject, string message) { var response = await FluentEmail.To(destinationMail) .Subject(subject).Body(message, true).SendAsync(); return(response.Successful); }
public InventorySupplierModule() { unitOfWork = new UnitOfWork(); AddressBook = new FluentAddressBook(unitOfWork); LocationAddress = new FluentLocationAddress(unitOfWork); Supplier = new FluentSupplier(unitOfWork); Email = new FluentEmail(unitOfWork); }
public AddressBookModule() { unitOfWork = new UnitOfWork(); AddressBook = new FluentAddressBook(unitOfWork); Employee = new FluentEmployee(unitOfWork); Supervisor = new FluentSupervisor(unitOfWork); Carrier = new FluentCarrier(unitOfWork); Buyer = new FluentBuyer(unitOfWork); Supplier = new FluentSupplier(unitOfWork); Phone = new FluentPhone(unitOfWork); Email = new FluentEmail(unitOfWork); }
static void Main(string[] args) { IFluentEmail fluentEmail = new FluentEmail(); fluentEmail.NewMessage() .Subject("Hello Subject") .To("*****@*****.**") .Body("Hello World!") .Sender("SenderName", "*****@*****.**", "123456") .UseGoogleServer(ServerType.Smtp) .Send(); Console.ReadLine(); }
public void MyFunction() { FluentEmail .CreateEmail() .UsingSmtpServer("smtp host") .From("*****@*****.**") .To("*****@*****.**") .CC("*****@*****.**") .BCC("*****@*****.**") .WithSubject("This is the subject") .WithBody("This is the body of the email.") .Send(); }
public SupplierModule() { unitOfWork = new UnitOfWork(); Supplier = new FluentSupplier(unitOfWork); GeneralLedger = new FluentGeneralLedger(unitOfWork); SupplierLedger = new FluentSupplierLedger(unitOfWork); AddressBook = new FluentAddressBook(unitOfWork); Emails = new FluentEmail(unitOfWork); AccountPayable = new FluentAccountPayable(unitOfWork); Udc = new FluentUdc(unitOfWork); ChartOfAccount = new FluentChartOfAccount(unitOfWork); ItemMaster = new FluentItemMaster(unitOfWork); LocationAddress = new FluentLocationAddress(unitOfWork); }
public CustomerModule() { unitOfWork = new UnitOfWork(); Customer = new FluentCustomer(unitOfWork); CustomerLedger = new FluentCustomerLedger(unitOfWork); AccountsReceivable = new FluentAccountReceivable(unitOfWork); CustomerClaim = new FluentCustomerClaim(unitOfWork); Contract = new FluentContract(unitOfWork); Email = new FluentEmail(unitOfWork); Phone = new FluentPhone(unitOfWork); LocationAddress = new FluentLocationAddress(unitOfWork); ScheduleEvent = new FluentScheduleEvent(unitOfWork); Invoice = new FluentInvoice(unitOfWork); AddressBook = new FluentAddressBook(unitOfWork); }