CircuitZ Posted May 20, 2009 Share Posted May 20, 2009 For the past couple of days I've been searching and searching for a PHP Mail script that would allow me to attach PHP files that are hosted on my server. Basically I'm looking for someone to help me write it. I know the basics of PHP and I'm OK with it. Basically the script should be setup like this: $from = "ringtone@skstuff.com"; $to = $_POST['myNum']; $attachment = $_POST['mySong']; $subject = "Ringtone"; $body = "The ringtone is attached."; I understand the mail(); function but cannot figure out how where to place the attachment. Any help would be verrrry appreciated. Thank you Quote Link to comment https://forums.phpfreaks.com/topic/158914-please-help-im-so-stressed/ Share on other sites More sharing options...
Maq Posted May 20, 2009 Share Posted May 20, 2009 Have you searched the forums? I've seen this type of question multiple times. You should also check in the manual, there are examples and snippets that deal with attachments - mail. Quote Link to comment https://forums.phpfreaks.com/topic/158914-please-help-im-so-stressed/#findComment-838104 Share on other sites More sharing options...
CircuitZ Posted May 20, 2009 Author Share Posted May 20, 2009 I have searched the forums -- I couldn't find anything. I found questions but no answers :\. Quote Link to comment https://forums.phpfreaks.com/topic/158914-please-help-im-so-stressed/#findComment-838108 Share on other sites More sharing options...
irvieto Posted May 20, 2009 Share Posted May 20, 2009 Search at google for phpMailer Class. It will allow you to attach files. Quote Link to comment https://forums.phpfreaks.com/topic/158914-please-help-im-so-stressed/#findComment-838117 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.