arrow_upward

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] wp_mail() function - Wordpress
#7
If you using a custom DNS service such as Cloudflare the part of the guide is not really applicable to you. You can continue from "How to Install and Setup Mail Server on Ubuntu 18.04" I would say in that case. That said you will have to setup some DNS records at Cloudflare later on like MX records, SPF and such. The following might be a shock for you and others but I never bothered to setup a mail server on my own server at my own because it is too much hassle these days with all the necessary work to get the mails to work and not be blocked or land in spam. So I'm not really the correct person to ask in that case. Sorry about that Smile .

If you plan to use your own mail server on the VPS you still need a plugin that will allow you to configure the wp_mail() function to use the server. I found this guide: https://coderwall.com/p/hogffa/sending-e...-localhost

It's basically the same plugin that I linked before Smile . Instead of hosting your own server you can also use the free Sendgrid plan which allows 40.000 mails for the first 30 days and then 100 mails per day. If you don't exceed 100 mails / day this should work better initially than the hassle to setup a properly working mail server.

So you can use the plugin together with Sendgrid to send out mails. I used to do this on the Wordpress blogs I hosted and we still do it at FreeVPS.us (well, the Sendgrid account is enabled and configured for it, but because it is closed no e-mails are being sent obviously unless someone does something like "Forget password" or similar).

Other 3rd party SMTP services with free plans are:
- MailGun (10.000 mails / month)
- SendInBlue (9.000 mails / month)
[Image: zHHqO5Q.png]
lockThread Closed 


Messages In This Thread
RE: wp_mail() function - Wordpress - by Mashiro - 06-02-2019, 03:50 PM
RE: wp_mail() function - Wordpress - by Rehan - 06-03-2019, 11:36 AM
RE: wp_mail() function - Wordpress - by Mashiro - 06-03-2019, 02:18 PM
RE: wp_mail() function - Wordpress - by Rehan - 06-03-2019, 03:17 PM
RE: wp_mail() function - Wordpress - by Mashiro - 06-03-2019, 03:33 PM
RE: wp_mail() function - Wordpress - by rudra - 06-07-2019, 11:16 AM
RE: wp_mail() function - Wordpress - by Rehan - 06-09-2019, 11:04 AM

person_pin_circle Users browsing this thread: 1 Guest(s)
Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis - Limitless Hosting