title: Mail using custom function
body: <p>So as stated in the title I wanna created a function different from mail to send mail(confusing ik)</p>
  
  <p>So using mail () it sends the email from my server regardless of the headers I put so I need to create a function to send the actual email from a set email</p>
  
  <p>Let's say I have an email</p>
  
  <p>flameforgedinc@gmail.com</p>
  
  <p>Lets say I have a bunch of emails in a mailing list</p>
  
  <p>Now I have some code that's gonna use this function to email each one</p>
  
  <p>So this code use's cMail ($to, $sub, $msg, $from);</p>
  
  <p>And the email will appear to the user</p>
  
  <p>From: flameforgedinc@gmail.com</p>
  
  <p>And I actually want it to come from my email</p>
  
  <p>If I use mail then it comes from my server and displays altervista00000 and I don't want the plus my server limits the mail() function to activation emails and I need to be able to send newsletters</p>
  
  <p>Any ideas or workarounds??</p>