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

docker安装无法发邮件 #284

Open
ekkoun opened this issue Jan 7, 2019 · 6 comments
Open

docker安装无法发邮件 #284

ekkoun opened this issue Jan 7, 2019 · 6 comments

Comments

@ekkoun
Copy link

ekkoun commented Jan 7, 2019

docker安装,修改邮件的环境变量,customer_type这个环境变量不在配置文件中生效,导致邮件用的永远都是默认邮件地址

@ekkoun
Copy link
Author

ekkoun commented Jan 7, 2019

发现是环境变量传了- HITCHHIKER_MAIL_CUSTOM=smtp,但是docker安装后没有生效,在配置文件appconfig.json中仍然是"customType": "none"
邮件传的其他参数都生效了,就这个不行

@ekkoun
Copy link
Author

ekkoun commented Jan 7, 2019

image

@zjlletian
Copy link

我也遇到这个问题了,蛋疼。。。

@zjlletian
Copy link

zjlletian commented Feb 19, 2019

传 HITCHHIKER_MAIL_CUSTOM_TYPE=smtp 就可以了,他们代码里面写的有问题。
./utils/setting.js: return process.env.HITCHHIKER_MAIL_CUSTOM_TYPE || this.mail.customType;
./public/setup.js: onMailTypeSelect(env['HITCHHIKER_MAIL_CUSTOM']);

@jyl4944204
Copy link

  -HITCHHIKER_MAIL_SMTP_TLS = 1
  - HITCHHIKER_MAIL_CUSTOM_TYPE = smtp
  - HITCHHIKER_MAIL_SMTP_HOST=smtp.exmail.qq.com
  - HITCHHIKER_MAIL_SMTP_USER=kkkkk
  - HITCHHIKER_MAIL_SMTP_PASS=jjjjj
  - HITCHHIKER_MAIL_SMTP_PORT=465

我就是这样设置的,为啥还是不行勒

传 HITCHHIKER_MAIL_CUSTOM_TYPE=smtp 就可以了,他们代码里面写的有问题。
./utils/setting.js: return process.env.HITCHHIKER_MAIL_CUSTOM_TYPE || this.mail.customType;
./public/setup.js: onMailTypeSelect(env['HITCHHIKER_MAIL_CUSTOM']);

  -HITCHHIKER_MAIL_SMTP_TLS = 1
  - HITCHHIKER_MAIL_CUSTOM_TYPE = smtp
  - HITCHHIKER_MAIL_SMTP_HOST=smtp.exmail.qq.com
  - HITCHHIKER_MAIL_SMTP_USER=kkkkk
  - HITCHHIKER_MAIL_SMTP_PASS=jjjjj
  - HITCHHIKER_MAIL_SMTP_PORT=465

我就是这样设置的,为啥还是不行勒

@ekkoun
Copy link
Author

ekkoun commented Sep 19, 2019

直接进容器里改

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants