human_aft3r_all Posted September 23, 2008 Share Posted September 23, 2008 Hey, I'm new to PHP but not that new. Could someone give me a small example of taking a link containing a file, and then sending that file as an email attachment? I know how to send emails in php, just not how to make it work with the first thing I said. If there is no other way than I suppose i could have the server upload the file from that location, and then send it as an attachment and then delete it... but is there a more efficient way? and if it has to be uploaded, how do I upload a file based on a web address? Thanks! Link to comment https://forums.phpfreaks.com/topic/125388-redirect-file-from-link-to-email-attachment/ Share on other sites More sharing options...
genericnumber1 Posted September 23, 2008 Share Posted September 23, 2008 You would have to transfer it to your server before attaching the email. Alternatively you could just send a link in the email for the user to download.... Link to comment https://forums.phpfreaks.com/topic/125388-redirect-file-from-link-to-email-attachment/#findComment-648274 Share on other sites More sharing options...
human_aft3r_all Posted September 23, 2008 Author Share Posted September 23, 2008 understood, this feature would be for transferring files to mobile devices that do not feature the ability to download or play files from their web browser. Any other suggestions are welcome. Link to comment https://forums.phpfreaks.com/topic/125388-redirect-file-from-link-to-email-attachment/#findComment-648277 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.