private async Task SendMailToUpdatedSuppliersAsync(ApplicationUser user) { var em = new EmailMessageObj(); em.ToAddresses.Add(new EmailAddressObj { Address = user.Email }); em.Subject = "Profile Login Details Updated"; em.Content = $"Dear {user.FullName} <p>Your supplier account was successfully created </p> <br> Below is your account details" + $"by stating your terms which may be negotiable and best for this product and service"; em.SendIt = true; await _serverRequest.SendMessageAsync(em); }
public async Task SendEmailToSuppliersAsync(EmailMessageObj em, string description) { var path = $"#/main/adverts"; var path2 = $"{_uRIs.SelfClient}/{path}"; em.Subject = "Selected to supply"; em.Content = $"Dear Supplier <br> You have been selected to bid for {description} from your advert page <br>" + $"Kindly provide a proposal breakdown for the supply of {description} <br>" + $"You can also upload your proposal terms" + $"<br>Please click <a href='{path2}'> here </a> to see adverts"; em.FromAddresses = new List <EmailAddressObj>(); em.SendIt = true; em.SaveIt = false; em.Template = (int)EmailTemplate.Advert; await _serverRequest.SendMessageAsync(em); }
private async Task SendMail(string email, string name) { var sm = new EmailMessageObj(); sm.Subject = $" Supplier account details"; sm.Content = $"Hello {name} <br/>" + $"Your supplier account has sussefully being approved. <br/>" + $"Below is your account login details" + $"<b>Username : {email} <br/>" + $"<b>Password : Password@1 <br/>" + $"Please be sure to change your password on first login";; sm.ToAddresses.Add(new EmailAddressObj { Address = email, Name = name }); await _serverRequest.SendMessageAsync(sm); }
private async Task SendMailToNewSuppliersAsync(ApplicationUser user) { var em = new EmailMessageObj { FromAddresses = new List <EmailAddressObj>(), ToAddresses = new List <EmailAddressObj>() }; var ema = new EmailAddressObj { Address = user.Email, Name = user.UserName }; var path2 = $"{_uRIs.SelfClient}/#/auth/login"; em.ToAddresses.Add(ema); em.Subject = "Registration Successful"; em.Content = $"<p style='float:left'> Dear {user.FullName} <br> " + $"Congratulations, your account has been successfully created" + $"<br>Please click <a href='{path2}'> here </a> to access your profile and to complete registration</p>"; em.SendIt = true; em.SaveIt = false; em.Template = (int)EmailTemplate.LoginDetails; await _serverRequest.SendMessageAsync(em); }