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

Asked by:
Richard
Time:
2011-08-09 6:36 pm
Category:
Email Troubleshooting
Hits:
2,960
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?

You must login before you can ask a follow up question.

You must login before you can submit an answer.

Best answer chosen by User

0

bradm
2011-08-09 6:47 pm
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

You must login before you can post a comment about this answer.

Like this Question?

Have a Question?

If you need some help, submit your question to our Community! We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)

Recent Questions

  1. Can't login to email
  2. "WordPress Login Temporarily Disabled"?
  3. Google Adwords Credit Link Doesn't Work in AMP

Support 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.