what is the best way to send email in golang ? here is my code
there I was using my real pasword for the api from which I should send emails
I want to use this for my “Contact Me” form on my portfolio
is there a better way to do this than using my real email and password and this will be an open source project also as I will not pay for private hosting
thanks in advance
You can use Mailgun and Go API, this is free for 10K emails per month, if I remember correctly.
then how do they do it ? or do I have to be an email service like gmail or outlook to do something like what I mentioned
Just ioen an account on Mailgun and use Go API lib to send emails. You will get your credentials on Mailgun.
There are more such services.