yes this will send one mail with attachment of image.png. But when i open 
or download that image, that is empty.?
imageurl = 
https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl=5&choe=UTF-8
require ''open-uri''
class UserMailer < ActionMailer::Base
  default :from => "mail-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org"
  
  def welcome_email(imageurl,mailid)
    attachments[''QR.png''] = {:mime_type =>
''image/png'',
                                     :content => open(URI.parse(imageURL))}
    mail(:to => mailid,
    :subject => "Code",
    :body => "Code")
  end
end
Thanks 
vishnu
-- 
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
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/bPjFh56Cq5EJ.
For more options, visit https://groups.google.com/groups/opt_out.