im trying to make a script that will pull user details from a database and create a file and e-mail it to a user.
i know how to create a basic e-mail script but i don't know how to 1) get it to attach a file to the e-mail.
2) create the file for the e-mail without saving it on the server?
would anyone be able to point me in the right direction?