The problem of sending mail

154 views
Skip to first unread message

Caiyun Deng

unread,
Aug 15, 2014, 6:32:59 AM8/15/14
to chica...@googlegroups.com
Hi!, Do you can send mail in ChicagoBoss?

(yxq@dcy-dcy)1> boss_mail:send("7663...@qq.com", "xuany...@qq.com", "Test", "Fucking test").
{ok,<0.364.0>}
(yxq@dcy-dcy)2> 18:21:24.270 [error] Supervisor boss_mail_sup had child mail_controller started with boss_mail_controller:start_link([{driver,boss_mail_driver_smtp}]) at <0.152.0> exit with reason {error,retries_exceeded,{network_failure,"smtp.qq.com",{error,timeout}}} in context child_terminated

(yxq@dcy-dcy)1> boss_mail:send("dcy.den...@gmail.com", "7663...@qq.com", "Welcom", "hehe").
{ok,<0.363.0>}
(yxq@dcy-dcy)2> 18:09:33.881 [error] Supervisor boss_mail_sup had child mail_controller started with boss_mail_controller:start_link([{driver,boss_mail_driver_smtp}]) at <0.152.0> exit with reason {error,retries_exceeded,{network_failure,"smtp.gmail.com",{error,closed}}} in context child_terminated

Change boss.conf for mail, it still can not work.

can2nac

unread,
Aug 15, 2014, 10:41:49 AM8/15/14
to chica...@googlegroups.com
{error,timeout} and {error,closed} show you that boss can send mail and that something is wrong with your settings.
smtp.qq.com is unreachable.
smtp.gmail.com demands credentials and correct auth type to be specified in header.
Amazon SES works 100%, they give free tier by the way.

Post your settings here if you want to go on.


On Friday, August 15, 2014 2:32:59 PM UTC+4, Caiyun Deng wrote:
Hi!, Do you can send mail in ChicagoBoss?

(yxq@dcy-dcy)1> boss_mail:send("7663...@qq.com", "xuany...@qq.com", "Test", "Fucking test").
{ok,<0.364.0>}
(yxq@dcy-dcy)2> 18:21:24.270 [error] Supervisor boss_mail_sup had child mail_controller started with boss_mail_controller:start_link([{driver,boss_mail_driver_smtp}]) at <0.152.0> exit with reason {error,retries_exceeded,{network_failure,"smtp.qq.com",{error,timeout}}} in context child_terminated

(yxq@dcy-dcy)1> boss_mail:send("dcy.dengc...@gmail.com", "7663...@qq.com", "Welcom", "hehe").
{ok,<0.363.0>}
(yxq@dcy-dcy)2> 18:09:33.881 [error] Supervisor boss_mail_sup had child mail_controller started with boss_mail_controller:start_link([{driver,boss_mail_driver_smtp}]) at <0.152.0> exit with reason {error,retries_exceeded,{network_failure,"smtp.gmail.com",{error,closed}}} in context child_terminated

Caiyun Deng

unread,
Aug 15, 2014, 11:06:17 PM8/15/14
to chica...@googlegroups.com
My boss.config:
    {mail_driver, boss_mail_driver_smtp},
    {mail_relay_host, "smtp.gmail.com"},
    {mail_relay_username, "dcy.den...@gmail.com"},
    {mail_relay_password, "MY_PASSWORD"},
It does not work. Do i need to change setting of gmail?

I also try qq.com to send mail.
In redmine, I use qq.com, it works. The redmine config is:
 81 default:
 82   # Outgoing emails configuration (see examples above)
 83   email_delivery:
 84     delivery_method: :async_smtp
 85     async_smtp_settings:
 86       address: smtp.qq.com
 87       port: 25
 88       domain: qq.com
 89       authentication: :login
 90       user_name: "xuany...@qq.com"
 91       password: "MY_PASSWORD"

So i change  boss.config to use qq.com:
    {mail_driver, boss_mail_driver_smtp},
    {mail_relay_host, "smtp.qq.com"},
    {mail_relay_username, "xuany...@qq.com"},
    {mail_relay_password, "MY_PASSWORD"},
