Search code examples
phpemailserverapache2issue-tracking

PHP mailing only work with my servermail


I've already check link on stackoverflow and i did not find answer.

My issue is :

I have a website with a contact page. It takes the following fields :

  • Name
  • Email
  • Subject
  • Message

When i click on submit, i get an email only if the email address is that of my personnal server.

I use apache2, php7.0.

I don't how to fix this issue and always send contact mail with my private adress.

Sorry for my english and thanks for answering !

Thibaud


Solution

  • Solved : Problem in the variable instanciation in my code.