title: Coldfusion CFMAIL and sendgrid
body: <p>I have 2 clients on the same server that I host, that both send email through sendgrid.com (both have their own accounts).</p>
  
  <p>I was looking at reports on sendgrid and noticed that categories from "client 1" were showing up in a report for "client 2".</p>
  
  <p>I spent extensive time on the phone with sendgrid and they are telling me that a handful of emails 65 from a batch of 3000 for "client 1" show as being sent through "client 2"'s authenticated user.</p>
  
  <p>In my scripting, I use coldfusion cfmail and I specify the SMTP address, username and password for that client into the tag.</p>
  
  <p>A possible theory takes into account the "Maintain connection to mail server" check box under mail in the administrator.</p>
  
  <p>"Select this check box to keep the connection to a mail server open for reuse after delivering a message (recommended)."</p>
  
  <p>If both clients send email at the same time (very much possible) would the coldfusion mail spooling engine separate them out based on server/username and password or send them all through to the mail server that is currently open?</p>
  
  <p>If I uncheck the maintain connection to mail server checkbox... what is the downside on resources?  my clients send newsletters and transactional emails all day, maybe about 10k each client.</p>