Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I always get the error "unencrypted connection" #24459

Closed
alsmn opened this issue Mar 20, 2018 · 2 comments
Closed

I always get the error "unencrypted connection" #24459

alsmn opened this issue Mar 20, 2018 · 2 comments

Comments

@alsmn
Copy link

alsmn commented Mar 20, 2018

my go versioin:1.10

my code:

func main() {
m := gomail.NewMessage()
m.SetHeader("From", "XX@XX.com")
m.SetHeader("To", "XX@XX.com")
m.SetAddressHeader("Cc", "XX@XX.com", "Dan")
m.SetHeader("Subject", "Hello!")
m.SetBody("text/html", "Hello Bob and Cora!")
m.Attach("/Users/XX/Workspaces/Goland/New_Test_Pro/file1.txt")

d := gomail.NewDialer("smtp.XX.com", 80, "XX@XX.com", "XXX")
d.TLSConfig = &tls.Config{InsecureSkipVerify: true}
if err := d.DialAndSend(m); err != nil {
	fmt.Println(err)
	panic(err)
}

}

Thanks.

@ALTree
Copy link
Member

ALTree commented Mar 20, 2018

Hi,

the Go project does not use its bug tracker for general discussion or asking questions about the language. The Github bug tracker is only used for tracking bugs and proposals going through the Proposal Process.

Please see the Questions wiki page; it has a list of good places for asking questions. Thanks!

Closing, since this is not a bug.

@ALTree ALTree closed this as completed Mar 20, 2018
@alsmn
Copy link
Author

alsmn commented Mar 20, 2018

thanks

@golang golang locked and limited conversation to collaborators Mar 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants