private void sendCustomerEmail(Order order)
 {
     mp.SendMail(new InquiryInfo
     {
         Subject          = "Order Confirmation",
         Message          = "",
         RecepientAddress = order.CspPayerEmail,
         RecepientName    = order.RequestFirstName,
         FullMessage      = "Thanks for purchasing from Stesha Pty Ltd!\n\rFollowing are details of your order: \n\r"
                            + OrderToString(order)
     });
 }
        private void SendNewPassword(string newPassword, string username)
        {
            InquiryInfo     inq  = new InquiryInfo();
            ApplicationUser user = repository.FindByName(username);

            inq.RecepientName    = user.Name;
            inq.RecepientAddress = user.Email;
            inq.Subject          = "Password reset";
            inq.FullMessage      = "Hi " + user.Name + ", your new password is " + newPassword;

            mailProcessor.SendMail(inq);
        }
Beispiel #3
0
        private void ProcessInquiry(InquiryInfo inq)
        {
            inq.RecepientAddress = "*****@*****.**";
            inq.RecepientName    = "Krystsina Kasnikouskaya";
            inq.FullMessage      = "Hello, my name is " + inq.Title + " " + inq.FirstName + " " + inq.LastName;
            inq.FullMessage     += ". I would like to inquire about " + inq.Subject;
            inq.FullMessage     += ". Following are my contact details : Contact number - ";
            inq.FullMessage     += inq.Telephone;
            inq.FullMessage     += "; Email address - ";
            inq.FullMessage     += inq.EmailAddress;
            inq.FullMessage     += "; Country of residence - ";
            inq.FullMessage     += inq.Country;
            inq.FullMessage     += ". The inquiry: " + inq.Message;

            mailProcessor.SendMail(inq);
        }
        private void SendConfirmationEmail(ApplicationUser appUser, IMailProcessor sender)
        {
            string message = "Hi " + appUser.Name + "!";

            message += "\n\rYour profile with " + myBusinessName + " has been successfully created.";
            message += "\n\rYour username is " + appUser.UserName;
            message += "\n\rYou can log into your account using the following link http://stesha.com.au/Account/Login";

            InquiryInfo inq = new InquiryInfo
            {
                RecepientName    = appUser.Name,
                RecepientAddress = appUser.Email,
                Subject          = "new account at " + myBusinessName,
                FullMessage      = message
            };

            sender.SendMail(inq);
        }