title: PHP mail() email size limit
body: <p>I just wanna ask, when I'm using PHPMailer to send information from a form with many attachments, it's sending everything ok unless the files are more than 7 MB in total.</p>
  
  <p>Everyhing on the server is set up right as you can see:</p>
  
  <pre><code>memory_limit = 40M
  post_max_size = 40M
  upload_max_filesize = 40M
  file_uploads = On
  </code></pre>
  
  <p>I have read something about PHP mail server limits. I have set the PHPMailer to send messages using PHP mail() function.</p>
  
  <p>What else could there be needed to setup? Where can be the problem? The code itself is really without any limits, so it has to be somewhere else.</p>
  
  <p>When the mail isn't sent, PHP doesn't seem to report any errors, I just get the message from</p>
  
  <pre><code>if(!$mail-&gt;Send()) { } else
  </code></pre>
  
  <p>I have read that on some email server there is a 7 MB limit, could this be limited by the hosting somehow? Thank you for any help, I'm getting desperate.</p>
  
  <p>I also tried on our testing VPS server, it sends the mail everytime and when the files are bigger than 7 MB in total, it sends only some of the files with size &lt; 7 MB.</p>