Discussion:
The problem of sending mail
(too old to reply)
Caiyun Deng
2014-08-15 10:32:59 UTC
Permalink
Hi!, Do you can send mail in ChicagoBoss?

(***@dcy-dcy)1> boss_mail:send("766320183-***@public.gmane.org", "xuanyi-2013-***@public.gmane.org",
"Test", "Fucking test").
{ok,<0.364.0>}
(***@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

(***@dcy-dcy)1> boss_mail:send("dcy.dengcaiyun-***@public.gmane.org",
"766320183-***@public.gmane.org", "Welcom", "hehe").
{ok,<0.363.0>}
(***@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.
--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
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/a356fd1c-1f6f-4cf9-8544-fa51241cbb85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
can2nac
2014-08-15 14:41:49 UTC
Permalink
{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.
Post by Caiyun Deng
Hi!, Do you can send mail in ChicagoBoss?
{ok,<0.364.0>}
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
{ok,<0.363.0>}
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.
--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
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/3f2dfcc3-619a-43e7-aa04-b6ea19eb21dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Caiyun Deng
2014-08-16 03:06:17 UTC
Permalink
My boss.config:
{mail_driver, boss_mail_driver_smtp},
{mail_relay_host, "smtp.gmail.com"},
{mail_relay_username, "dcy.dengcaiyun-***@public.gmane.org"},
{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: "xuanyi-2013-***@public.gmane.org"
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, "xuanyi-2013-***@public.gmane.org"},
{mail_relay_password, "MY_PASSWORD"},
The result is:
(***@dcy-dcy)1> boss_mail:send("xuanyi-2013-***@public.gmane.org", "766320183-***@public.gmane.org",
"Test", "test").
{ok,<0.363.0>}
(***@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写道
Post by can2nac
{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.
Post by Caiyun Deng
Hi!, Do you can send mail in ChicagoBoss?
"Test", "Fucking test").
{ok,<0.364.0>}
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
{ok,<0.363.0>}
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.
--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
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
2014-08-16 10:33:28 UTC
Permalink
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("xuanyi-2013-***@public.gmane.org", "766320183-***@public.gmane.org", "Test", "test").

Refs:
https://github.com/Vagabond/gen_smtp/issues/40
https://github.com/Vagabond/gen_smtp/issues/43
https://github.com/Vagabond/gen_smtp/issues/47
Post by Caiyun Deng
{mail_driver, boss_mail_driver_smtp},
{mail_relay_host, "smtp.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.
82 # Outgoing emails configuration (see examples above)
84 delivery_method: :async_smtp
86 address: smtp.qq.com
87 port: 25
88 domain: qq.com
89 authentication: :login
91 password: "MY_PASSWORD"
{mail_driver, boss_mail_driver_smtp},
{mail_relay_host, "smtp.qq.com"},
{mail_relay_password, "MY_PASSWORD"},
{ok,<0.363.0>}
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写道
{error,timeout} and {error,closed} show you that boss can send
mail and that something is wrong with your settings.
smtp.qq.com <http://smtp.qq.com/> is unreachable.
smtp.gmail.com <http://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.
Hi!, Do you can send mail in ChicagoBoss?
{ok,<0.364.0>}
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
<http://smtp.qq.com>",{error,timeout}}} in context
child_terminated
{ok,<0.363.0>}
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
<http://smtp.gmail.com>",{error,closed}}} in context
child_terminated
Change boss.conf for mail, it still can not work.
--
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
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
<https://groups.google.com/d/msgid/chicagoboss/25015cdd-6fc9-490b-8996-b6fccbdb04e3%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
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/53EF3378.90906%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
develuy
2014-08-19 12:49:29 UTC
Permalink
Could you solve the issue?
Post by develuy
Hi Caiyun,
1) Start SSL
application:start(asn1).
application:start(public_key).
application:start(ssl).
2) Send your e-mail
https://github.com/Vagabond/gen_smtp/issues/40
https://github.com/Vagabond/gen_smtp/issues/43
https://github.com/Vagabond/gen_smtp/issues/47
Post by Caiyun Deng
{mail_driver, boss_mail_driver_smtp},
{mail_relay_host, "smtp.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.
82 # Outgoing emails configuration (see examples above)
84 delivery_method: :async_smtp
86 address: smtp.qq.com
87 port: 25
88 domain: qq.com
89 authentication: :login
91 password: "MY_PASSWORD"
{mail_driver, boss_mail_driver_smtp},
{mail_relay_host, "smtp.qq.com"},
{mail_relay_password, "MY_PASSWORD"},
{ok,<0.363.0>}
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写道
{error,timeout} and {error,closed} show you that boss can send
mail and that something is wrong with your settings.
smtp.qq.com <http://smtp.qq.com/> is unreachable.
smtp.gmail.com <http://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.
--
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,
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
<https://groups.google.com/d/msgid/chicagoboss/25015cdd-6fc9-490b-8996-b6fccbdb04e3%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
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/53F347D9.60206%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
can2nac
2014-08-19 17:20:19 UTC
Permalink
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
Post by Caiyun Deng
Hi!, Do you can send mail in ChicagoBoss?
{ok,<0.364.0>}
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
{ok,<0.363.0>}
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.
--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
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/c8e3fe63-072e-475b-8802-9862af58552e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Caiyun Deng
2014-08-20 03:50:56 UTC
Permalink
Yes, After application:start(ssl), it works, Thanks

圚 2014幎8月15日星期五UTC+8䞋午6时32分59秒Caiyun Deng写道
Post by Caiyun Deng
Hi!, Do you can send mail in ChicagoBoss?
"Test", "Fucking test").
{ok,<0.364.0>}
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
{ok,<0.363.0>}
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.
--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
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/163341e0-d7b9-4217-bf6f-6fe95d56e61d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...