We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
php mail() function sends as another host
-
- Posts: 11
- Joined: Wed Apr 12, 2017 5:02 am
php mail() function sends as another host
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!
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!
-
- Posts: 11
- Joined: Wed Apr 12, 2017 5:02 am
Re: php mail() function sends as another host
oh... i think i need to modify host records and it should be ok ... i put in the wrong hostname...