Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Mail Server
  • Search

php mail() function sends as another host

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
robinsouthchina
Posts: 11
Joined: Wed Apr 12, 2017 5:02 am

php mail() function sends as another host
  • Quote

Post by robinsouthchina » Wed Apr 12, 2017 7:29 am

Hi!

I have a domain I set up in the control panel. Inside this domain I have a contact page which uses the very simple php mail() function. I have tested it by sending to numerous different email addresses. Some of them receive it and some of them don't. However, I discovered in those email boxes that DID receive the email sent from my webform/contact page that it was sent by way of "[email protected]" and not via the hostname/domain name that I set up after logging into my Vesta control panel. That domain is different. And I thought that the php mail() function would just "naturally" find the correct mail server.

Could you please help me configure things correctly? Because I believe (maybe I am wrong) that the reason some of my receiver email addresses don't get the mail is because it is going as [email protected] but being sent by [email protected] ? ...

Oh I almost forgot: I think vestacp is a great control panel!
Top

robinsouthchina
Posts: 11
Joined: Wed Apr 12, 2017 5:02 am

Re: php mail() function sends as another host
  • Quote

Post by robinsouthchina » Wed Apr 26, 2017 7:55 am

oh... i think i need to modify host records and it should be ok ... i put in the wrong hostname...
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Mail Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password