title: Compose Email with multiple uitextfield (swift)
body: <p>How do I compose an email through Swift with multiple <code>UITextField</code>?  It seems like I can only enter one data (named <code>UITextField</code>) under <code>messageBody</code>.  How do can I add multiple <code>UITextField</code> to my <code>messageBody</code>?</p>
  
  <pre><code>import UIKit
  import CoreData
  import MessageUI
  
  class EmailTableViewController: UITableViewController, MFMailComposeViewControllerDelegate, UITextFieldDelegate {
  
      @IBOutlet weak var name: UITextField!
      @IBOutlet weak var phone: UITextField
      @IBOutlet weak var email: UITextField!
      @IBOutlet weak var base: UITextField!
      @IBOutlet weak var rig: UITextField!
      @IBOutlet weak var wellhead: UITextField!
      @IBOutlet weak var connector: UITextField!
      @IBOutlet weak var size: UITextField!
      @IBOutlet weak var depth: UITextField!
      @IBOutlet weak var pressure: UITextField!
      @IBOutlet weak var temp: UITextField!
  
      @IBAction func SendEmailButton(sender: AnyObject) {    
  
          var emailTitle = "Interface Information"
          var messageBody = name.text
  
          var toRecipents = ["test.com"]
          var mc: MFMailComposeViewController = MFMailComposeViewController()
          mc.mailComposeDelegate = self
          mc.setSubject(emailTitle)
          mc.setMessageBody(messageBody, isHTML: false)
          mc.setToRecipients(toRecipents)
          self.presentViewController(mc, animated: true, completion: nil)
  
      }
  
      func mailComposeController(controller:MFMailComposeViewController, didFinishWithResult result:MFMailComposeResult, error:NSError) {
          switch result.value {
          case MFMailComposeResultCancelled.value:
              println("Mail cancelled")
          case MFMailComposeResultSaved.value:
              println("Mail saved")
          case MFMailComposeResultSent.value:
              println("Mail sent")
          case MFMailComposeResultFailed.value:
              println("Mail sent failure: %@", [error.localizedDescription])
          default:
              break
          }
          self.dismissViewControllerAnimated(true, completion: nil)
  
      }
  </code></pre>