                         println("[**ERROR**] SendGrid addTos: The number of email addresses provided didn't match the number of names provided.")
                         return
                     }
+                } else if self.toname != nil {
+                    self.toname?.append("")
                 }
                 
                 self.to! += addresses

        var cc: [String]?
        var bcc: [String]?
        var replyto: String?
        
        let smtpapi = SmtpApi()
        var hasRecipientsInSmtpApi = true

            self.headers = nil
            self.addHeaders(keyValuePairs)
        }
        
        func addAttachment(filename: String, data: NSData) {
            if self.attachments == nil {
                self.attachments = [filename: data]
            } else {
                self.attachments![filename] = data
            }
        }
    }
}