Beispiel #1
0
        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);
 }
Beispiel #3
0
 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);
 }
Beispiel #4
0
        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();
        }
Beispiel #5
0
 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();
 }
Beispiel #6
0
 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);
 }
Beispiel #7
0
 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);
 }