How can I send an attachment using the php mail() function without using a new mime class. Can't I just write the header myself? The main bit I don't understand is the boundary bit and where does the attachment go in the email?
It's OK I did it myself, quite easy really. You put the MIME info in the header, then separate the message and attachment with the boundary. I don't know why someone couldn't just explain this in a tutorial. Nowhere on the web did it tell me!