views:

6

answers:

0

I've been trying to send automatic e-mails from Rails - it works perfectly through Gmail's SMTP settings, which are:

:address => "smtp.gmail.com",
:port => 587,
:domain => "mail.google.com",
:user_name => "sscirrus",
:password => "password",
:authentication => "plain",
:enable_starttls_auto => true

However, I have stumbled into repeated issues trying to get setting to play nice with Register.com's settings, which are (according to Register.com):

incoming/outgoing mail is mail.domainname.com
port is 5125 or 587
SSLs are off
Authentication is either plain or login (they leaned towards login)
username = exact email (like [email protected])
password = password

I've tried many combinations of requirements revolving loosely around the following example:

# setup_mail.rb
ActionMailer::Base.smtp_settings = {
:address => "mail.website.co",
:port => 5125,
:user_name => "[email protected]",
:password => "password"
:authentication => "login"
}

None of the combinations I try seem to work. Do any of you know where I might be going wrong? Thanks very much.