mandrill SMTP

314 views
Skip to first unread message

Mirek Zvolský

unread,
Oct 9, 2013, 1:26:05 PM10/9/13
to web...@googlegroups.com
I try set parameters for mandrillapp.com:
mail.settings.server = 'smtp.mandrillapp.com:587'
mail.settings.sender = 'mirek@zvolsky@gmail.com'
mail.settings.login = 'mirek@zvolsky@gmail.com:my_API_key_here'

F.e. Request_reset_password will write "mail sent". However it doesn't work.
With smtp.gmail.com it works.
I'm not sure, if I can use domain 'gmail.com' in sender/login (or mandrill gives some address?). Or some settings in web interface of mandrill are necessary?
Or sending domain need to be as parameter? And is it possible set with gluon.tools.Mail?

In mandrillapp web interface I don't see the mail at all. In fact I don't know where to seek for him.

From telnet I have tested basic accessibilty (not login or more) of smtp.mandrillapp.com:587. It is accessible.

Not very important, but if somebody want try mandrill......

Mirek Zvolský

unread,
Oct 9, 2013, 1:28:49 PM10/9/13
to web...@googlegroups.com
Here f.e. settings from Heroku - domain heroku.com is parametr here:

ActionMailer::Base.smtp_settings = {
    :port =>           '587',
    :address =>        'smtp.mandrillapp.com',
    :user_name =>      ENV['MANDRILL_USERNAME'],
    :password =>       ENV['MANDRILL_APIKEY'],
    :domain =>         'heroku.com',
    :authentication => :plain
}
ActionMailer::Base.delivery_method = :smtp

Niphlod

unread,
Oct 9, 2013, 2:35:50 PM10/9/13
to web...@googlegroups.com

Mirek Zvolský

unread,
Oct 10, 2013, 10:54:42 AM10/10/13
to web...@googlegroups.com
>> Niphlod >> really more a question on mandrill than web2py.

Maybe, more question about Mandrill.
But I am curious, if I can use web2py mailer, to send mails to Mandrill SMTP.

>> http://help.mandrill.com/entries/23744737-Where-do-I-find-my-SMTP-credentials-

I have no problem with credentials. I have tested this with mandrill module (python module for mandrill).

Niphlod

unread,
Oct 10, 2013, 11:38:31 AM10/10/13
to web...@googlegroups.com
awesome. python-mandrill uses mandrill API, not their SMTP service.
you're trying to send mail using web2py's interface to SMTP, so the fact that the API works fine isn't really a proof. Triple check your username:password settings ... 
Reply all
Reply to author
Forward
0 new messages