sequence item 0: expected string, tuple found

(user_mail, ','.join(recipient), mail.as_string())

The above code is produce error of wxpected string but tuple found. How should I fix this? Any solution?

1 answer

  • answered 2017-06-17 19:21 Arpit Solanki

    You must specify recipients in a string . Below is an example you can specify recipients like this.

    user_email = ""
    recipients =  ["email1, email2, email3"]