You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2018/06/12 14:36:36 [ERROR] [.../runtime/asm_amd64.s:2361 goexit()] Fail to send emails [benjamin.balet@gmail.com]: UID: 4, registration notify - gomail: could not send email 1: dial tcp: lookup tcp///smtp.gmail.com: getaddrinfow: The specified class was not found.
Description
On Windows, the following settings in app.ini doesn't work:
HOST = smtp.gmail.com:587
However, when I add a double quote it works fine:
HOST = "smtp.gmail.com:587"
What is odd is that I don't need to use a double quote for the DB host:
[database]
DB_TYPE = mysql
HOST = 127.0.0.1:3306
By digging a bit, it looks like the delimiter is included by ReadString, cf. golang/go#25553
So your underlying mail lib understands smtp.gmail.com:587\n
Please note that this issue is not related to #4310 as it is a configuration parsing issue.
Sorry, my Go is too rusty to submit a PR, but great project for our NGO (we are an IT school for underprivileged children in Cambodia. We have a poor Internet connection and old servers, so gogs is a perfect match).
...
The text was updated successfully, but these errors were encountered:
I've checked code that INI definitely trims all white spaces (including \r\n). So this must be something else.
Since this is not a Gogs problem, I'm going to close this issue. You are welcome to report to https://github.com/go-ini/ini, or live with adding "" around value.
[x]
):log/gogs.log
):2018/06/12 14:36:36 [ERROR] [.../runtime/asm_amd64.s:2361 goexit()] Fail to send emails [benjamin.balet@gmail.com]: UID: 4, registration notify - gomail: could not send email 1: dial tcp: lookup tcp///smtp.gmail.com: getaddrinfow: The specified class was not found.
Description
On Windows, the following settings in app.ini doesn't work:
However, when I add a double quote it works fine:
What is odd is that I don't need to use a double quote for the DB host:
By digging a bit, it looks like the delimiter is included by
ReadString
, cf. golang/go#25553So your underlying mail lib understands
smtp.gmail.com:587\n
Please note that this issue is not related to #4310 as it is a configuration parsing issue.
Sorry, my Go is too rusty to submit a PR, but great project for our NGO (we are an IT school for underprivileged children in Cambodia. We have a poor Internet connection and old servers, so gogs is a perfect match).
...
The text was updated successfully, but these errors were encountered: