I can not send my project because it is private
I think you can solve it without my project
maybe their is configuration I forget to write
if I invent some peoples for a meetings ..it will send an email for all of them
on Application.Contracts Layers
[BackgroundJobName("EmailSendingArgs2")]
public class EmailSendingArgs
{
public List<string>? EmailAddressList { get; set; }
public string? Subject { get; set; }
public string? Body { get; set; }
}
on Application Layers
public class EmailSendingJob : AsyncBackgroundJob<EmailSendingArgs>, ITransientDependency
{
private readonly IEmailSender _emailSender;
public EmailSendingJob(IEmailSender emailSender)
{
_emailSender = emailSender;
}
public override async Task ExecuteAsync(EmailSendingArgs args)
{
foreach (string emailAddress in args.EmailAddressList)
{
await _emailSender.SendAsync(
emailAddress,
args.Subject,
args.Body
);
}
}
}
on AppService
await _backgroundJobManager.EnqueueAsync(
new EmailSendingArgs
{
EmailAddressList = emailAddressList,
Subject = subject,
Body = emailBody
}
);
```
how i can use unique name for the email??
*
but your demo dose not contain any images
** LinkedResource inline = new LinkedResource("filename.jpg", MediaTypeNames.Image.Jpeg); inline.ContentId = Guid.NewGuid().ToString(); avHtml.LinkedResources.Add(inline);**
but for your template >>I think embedded image need cid on src
SECheck the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.
If you're creating a bug/problem report, please include followings: