Does anyone know to send mail encrypted in GO?

So I can send mail just fine, this copy pasta works quite well:

I'm even sending it through smtp with ssl -
smtpdm-ap-southeast-1.aliyun.com:465

the problem is that I get that classic "blahblahblah did not encrypt this message" in my Gmail.

Does anyone know how to solve this? How do I encrypt my email in golang to stop this message? Is this even a golang related problem? I think this is partly why my emails are being marked as spam instantly by Gmail. Thanks.

Write your reply...

Never miss a post from Sumit Sharma, when you sign up for Ednsquare.