The best way to send email through WordPress is with an external mail server. This is because (dedicated) SMTP servers are usually better setup to avoid spam, using SPF, blacklists, port blocking and more.
With an external SMTP server your emails are less likely to end up in your user’s spam filter.
The first thing you need is a service that is correctly configured. We recommend using a dedicated service for that. After that, you need to setup SPF for your domain name for the transactional email service you have chosen.
Finally you need to setup WordPress with an external SMTP server and for the above mentioned services, the following WordPress plugins are available: