Forum: Ruby on Rails Ruby On Rails ActionMailer - emails not being delevered

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
D53912dea4ab65ba34a670de951fb891?d=identicon&s=25 Rails (Guest)
on 2007-02-15 23:17
(Received via mailing list)

I've been dipping my toe in the RubyOnRails waters but have come unstuck
to send an email using ActionMailer through my ISPs SMTP servers
(Plusnet). I can
see the email being rendered in the log file using the Actionmailer
setting below, however the email isn't received to any email accounts.

Setting the authentication to either "login" or "plain" with my standard
username & password caused a error message of "535 Incorrect
data". Sending email from an email client (outlook) only requires the
address, password and username is only needed to collect email
from POP

Using other SMPT gateway (which I don’t have permission or
for) throws up different errors, so ActionMailer is trying to send mail
talking to the SMTP servers.

If you have managed to get ActionMailer / ROR to send an email using a
ISP SMTP how did you manage it? Where am I going wrong? Does RubyOnRails
have any
other tests I can carry out to make sure the email is leaving my PC.

I’d be really grateful for any help

Thanks a lot.


rails at redbed dot plus dot com



ActionMailer::Base.server_settings = {
  :address => "",
  :port => 25,
  :domain => "",
config.action_mailer.perform_deliveries = true


Processing UserController#forgot_password (for at 2007-02-15
  Session ID: 42405491e4218811967bfc0dceb0d8fb
  Parameters: {"user"=>{"email"=>""}, "commit"=>"Email
password", "action"=>"forgot_password", "controller"=>"user"}
   [4;36;1mUser Load (0.010000) [0m    [0;1mSELECT * FROM users WHERE
(users.`email` = '' ) LIMIT 1 [0m
   [4;35;1mSQL (0.000000) [0m    [0mBEGIN [0m
   [4;36;1mUser Load (0.030000) [0m    [0;1mSELECT * FROM users WHERE
(users.login = 'name' AND <> 3) LIMIT 1 [0m
   [4;35;1mUser Load (0.000000) [0m    [0mSELECT * FROM users WHERE
= '' AND <> 3) LIMIT 1 [0m
   [4;36;1mUser Update (0.000000) [0m    [0;1mUPDATE users SET
`created_at` =
'2007-02-06 19:27:12', `login` = 'name', `hashed_password` =
'fae3b9f639b003a0ba2dfa8f8cb3e70431baa372', `salt` = 'XMLxtMqP2Z',
`email` =
'' WHERE id = 3 [0m
   [4;35;1mSQL (0.100000) [0m    [0mCOMMIT [0m
Sent mail:
 Date: Thu, 15 Feb 2007 20:21:11 +0000



Subject: Your password is ...

Content-Type: text/plain; charset=utf-8

Your username is name. Your new password is NetVsZqbH7. Please login and
it to something more memorable.
Redirected to
Completed in 0.87100 (1 reqs/sec) | DB: 0.14000 (16%) | 302 Found
   [4;36;1mUser Columns (0.000000) [0m    [0;1mSHOW FIELDS FROM users
This topic is locked and can not be replied to.