mine was same as yours but this resolved it. MAIL_ENCRYPTION= dont add any value to MAIL_ENCRYPTION, not even null or anything else.