Open CoderKwong opened 4 years ago
I'd be surprised if port 25 is what they use. Have you validated those SMTP settings with another email client?
From: CoderKwong notifications@github.com Sent: Monday, October 12, 2020 4:19 AM To: 123andy/redcap-docker-compose redcap-docker-compose@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [123andy/redcap-docker-compose] How can i use other email (#50)
I can send test mail when i use MailHog.But i change the other email, it not working.
This is my config
.env: [image]https://user-images.githubusercontent.com/12517739/95740741-a61ae780-0cbf-11eb-85fc-a0741eb87cf5.png msmtrpc: [image]https://user-images.githubusercontent.com/12517739/95740800-bc28a800-0cbf-11eb-8fac-bf90e657b2b8.png
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/123andy/redcap-docker-compose/issues/50, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABY5VMN4RUB4GYY7YBJF7HDSKLQ23ANCNFSM4SMVNAOA.
I'd be surprised if port 25 is what they use. Have you validated those SMTP settings with another email client? … ____ From: CoderKwong notifications@github.com Sent: Monday, October 12, 2020 4:19 AM To: 123andy/redcap-docker-compose redcap-docker-compose@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [123andy/redcap-docker-compose] How can i use other email (#50) I can send test mail when i use MailHog.But i change the other email, it not working. This is my config .env: [image]<user-images.githubusercontent.com/12517739/95740741-a61ae780-0cbf-11eb-85fc-a0741eb87cf5.png> msmtrpc: [image]<user-images.githubusercontent.com/12517739/95740800-bc28a800-0cbf-11eb-8fac-bf90e657b2b8.png> — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub<#50>, or unsubscribe<github.com/notifications/unsubscribe-auth/ABY5VMN4RUB4GYY7YBJF7HDSKLQ23ANCNFSM4SMVNAOA>.
yes,thay are. But i found the question why i can't send email.Because rdc/redcap-overrides/msmtp/msmtprc
did't work.It can't replace default config.Only work on this case:
rdc/docker-web/container-config/msmtp/msmtprc
## BELOW IS A SAMPLE FOR RELAYING USING A GMAIL ACCOUNT (UNTESTED)
defaults
auth login
tls off
tls_certcheck off
logfile /var/log/msmtp.log
## A first gmail address
account gmail
host smtp.126.com
port 25
from xxxxxxx@126.com
user xxxxxxx@126.com
password xxxxxxx
## Set a default account
#account default : gmail
.env
SMTP_SMARTHOST=smtp.126.com
SMTP_PORT=
If you are able to make a pull request. I'm confused as to why the override didn't work. Did you recreate the container between edits?
-a
From: CoderKwong notifications@github.com Sent: Wednesday, October 14, 2020 7:55 AM To: 123andy/redcap-docker-compose redcap-docker-compose@noreply.github.com Cc: Andy Martin andy.b.martin@stanford.edu; Comment comment@noreply.github.com Subject: Re: [123andy/redcap-docker-compose] How can i use other email (#50)
I'd be surprised if port 25 is what they use. Have you validated those SMTP settings with another email client? … ____ From: CoderKwong notifications@github.commailto:notifications@github.com Sent: Monday, October 12, 2020 4:19 AM To: 123andy/redcap-docker-compose redcap-docker-compose@noreply.github.commailto:redcap-docker-compose@noreply.github.com Cc: Subscribed subscribed@noreply.github.commailto:subscribed@noreply.github.com Subject: [123andy/redcap-docker-compose] How can i use other email (#50https://github.com/123andy/redcap-docker-compose/issues/50) I can send test mail when i use MailHog.But i change the other email, it not working. This is my config .env: [image]<user-images.githubusercontent.com/12517739/95740741-a61ae780-0cbf-11eb-85fc-a0741eb87cf5.pnghttps://user-images.githubusercontent.com/12517739/95740741-a61ae780-0cbf-11eb-85fc-a0741eb87cf5.png> msmtrpc: [image]<user-images.githubusercontent.com/12517739/95740800-bc28a800-0cbf-11eb-8fac-bf90e657b2b8.pnghttps://user-images.githubusercontent.com/12517739/95740800-bc28a800-0cbf-11eb-8fac-bf90e657b2b8.png> — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub<#50https://github.com/123andy/redcap-docker-compose/issues/50>, or unsubscribe<github.com/notifications/unsubscribe-auth/ABY5VMN4RUB4GYY7YBJF7HDSKLQ23ANCNFSM4SMVNAOAhttps://github.com/notifications/unsubscribe-auth/ABY5VMN4RUB4GYY7YBJF7HDSKLQ23ANCNFSM4SMVNAOA>.
yes,thay are. But i found the question why i can't send email.Because rdc/redcap-overrides/msmtp/msmtprc did't work.It can't replace default config.Only work on this case:
rdc/docker-web/container-config/msmtp/msmtprc
defaults
auth login
tls off
tls_certcheck off
logfile /var/log/msmtp.log
account gmail
host smtp.126.com
port 25
from xxxxxxx@126.com
user xxxxxxx@126.com
password xxxxxxx
.env
SMTP_SMARTHOST=smtp.126.com
SMTP_PORT=
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/123andy/redcap-docker-compose/issues/50#issuecomment-708457714, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABY5VMJC5254XSQUZDORFU3SKW3WBANCNFSM4SMVNAOA.
Did you recreate the container between edits?
I'm try the docker-compose up -d --build
commad when i change the msmtp config.I don't know if this is the problem.And my systemOS is centos-7.
I'm trying to push emails out via smtp.gmail. I tried redcap-overrides/msmtp/msmtprc while commented out the config in .env solution, and emails were still sent into mailhog. Are there any working solutions for this yet? Thank you.
I haven't used that. The code I placed in there was from some online reference and untested (as marked). Something like that should be possible...
Has anyone figured out how to use gmail for this?
I can send test mail when i use MailHog.But i change the other email, it not working.
This is my config
.env: msmtrpc: