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.
Caution: It would be better to not use any external third-party email service plugins. As they may send unintentional emails to customers. As it doesn’t work with mail hog, the mails will be sent to clients from local development site with local URLs.