Report this

What is the reason for this report?

Wrong domain when sending mails from PHP, how to fix it?

Posted on June 25, 2020

I had to rename my droplet to send mails, and it was renamed to my domain name, because I needed to be fqdn. When sending mails using php mail() function, it worked just fine, and the mails were received from something@mydomain.com, but then I turned off my droplet, resized it, turned it on again, and now my mails that are sent using php mail are being received from something@myolddropletname that is not even a domain, so I don’t know how to fix it.

My mails look something like this:

https://ibb.co/D94XJ5X

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.