removed mime_types() and deleted $namename from attach_from_path() and made $content_type required paramater