uthEndpointsBuilder.AddEmailFactory</code>:</p>
<pre><code class="lang-cs">builder.AddEmailFactory&lt;MyEmailFactory&gt;();
</code></pre>
<p>Learn more about creating a MIME messages using MimeKit <a href="https://github.com/jstedfast/MimeKit#creating-a-simple-message">here</a></p>
<h2 id="custom-email-sender">Custom Email Sender</h2>
<p>The default implementation of <code>IEmailSender</code>, <code>DefaultEmailSender</code> uses SmtpClient to send an email.
You can write your own email sender by implementi