Best way to send emails without have delay to the user
<p>I have an application that sends e-mails directly in the PHP code, but as it uses SMTP, when sending the user get a long loading time.
I was thinking about adding a table to record the emails and add a cronjob to send them.</p>

<p>Does anyone have a better solution to the user not be affected by the delay?</p>
