Sending email from php

Hello

When I send an email from php it comes with "No from address/name specified <[myusernumber]@hostingaccount.com> instead of my real address of email in hosting. Any help to achieve this?

Thank you

Did you specify a From header in your code? If not, you should do so.

1 Like

Yes, I did. The fact is that, the text of the header must have a very specific format to work, it is not enough just to put the text and that’s it. Now I fixed it and works well. Thank you.

1 Like