Why does email generated using the PHP Mail Function show webhostinghub as the sender rather then my Domain Name?

Asked by:
Richard / 5 Points
Time:
2011-08-09 9:36 pm EST
Category:
Email Troubleshooting
Hits:
4,925
May be a silly question, but is this how it is normally supposed to operate? Or should it show my domain name rather then for ex. mailed-by: whub25.webhostinghub.com?

To ask this user for more information, please first login.

To submit an answer, please login.

Best answer chosen by User

0

bradm
Staff
1,846 Points
2011-08-09 9:47 pm EST
Hi Richard,

When you send email using the php mail function, the email is sent from the server, and the server's hostname is recorded as the from sender. This is normal behavior.

If you're referring to the from server in the headers, there is not a way to change this. You can compare this to email sent from other providers, and you should see the name of the server listed in the headers.

If you're referring to the sender's email address, it may show as userna5@whub25.webhostinghub.com. To get around this, you can use an alternative to the php mail function, such as phpMailer:
How do I use phpMailer to Send Email through PHP?

I hope this helps! If you can update your question with more detail, I'll be more than happy to address further.

Thanks!

- Brad

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}