On Mon, Oct 19, 2020 at 02:51:10PM +0800, Wu Fengguang wrote:
+def check_smtp(mail_info, mail_server)
- if [nil, 'crystal.ci'].include? mail_info['to'].split('@')[1]
That "crystal.ci" won't work in 3rd party deployment.
so how to deal with the service send mail for crystal.ci and internet email? separate them in different containers?
Thanks Luan Shengde
Thanks, Fengguang
- intranet_smtp(mail_server)
- else
- internet_smtp
- mail_info['from'] = (ENV['EMAIL_ADDR']).to_s
- end
+end
2.23.0