Comments (13)
Can you show your code? Have you tried this workaround: https://github.com/go-gomail/gomail#x509-certificate-signed-by-unknown-authority
from gomail.
I do not try that workaround.Thanks.
from gomail.
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.
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.
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.
I can not use it with my iphone either.
I think it is qq's fault,it is not this library fault.
from gomail.
Have you tried port 465?
from gomail.
It return a 535 Authentication failed
again.
from gomail.
Ok I guess you should contact QQ's support then.
from gomail.
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.
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.
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.
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)
- panic: 454 4.7.0 TLS not available due to local problem?Does anyone know why?
- Recipient address rejected: Email Sending Quota Exceeded
- How can i set message-id before sending? HOT 1
- Incorrect behavior using html/template with AddAlternativeWriter HOT 3
- how to send to multiple recipients but they can only see themselves in the recipient field HOT 1
- Embedded image not showing in mobile devices HOT 1
- Attach PDF HOT 2
- Not receiving email when sending email as No SMTP. HOT 1
- Maintainer has left this world HOT 1
- How to set email importance and email-receipt? HOT 2
- How to download it? HOT 1
- How to send emails using SSL encryption or TLS encryption HOT 1
- Mail Delivery Subsystem Error HOT 2
- Could we add support to specifically unset/delete all attachements? HOT 2
- Where to Report Vulnerabilities? HOT 2
- Can not send email to stmp.163.com and stmp.qq.com
- Email content tampering vulnerability due to crafted file names
- [feature] Flag to ignore invalid address error HOT 2
- Email doesnt send if there is one of receipts address invalid HOT 4
- how to config ssl HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gomail.