jwwceo Posted December 20, 2007 Share Posted December 20, 2007 I know I can pass in 4 variables, the text, the header, the subject, and the recepient. How do I send an attachment?? James Quote Link to comment https://forums.phpfreaks.com/topic/82519-sending-an-attachment-with-mail/ Share on other sites More sharing options...
littledragon Posted December 20, 2007 Share Posted December 20, 2007 Think it's in the headers, James... is a whole big can o' worms though. You googled this yet? Bet there's a class out there for you to pinch. Try PEAR also. edited - and edited it right back again Quote Link to comment https://forums.phpfreaks.com/topic/82519-sending-an-attachment-with-mail/#findComment-419464 Share on other sites More sharing options...
lachild Posted December 20, 2007 Share Posted December 20, 2007 You need to adjust the headers as LittleDragon pointed out. You also need to setup a boundry key that is posted in the message, finally your files need sent in base64 seperated by your boundry key. See the user comments for http://us2.php.net/mail for some premade functions and more details on this. Quote Link to comment https://forums.phpfreaks.com/topic/82519-sending-an-attachment-with-mail/#findComment-419477 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.