From: ajay paswan Date: 2012-10-22T21:24:44+09:00 Subject: Re: Unable to send attachment, and dealing with multiple attachment .... > part3 =< Content-Type: multipart/mixed; name=\"#{filename}\" > Content-Transfer-Encoding:base64 > Content-Disposition: attachment; filename="#{filename}" > #{encodedcontent} > --#{marker}-- > EOF > #this code I modified still not working, filename2 is assigned properly part4=< mailtext = part1 + part2 + part3 +part4 > > begin > Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE) > Net::SMTP.start('smtp.gmail.com', 587, 'gmail.com', from, password, > :login) do |smtp| .... -- Posted via http://www.ruby-forum.com/.