Hello I''ve been dipping my toe in the RubyOnRails waters but have come unstuck trying 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 configuration setting below, however the email isn''t received to any email accounts. Setting the authentication to either "login" or "plain" with my standard Plusnet username & password caused a error message of "535 Incorrect authentication data". Sending email from an email client (outlook) only requires the address relay.plus.net, password and username is only needed to collect email from POP accounts. Using other SMPT gateway (which I dont have permission or usernames\passwords for) throws up different errors, so ActionMailer is trying to send mail and talking to the SMTP servers. If you have managed to get ActionMailer / ROR to send an email using a standard 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. Id be really grateful for any help Thanks a lot. Ben rails at redbed dot plus dot com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [i]config\environments\development.rb[/i] ActionMailer::Base.server_settings = { :address => "relay.plus.net", :port => 25, :domain => "plus.net", } config.action_mailer.perform_deliveries = true [i]log\development.log[/i] Processing UserController#forgot_password (for 127.0.0.1 at 2007-02-15 20:21:11) [POST] Session ID: 42405491e4218811967bfc0dceb0d8fb Parameters: {"user"=>{"email"=>"name-9IKiO1iGCm/QXOPxS62xeg@public.gmane.org"}, "commit"=>"Email password", "action"=>"forgot_password", "controller"=>"user"} [4;36;1mUser Load (0.010000) [0m [0;1mSELECT * FROM users WHERE (users.`email` = ''name-9IKiO1iGCm/QXOPxS62xeg@public.gmane.org'' ) 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 users.id <> 3) LIMIT 1 [0m [4;35;1mUser Load (0.000000) [0m [0mSELECT * FROM users WHERE (users.email = ''name-9IKiO1iGCm/QXOPxS62xeg@public.gmane.org'' AND users.id <> 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` ''name-9IKiO1iGCm/QXOPxS62xeg@public.gmane.org'' WHERE id = 3 [0m [4;35;1mSQL (0.100000) [0m [0mCOMMIT [0m Sent mail: Date: Thu, 15 Feb 2007 20:21:11 +0000 From: support-9IKiO1iGCm/QT0dZR+AlfA@public.gmane.org To: name-9IKiO1iGCm/QXOPxS62xeg@public.gmane.org Subject: Your password is ... Content-Type: text/plain; charset=utf-8 Your username is name. Your new password is NetVsZqbH7. Please login and change it to something more memorable. Redirected to http://127.0.0.1:3000/user/login Completed in 0.87100 (1 reqs/sec) | DB: 0.14000 (16%) | 302 Found [http://127.0.0.1/user/forgot_password] [4;36;1mUser Columns (0.000000) [0m [0;1mSHOW FIELDS FROM users [0m [/i][i][/i] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hello I''ve been dipping my toe in the RubyOnRails waters but have come unstuck trying 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 configuration setting below, however the email isn''t received to any email accounts. Setting the authentication to either "login" or "plain" with my standard Plusnet username & password caused a error message of "535 Incorrect authentication data". Sending email from an email client (outlook) only requires the address relay.plus.net, password and username is only needed to collect email from POP accounts. Using other SMPT gateway (which I dont have permission or usernames\passwords for) throws up different errors, so ActionMailer is trying to send mail and talking to the SMTP servers. If you have managed to get ActionMailer / ROR to send an email using a standard 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. Id be really grateful for any help Thanks a lot. Ben -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Steve Longdo
2007-Feb-16 20:13 UTC
Re: Ruby On Rails ActionMailer - emails not being delevered
Have you tried just using the :sendmail option without specifying the servername? On 2/16/07, Ben <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > Hello > > I''ve been dipping my toe in the RubyOnRails waters but have come unstuck > trying > 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 > configuration > setting below, however the email isn''t received to any email accounts. > > Setting the authentication to either "login" or "plain" with my standard > Plusnet > username & password caused a error message of "535 Incorrect > authentication > data". Sending email from an email client (outlook) only requires the > address > relay.plus.net, password and username is only needed to collect email > from POP > accounts. > > Using other SMPT gateway (which I don''t have permission or > usernames\passwords > for) throws up different errors, so ActionMailer is trying to send mail > and > talking to the SMTP servers. > > If you have managed to get ActionMailer / ROR to send an email using a > standard > 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. > > Ben > > -- > Posted via http://www.ruby-forum.com/. > > > >-- Thanks, -Steve http://www.stevelongdo.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I''ve solved this, Thank you to everyone who has viewed or replied to this post. If youre having problems sending email using ActionMailer try the following. Set your config file like this - ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.server_settings = { :address => "relay.plus.net", :port => 25, :domain => "www.plus.net", } Restart WEBrick and try sending an email to an address which isn''t forwarded by you domain host (I used a email address from my ISP). If this is successful then change the "from" address in the notification model your using to something random and try sending an email to the original address. It worked for me!!! Good luck. Ben Fri Feb 16 20:13 , ''Steve Longdo'' <steve.longdo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> sent:>Have you tried just using the :sendmail option without specifying the servername? > >On 2/16/07, Ben < >rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >Hello > >I''ve been dipping my toe in the RubyOnRails waters but have come unstuck > >trying >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 >configuration >setting below, however the email isn''t received to any email accounts. > > >Setting the authentication to either "login" or "plain" with my standard >Plusnet >username & password caused a error message of "535 Incorrect >authentication >data". Sending email from an email client (outlook) only requires the > >address >relay.plus.net, password and username is only needed to collect email >from POP >accounts. > >Using other SMPT gateway (which I don''t have permission or >usernames\passwords > >for) throws up different errors, so ActionMailer is trying to send mail >and >talking to the SMTP servers. > >If you have managed to get ActionMailer / ROR to send an email using a >standard >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. > >Ben > >-- >Posted via >http://www.ruby-forum.com/. > > > > > >-- >Thanks, >-Steve >http://www.stevelongdo.com > >> > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---