Eoloe Eoloe
2010-Oct-13  00:36 UTC
actionmailer and warning: regexp match /./n against to IBM437 string
Hello guys!
Here is my code. My platform is vista.
--------
require ''action_mailer''
class Gmailer < ActionMailer::Base
  def GmailMsg (expe, dest, subj, text, path)
    if path != 0
      mail.attachments[(path.split(''\\'')[-1])] =
File.read(path)
    end
    mail(:to => dest, :subject => subj, :from => expe, :body =>
text)
  end
end
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = { :address =>
''smtp.gmail.com'',
                                         :port => 587,
                                         :domain =>
''gmail.com'',
                                         :authentication => :plain,
                                         :user_name =>
''********@gmail.com'',
                                         :password =>
''***********''}
message = ''This function works great !''
Gmailer.GmailMsg(''********@gmail.com'',''********@gmail.com'',''function
test'', message, ''C:\testfile.txt'').deliver
-----------------------
Everything works fine but the console shows a lot of
C:/Ruby192/lib/ruby/1.9.1/net/protocol.rb:305: warning: regexp match
/.../n against to IBM437 string
C:/Ruby192/lib/ruby/1.9.1/net/protocol.rb:305: warning: regexp match
/.../n against to IBM437 string
C:/Ruby192/lib/ruby/1.9.1/net/protocol.rb:305: warning: regexp match
/.../n against to IBM437 string
C:/Ruby192/lib/ruby/1.9.1/net/protocol.rb:305: warning: regexp match
/.../n against to IBM437 string
C:/Ruby192/lib/ruby/1.9.1/net/protocol.rb:305: warning: regexp match
/.../n against to IBM437 string
What I''m doing wrong? How can I get rid of these?
Thank you.
-- 
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
radhames brito
2010-Oct-13  02:42 UTC
Re: actionmailer and warning: regexp match /./n against to IBM437 string
This is familiar , it look like this problem http://openhood.com/rack/ruby/2010/07/15/rack-test-warning/ read the article and see if its your case, i hope it helps -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Eoloe Eoloe
2010-Oct-13  21:15 UTC
Re: actionmailer and warning: regexp match /./n against to IBM437 string
If I understand well, I''m doing nothing wrong ? The only solution seems to mute the warnings ? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.