WordPress uses the default wp_mail() function to send emails which is similar to PHP’s mail() function. But we at rtCamp recommend and use Amazon SES (Simple Email Service), a cloud-based email service to send emails and MailHog to test and debug email delivery. ☁️🕵️
Learn how to set up Amazon SES with WordPress from the below resources –
Important Note: If plugin of external email service activated on development server or local setup and MailHog also enabled then MailHog won’t prevent sending emails. So, you need to deactivate plugin.