mailhog / MailHog

Web and API based SMTP testing
MIT License
13.98k stars 1.06k forks source link

release gmail not working #246

Open scne opened 5 years ago

scne commented 5 years ago

I try to configure permanent release smtp over g suite but I get the following error. I think the problem is auth mechanism.

Found username/password, using auth mechanism: [PLAIN]
Failed to release message: EOF

Suggestions?

ns3777k commented 5 years ago

your smtp settings would help actually with mailhog version.

spagr commented 4 years ago

I'm no Golang developer, but I realy like MailHog, got some issue and I want to help a little. After same research, after comparing with another Gmail/ AWS smtp Go clients, I maybe found bug in line https://github.com/mailhog/MailHog-Server/blob/50f74a1aa2991b96313144d1ac718ce4d6739dfd/api/v1.go#L335

In my opinion 3rd parameter has to be a valid mailbox e-mail address (eg. apiv1.config.Email ), not "nobody@"+apiv1.config.Hostname .

Second possible issue is default smtp.SendMail() EHLO command set with "localhost" (it's written in their docs). This idea source and solution is here : https://gist.github.com/jpillora/cb46d183eca0710d909a#gistcomment-3087042

Please can You fix it and make new release ?

Thank You in advantage.

Martin

aandis commented 4 years ago

+1

DerekCresswell commented 4 years ago

Using Mailhog in docker, I cannot release any emails.

I'm trying to use smtp.gmail.com but it only told me an insecure app tried to use my email. I can't seem to figure this out either and gmail keep changing my email styles so it is hard to develop for.

masi commented 3 years ago

Doesn't Google require now OAuth2?

exaucae commented 3 years ago

Bump!