public async Task Send(SignUpUserNewModel signUpUserNewModel) { EmailMessage message = new EmailMessage(); message.To = new MailboxAddress(signUpUserNewModel.Email); Console.WriteLine(signUpUserNewModel.Email); message.Subject = "Booking Order Details"; message.Content = string.Format("Dear {0}." + Environment.NewLine + "Firstly, Thank You for placing an order by using 7 Hills Application." + Environment.NewLine + "Your Booking Order Id is : {1}." + Environment.NewLine + "But Currently we are not taking any order and this application is under Construction may be you can meet us in Future. " + Environment.NewLine + "If you find any problem with this application or if you have any suggestions for us, you can contact us here [email protected]." + Environment.NewLine + "\n Thank You and Best Regards." + Environment.NewLine + " Bharath", signUpUserNewModel.Name, signUpUserNewModel.UserId); await _emailSenderInterface.SendEmailAsync(message); }
public async Task Send(NewUserSignUpModel newUserSignUpModel) { EmailMessage message = new EmailMessage(); message.To = new MailboxAddress(newUserSignUpModel.Email); // Console.WriteLine(newUserSignUpModel.Email); message.Subject = "Booking Order Details"; message.Content = string.Format("Dear {0}.\n " + "Firstly, Thank You for placing an order by using 7 Hills Application. \n" + "Your Booking Order Id is : {1}. \n" + "But Currently we are not taking any order and this application is under contruction may be you can meet us in Future.\n " + "If you find any problem with this application or if you any suggestions for us you are contact us by [email protected].\n" + "\n Thank You and Best Regards.\n Bharath", newUserSignUpModel.UserName, newUserSignUpModel.Id); await _emailSenderInterface.SendEmailAsync(message); }