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

https://infinityfree.net/support/php-mail/

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

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.