Giter VIP home page Giter VIP logo

Comments (13)

alexcesaro avatar alexcesaro commented on July 28, 2024

Can you show your code? Have you tried this workaround: https://github.com/go-gomail/gomail#x509-certificate-signed-by-unknown-authority

from gomail.

bronze1man avatar bronze1man commented on July 28, 2024

I do not try that workaround.Thanks.

from gomail.

bronze1man avatar bronze1man commented on July 28, 2024

I have tried the workaround.
It does not work.
I looks like it is not an tls error.
I first get 535 Authentication failed
Then get EOF.
The weird thing is that my password and username is currect.

from gomail.

alexcesaro avatar alexcesaro commented on July 28, 2024

Is there an English documentation on how to send emails using QQ's SMTP?

You can also try to use the LOGIN mechanism: https://github.com/go-gomail/gomail#504-574-unrecognized-authentication-type

from gomail.

bronze1man avatar bronze1man commented on July 28, 2024

LOGIN mechanism does not work

func sendToQq()(err error){
    addr:="[email protected]"
    msg := gomail.NewMessage()
    msg.SetHeader("From", addr)
    msg.SetHeader("To", addr)
    msg.SetHeader("Subject", "测试邮件1")
    msg.SetBody("text/html", "测试邮件2")

    auth := gomail.LoginAuth("xxx", "xxx", "smtp.qq.com")
    mailer := gomail.NewCustomMailer("smtp.qq.com:587", auth,gomail.SetTLSConfig(&tls.Config{InsecureSkipVerify: true}))

    //mailer:=gomail.NewMailer("smtp.qq.com","xxx","xxxx",587,
    //gomail.SetTLSConfig(&tls.Config{InsecureSkipVerify: true}))
    return mailer.Send(msg)
}

Here is the document http://service.mail.qq.com/cgi-bin/help?subtype=1&&id=28&&no=331.
It says to use smtp.qq.com port 465 or 587 and ssl to send email.
use imap.qq.com port 993 and ssl to recevie email.
use your username without @qq.com as account name to login if you are not vip account.

from gomail.

bronze1man avatar bronze1man commented on July 28, 2024

I can not use it with my iphone either.
I think it is qq's fault,it is not this library fault.

from gomail.

alexcesaro avatar alexcesaro commented on July 28, 2024

Have you tried port 465?

from gomail.

bronze1man avatar bronze1man commented on July 28, 2024

It return a 535 Authentication failed again.

from gomail.

alexcesaro avatar alexcesaro commented on July 28, 2024

Ok I guess you should contact QQ's support then.

from gomail.

bronze1man avatar bronze1man commented on July 28, 2024

Thanks for your time.
it turn out that it is my fault.
I should study it longer before ask it in the issue.

from gomail.

qishenonly avatar qishenonly commented on July 28, 2024

Thanks for your time.  it turn out that it is my fault. I should study it longer before ask it in the issue.

Hello, how did you resolve the EOF error returned by sending QQ emails? I have also encountered this issue recently

from gomail.

bronze1man avatar bronze1man commented on July 28, 2024

sorry i forgot.
some tips: EOF means remote program close the connection .
It maybe you protocol is not correct, you can use wireshark to verify it.

from gomail.

qishenonly avatar qishenonly commented on July 28, 2024

sorry i forgot.  some tips: EOF means remote program close the connection . It maybe you protocol is not correct, you can use wireshark to verify it.

Thank you very much for your prompt. I have solved this problem!

from gomail.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.