tmyonline Posted November 6, 2009 Share Posted November 6, 2009 Hi guys, My mail form works fine. Now, suppose I need code it so that it allows people to attach a document to their email message. The way I would do, probably not the right way, is to code it so that when the "Send Mail" button is clicked, the attached document will be uploaded to the server and in the message that is sent, I can include a link to that uploaded document. When a user receives the email, he can click on the link to get to the attachment. I have a feeling that this is not the right way. What would be your approach ? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/180576-how-to-send-email-attachment/ Share on other sites More sharing options...
mikesta707 Posted November 6, 2009 Share Posted November 6, 2009 http://www.webcheatsheet.com/php/send_email_text_html_attachment.php scroll down a little Quote Link to comment https://forums.phpfreaks.com/topic/180576-how-to-send-email-attachment/#findComment-952687 Share on other sites More sharing options...
atl_andy Posted November 6, 2009 Share Posted November 6, 2009 Check out Swift mailer. It's an extremely simple-to-use PHP class. http://swiftmailer.org/ Quote Link to comment https://forums.phpfreaks.com/topic/180576-how-to-send-email-attachment/#findComment-952735 Share on other sites More sharing options...
tmyonline Posted November 6, 2009 Author Share Posted November 6, 2009 Thanks guys. I'll look into those links. Thanks again. Quote Link to comment https://forums.phpfreaks.com/topic/180576-how-to-send-email-attachment/#findComment-952880 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.