ok to make this same as that link
i have done this

require 'net/smtp'
require 'fileutils'
require 'rubygems'
require 'base64'

 fn = 'test.png'
  src = "data:image/png;base64,#{Base64.encode64(File.read(fn))}"


message = <<MESSAGE_END
From:test user <test / test.com>
To: testuser <test / test.com>
MIME-Version: 1.0
Content-type: text/html
Subject: SMTP e-mail test

This is an e-mail message to be sent in HTML format

<p><img src="#{src}" alt="test.png" width="32" height="32"></p>

MESSAGE_END


Net::SMTP.start('smtp.myemail.com') do |smtp|
  smtp.send_message message, 'test / test.com',
                             'test1 / test1.com
end

still now luck

Please help me with this

-- 
Posted via http://www.ruby-forum.com/.