The result is:
(yxq@dcy-dcy)1> boss_mail:send("xuany...@qq.com", "7663...@qq.com", "Test", "test").
{ok,<0.363.0>}
(yxq@dcy-dcy)2> 11:05:10.058 [error] Supervisor boss_mail_sup had child mail_controller started with boss_mail_controller:start_link([{driver,boss_mail_driver_smtp}]) at <0.152.0> exit with reason {error,retries_exceeded,{network_failure,"smtp.qq.com",{error,closed}}} in context child_terminated



在 2014年8月15日星期五UTC+8下午10时41分49秒,can2nac写道:

develuy

unread,
Aug 18, 2014, 12:35:20 PM8/18/14
to chica...@googlegroups.com
Hi Caiyun,

Please try the following:
 1) Start SSL
 application:start(asn1).
 application:start(public_key).
 application:start(ssl).

2) Send your e-mail

 boss_mail:send("xuany...@qq.com", "7663...@qq.com", "Test", "test").

--
You received this message because you are subscribed to the Google Groups "ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss...@googlegroups.com.
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/25015cdd-6fc9-490b-8996-b6fccbdb04e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

develuy

unread,
Aug 19, 2014, 8:49:32 AM8/19/14
to chica...@googlegroups.com
Could you solve the issue?

develuy escribió:

can2nac

unread,
Aug 19, 2014, 1:20:19 PM8/19/14
to chica...@googlegroups.com
oh yes,

"1) Start SSL
 application:start(asn1).
 application:start(public_key).
 application:start(ssl)."

i have added the same lines but i couldn't figure out why i did that ))) seems this was a reason

On Friday, August 15, 2014 2:32:59 PM UTC+4, Caiyun Deng wrote:
Hi!, Do you can send mail in ChicagoBoss?

(yxq@dcy-dcy)1> boss_mail:send("7663...@qq.com", "xuany...@qq.com", "Test", "Fucking test").
{ok,<0.364.0>}
(yxq@dcy-dcy)2> 18:21:24.270 [error] Supervisor boss_mail_sup had child mail_controller started with boss_mail_controller:start_link([{driver,boss_mail_driver_smtp}]) at <0.152.0> exit with reason {error,retries_exceeded,{network_failure,"smtp.qq.com",{error,timeout}}} in context child_terminated

(yxq@dcy-dcy)1> boss_mail:send("dcy.dengc...@gmail.com", "7663...@qq.com", "Welcom", "hehe").
{ok,<0.363.0>}
(yxq@dcy-dcy)2> 18:09:33.881 [error] Supervisor boss_mail_sup had child mail_controller started with boss_mail_controller:start_link([{driver,boss_mail_driver_smtp}]) at <0.152.0> exit with reason {error,retries_exceeded,{network_failure,"smtp.gmail.com",{error,closed}}} in context child_terminated

Caiyun Deng

unread,
Aug 19, 2014, 11:50:56 PM8/19/14
to chica...@googlegroups.com
Yes, After application:start(ssl), it works, Thanks

在 2014年8月15日星期五UTC+8下午6时32分59秒,Caiyun Deng写道:
Hi!, Do you can send mail in ChicagoBoss?

(yxq@dcy-dcy)1> boss_mail:send("766320183@qq.com", "xuany...@qq.com", "Test", "Fucking test").
{ok,<0.364.0>}
(yxq@dcy-dcy)2> 18:21:24.270 [error] Supervisor boss_mail_sup had child mail_controller started with boss_mail_controller:start_link([{driver,boss_mail_driver_smtp}]) at <0.152.0> exit with reason {error,retries_exceeded,{network_failure,"smtp.qq.com",{error,timeout}}} in context child_terminated

(yxq@dcy-dcy)1> boss_mail:send("dcy.dengc...@gmail.com", "7663...@qq.com", "Welcom", "hehe").
{ok,<0.363.0>}
(yxq@dcy-dcy)2> 18:09:33.881 [error] Supervisor boss_mail_sup had child mail_controller started with boss_mail_controller:start_link([{driver,boss_mail_driver_smtp}]) at <0.152.0> exit with reason {error,retries_exceeded,{network_failure,"smtp.gmail.com",{error,closed}}} in context child_terminated
Reply all
Reply to author
Forward
0 new messages