From: ajay paswan Date: 2012-10-17T22:21:16+09:00 Subject: Unable to send attachment, and dealing with multiple attachment Hi, the following function to mail with an attachment is not working, mail is going but Its not attaching the file: send_mail(file_attach, mail_to, password, to, from) filename = file_attach filecontent = File.read(filename) encodedcontent = [filecontent].pack("m") # base64 marker = "AUNIQUEMARKER" body =< e print "Mailing exception occured: " + e end end After this, how can I send multiple attachment, suppose files to attach are in array 'a_array'? -- Posted via http://www.ruby-forum.com/.