redcap-docker-compose icon indicating copy to clipboard operation
redcap-docker-compose copied to clipboard

How can i use other email

Open CoderKwong opened this issue 4 years ago • 7 comments

I can send test mail when i use MailHog.But i change the other email, it not working.

This is my config

.env: image msmtrpc: image

CoderKwong avatar Oct 12 '20 11:10 CoderKwong

I'd be surprised if port 25 is what they use. Have you validated those SMTP settings with another email client?


From: CoderKwong [email protected] Sent: Monday, October 12, 2020 4:19 AM To: 123andy/redcap-docker-compose [email protected] Cc: Subscribed [email protected] 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.

123andy avatar Oct 12 '20 16:10 123andy

I'd be surprised if port 25 is what they use. Have you validated those SMTP settings with another email client? ________________________________ From: CoderKwong [email protected] Sent: Monday, October 12, 2020 4:19 AM To: 123andy/redcap-docker-compose [email protected] Cc: Subscribed [email protected] 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      [email protected]
user      [email protected]
password  xxxxxxx

## Set a default account
#account default : gmail

.env

SMTP_SMARTHOST=smtp.126.com
SMTP_PORT=

CoderKwong avatar Oct 14 '20 14:10 CoderKwong

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 [email protected] Sent: Wednesday, October 14, 2020 7:55 AM To: 123andy/redcap-docker-compose [email protected] Cc: Andy Martin [email protected]; Comment [email protected] 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 [email protected]mailto:[email protected] Sent: Monday, October 12, 2020 4:19 AM To: 123andy/redcap-docker-compose [email protected]mailto:[email protected] Cc: Subscribed [email protected]mailto:[email protected] 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

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 [email protected]

user [email protected]

password xxxxxxx

Set a default account

#account default : gmail

.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.

123andy avatar Oct 15 '20 06:10 123andy

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.

CoderKwong avatar Oct 15 '20 11:10 CoderKwong

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.

ZackKC18 avatar Sep 10 '21 08:09 ZackKC18

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...

123andy avatar Sep 14 '21 15:09 123andy

Has anyone figured out how to use gmail for this?

CoolShades avatar Nov 13 '23 00:11 CoolShades