From: sto.mar@... Date: 2012-10-06T07:38:14+09:00 Subject: Re: img src while sending email ruby cgi Am 06.10.2012 00:10, schrieb Ferdous ara: > Hi > I am sending email by ruby cgi. > Sending is fine by html > > but when i am trying to insert a image , it does not work.. wondering > what i am doing wrong > > here is the code : > > > message = < From:test user > To: testuser > 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 > >

bay1.gif

> > MESSAGE_END > > > Net::SMTP.start('smtp.myemail.com') do |smtp| > smtp.send_message message, 'test@test.com', > 'test1@test1.com > end > > > > email is going. but image is not attaching .. > > Can any one please help me . > You are *not* sending an email with an attached image, you are only sending an email in HTML format, which happens to contain some link. I have never used Net::SMTP, so I can not tell you how you would actually attach an image to an email. Try searching for 'ruby net smtp attachment' or so... --