How do i send an email using the emial() function with a file attachment?
you must use the optional headers to change the MIME of your message. try reading through a tutorial such as this one for details.