If you are passing email parameter into this function, then make sure to define the address as let emailAddress : String = "Your Email". Or, if you are taking it from something like a UITextField, you can just pass textView.text? as the email parameter.