{"action":"opened","issue":{"url":"https://api.github.com/repos/go-gitea/gitea/issues/4820","repository_url":"https://api.github.com/repos/go-gitea/gitea","labels_url":"https://api.github.com/repos/go-gitea/gitea/issues/4820/labels{/name}","comments_url":"https://api.github.com/repos/go-gitea/gitea/issues/4820/comments","events_url":"https://api.github.com/repos/go-gitea/gitea/issues/4820/events","html_url":"https://github.com/go-gitea/gitea/issues/4820","id":354974766,"node_id":"MDU6SXNzdWUzNTQ5NzQ3NjY=","number":4820,"title":"Mail module should add an option to explicitly decide using tls or not.","user":{"login":"simonwu-os","id":16757626,"node_id":"MDQ6VXNlcjE2NzU3NjI2","avatar_url":"https://avatars2.githubusercontent.com/u/16757626?v=4","gravatar_id":"","url":"https://api.github.com/users/simonwu-os","html_url":"https://github.com/simonwu-os","followers_url":"https://api.github.com/users/simonwu-os/followers","following_url":"https://api.github.com/users/simonwu-os/following{/other_user}","gists_url":"https://api.github.com/users/simonwu-os/gists{/gist_id}","starred_url":"https://api.github.com/users/simonwu-os/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonwu-os/subscriptions","organizations_url":"https://api.github.com/users/simonwu-os/orgs","repos_url":"https://api.github.com/users/simonwu-os/repos","events_url":"https://api.github.com/users/simonwu-os/events{/privacy}","received_events_url":"https://api.github.com/users/simonwu-os/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-29T02:48:48Z","updated_at":"2018-08-29T02:48:48Z","closed_at":null,"author_association":"NONE","body":"Dear All,\r\n    in the module   gitea/modules/mailer/mailer.go,  there is a fragment to decide it using tls or not.\r\n        isSecureConn := false\r\n\t// Start TLS directly if the port ends with 465 (SMTPS protocol)\r\n\tif strings.HasSuffix(port, \"465\") {\r\n\t\tconn = tls.Client(conn, tlsconfig)\r\n\t\tisSecureConn = true\r\n\t}\r\nIt says that the port should suffix with '465'. we have a problem it, because we use a smtp which using the port  946 for tls connect.  So I suggest add an option in the mail config  to support tls connect explicitly.\r\nThanks very much."}}
{"actor":{"display_login":"simonwu-os"}}