I have been trying to send emails from my app using the PHP mail function. I am currently hosted at DigitalOcean and the only way for me to send out emails is with services like SendGrid.
I have done everything according to their integration guide, but I still do not know how it works.
Can I send emails using the PHP mail()
function?
Here is what I have done so far ...
- Update the CNAME records to match those of SendGrid.
- Verify that the records have been set.
- I have authenticated my domain.
- I have sent an email using Outlook.
I can send out emails with my Outlook but I cannot send out emails from my app. I really don't understand how this works?
Are there any records I need to update before I can send out emails?
Do I have to use SendGrid API to send out emails or can I simply use PHP mail()
function?
By the way, I have cPanel installed on my server and it handles my emails outgoing, and incoming