Could anyone please give an example of sending mails with attachments in
rails using actionmailer?
I have a user in users table whose attachments is stored in
attachments table it self( Relation is user has_many attachments ;
attachment belongs_to user). Sender for example is firstname.lastname@example.org.
suppose user1 has two attachments "test1.pdf" and "test2.doc"