title: Best way to send mail from different from adresses
body: <p>I've read multiple threads over internet to try finding the best possible soulution and would gladly hear what you think.</p>
  
  <p>I work with a bussiness platform and our customers(users), need to send mail as their company.
  Example:</p>
  
  <blockquote>
    <ul>
    <li><p>From: info@company.com</p></li>
    <li><p>From: news@anotherCompany.com</p></li>
    </ul>
  </blockquote>
  
  <p>1)
  We are currently using the inbuild php <strong>mail()</strong> function with <strong>included headers</strong> and be able to set "from" domain as we want. This works kinda okay but we are recently starting to get matched as SPAM more and more from some email domains like hotmail and we are haveing a hard time finding soultions.</p>
  
  <p>2)
  We have thought of using SMTP server </p>
  
  <p>But...</p>
  
  <blockquote>
    <ul>
    <li>You are bound to use the same from-domain as username in many cases.</li>
    </ul>
    
    <p>Therefor we thought we might use one main SMTP domain and then use the "reply to". But...</p>
    
    <ul>
    <li>The <strong>Reply-to</strong> does not work in some mailprograms, ex: windows 10 mail. It still selects the main domain sender email.</li>
    </ul>
    
    <p>It's also a huge project to ask our clients to provide (if they even have) their own SMTP login information. As some of them even don't know if they run MAC or Windows.</p>
  </blockquote>
  
  <p>3) Third party API's for example <a href="https://postmarkapp.com/" rel="nofollow noreferrer">https://postmarkapp.com/</a> etc.
  Will they fit the role?</p>
  
  <p>Are there any other soulutions that I've missed to work around this?</p>
  
  <p><strong>And what would you chose to go with?</strong></p>
  
  <p>Is php mail with "correct" headers enought? Should we gather SMTP login information from our customers as primary and use PHP mail as fallback?</p>