My boss.config:
{mail_driver, boss_mail_driver_smtp},
{mail_relay_host, "smtp.gmail.com"},
{mail_relay_username, "[email protected]"},
{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: "[email protected]"
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, "[email protected]"},
{mail_relay_password, "MY_PASSWORD"},
The result is:
(yxq@dcy-dcy)1> boss_mail:send("[email protected]", "[email protected]",
"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写道:
>
> {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("[email protected]", "[email protected]",
>> "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("[email protected]", "
>> [email protected]", "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.
>>
>
--
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 [email protected].
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.