[WebPub] Mailers in RoR for MIT server
    Lindy Liggett 
    lindy_l at MIT.EDU
       
    Thu Jun 21 09:14:31 EDT 2012
    
    
  
Hi,
 
I have a question about Mailers and RoR, and the DCAD people suggested
contacting you about this. I'm making a webapp for my Masters Thesis, using
Ruby on Rails. I was hosting it on the scripts server but kept getting a lot
of errors so I moved it to heroku (rmltool.herokuapp.com,). And I've figured
out most things. But I can't for the life of me figure out how to hook up
MIT email to the Ruby mailers.
 
So I have successfully done it using gmail using these settings in my
config/environments/development.rb file (to make sure I could do it right,
at least on one server)
 
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:address                                              => "smtp.gmail.com",
:port                                     => 465,
:domain                              => 'localhost:3000',
  :user_name                     => 'lindy.liggett',
  :password                         => [my password],
:authentication                => 'password',
  :enable_starttls_auto => true
}
 
Then when that worked I changed to what I thought should be the MIT settings
(settings on the website, and what I use on my phone to get MIT email on
that):
 
  config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:address                               =>"outgoing.mit.edu",
:port                                      => 465,
:domain                              => 'localhost:3000',
:user_name                        => 'lindy_l',
:password                           => [my password],
:authentication                 => 'password',
:enable_starttls_auto    => true 
}
 
But no emails are sent. The server log says an email was sent, but it says
that even when I put in values for username and password that I know are
incorrect. Any idea what other settings I should try? I have tried the other
port. 
 
Thank you,
Lindy
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/webpub/attachments/20120621/3eb0da28/attachment.htm
    
    
More information about the WebPub
mailing list