By tiomanisland
i managed to make sendmail work and i can send email out with mail() in PHP. however that email always goes to spam. my domain is new, has never been used before. i read that i have to create reverse DNS (i really have no idea how to do it) to avoid emails to be delivered to spam folder. does anyone know what exactly do i have to do to see email sent from my php script to appear in INBOX (gmail)?
thank you!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi,
you are right, you need a reverse DNS record. DigitalOcean sets this record based on the hostname of your droplet automatically. You can check your settings with the command:
jkostolansky@server:~$ hostname
your-domain.com
If you wish to update your rDNS record, you can rename your droplet in the control panel:
You’re PTR should coincide with your hostname, just ask DO to update your PTR.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.