# File lib/mailfactory.rb, line 365
  def buildattachmentboundary(attachment)
    disposition = "Content-Disposition: inline; filename=\"#{attachment['filename']}\""
    boundary = "--#{@attachmentboundary}\r\nContent-Type: #{attachment['mimetype']}; name=\"#{attachment['filename']}\"\r\nContent-Transfer-Encoding: base64\r\n#{disposition}"
    if(attachment['headers'])
      boundary = boundary + "\r\n#{attachment['headers'].join("\r\n")}"
    end
    
    return(boundary)
  end