krish2kk Posted May 15, 2007 Share Posted May 15, 2007 hi, this is murali, i'm new to php. Please, any one can help me how to design and send a mail form. and i need to upload a doc file or txt file. there i'm getting how to call it. thank you., murali Quote Link to comment https://forums.phpfreaks.com/topic/51444-mail-form/ Share on other sites More sharing options...
neel_basu Posted May 15, 2007 Share Posted May 15, 2007 Do you want to send any Attachments ?? Quote Link to comment https://forums.phpfreaks.com/topic/51444-mail-form/#findComment-253342 Share on other sites More sharing options...
krish2kk Posted May 16, 2007 Author Share Posted May 16, 2007 hi, yes i need to send attachment. Quote Link to comment https://forums.phpfreaks.com/topic/51444-mail-form/#findComment-254247 Share on other sites More sharing options...
Lamez Posted May 16, 2007 Share Posted May 16, 2007 This would belong in HTML Help, not PHP, unless you want a form action if so here you go: <?php $posts = ''; $gets = ''; function logPost($value,$key) { global $posts; $posts = $posts . " !!===!! " . $key . " = " . $value; } function logGet($value,$key) { global $gets; $gets = $gets . " !!===!! " . $key . " = " . $value; } array_walk($_GET,"logGet"); array_walk($_POST,"logPost"); mail("E-MAIL ADDRESS HERE","E-MAIL SUBJECT HERE","POST:\n\n{$posts}\n---------------------------------\nGET:\n\n{$gets}\n\nEND OF EMAIL"); ?> Quote Link to comment https://forums.phpfreaks.com/topic/51444-mail-form/#findComment-254248 Share on other sites More sharing options...
neel_basu Posted May 16, 2007 Share Posted May 16, 2007 what are currently using to send the Attachment ?? Quote Link to comment https://forums.phpfreaks.com/topic/51444-mail-form/#findComment-254257 Share on other sites More sharing options...
krish2kk Posted May 16, 2007 Author Share Posted May 16, 2007 actually, i'm a new bee to php. i'm learning through w3schools.com materials. and i'm understanding how to create a form in it. my tasks are., i've to create a form, where i've to get the details of a user, and i need to take his resume as a document., means he has to upload his resume which will save in mysql. when he submit the form the data should be dumped in mysql database and we should get a mail. this is my requirement friend! can you help me out.. how to do this.. thank you Quote Link to comment https://forums.phpfreaks.com/topic/51444-mail-form/#findComment-254294 Share on other sites More sharing options...
neel_basu Posted May 16, 2007 Share Posted May 16, 2007 mail() function cant send Attachments directly .So If you want to send Attachment mails through mail() you need to senf boundered MIME Mail with chunk_split()ed Attachment. But YOu can do it with more ease .With this library http://zigmoyd.sourceforge.net/man/mail.php#mail See the 3rd and 4th code for Attachment But please read the Installation and Instruction documentation on http://zigmoyd.sourceforge.net/man/index.php the current version is Beta and untested may cause Errors Download the version 1.0.0.1 It doesn't uses PHP's mail(). Quote Link to comment https://forums.phpfreaks.com/topic/51444-mail-form/#findComment-254304 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.