added attach_from_path() and attach_from_content() to replace attach()