title: How to make PHP mail() function work like cPanel on Plesk
body: <p>So I have been using cPanel to administer my sites for quite a while, but have recently moved my sites onto a VPS running Plesk 11.5.30.</p>
  
  <p>I have contact forms on these sites that use the PHP mail() function, but since the move they don't get delivered with no errors. All the contact forms are sent to an external email address which resides on a different server. Also the from address is set to be the email address of the person that filled out the form.</p>
  
  <p>Here is a simple example of what I am trying to do:</p>
  
  <p><code>mail( "email@anotherdomain.com","Test Email","Test Message","From: &lt;customer@domain.com&gt;");</code></p>
  
  <p>So basically I want to use the PHP mail() function to send emails to an external domain and set them to come from the submitter's email address. This had been working fine on the cPanel server, but Plesk doesn't seem to like it. </p>
  
  <p>Some of the sites do use the server for mail and some use external services.</p>
  
  <p>I have searched for a while and cannot find a similar situation, so any help would be greatly appreciated!</p>
  
  <p>Thanks</p>
  
  <p>--- EDIT ---</p>
  
  <p>I have read the duplicate question and I have followed all of those steps. I would like to hear from someone who has been the the same situation (moved to a Plesk and their mail() function stops working), or knows what my issue is. </p>