Jump to content

How to send file attached to email from PHP script


Recommended Posts

I'm need a way to send mp3 files attached to emails as part of a voice mail application.  My most recent failed attempt at sending email attachements was a script (shown below) I found at:

 

          http://www.webcheatsheet.com/php/send_email_text_html_attachment.php#attachment

 

Best I can tell my server doesn't recognize the code below.

          ob_start();

          $message = ob_get_clean();

 

Where do I get these two functions?

 

The server I'm running on is Yahoo Small Business which support PHP's mail() function but alas without sufficient documentation to make using it with email attachments a useable solution for me at my current level of understanding.  I was able to get mail() to work without email attachments.

 

If the script below isn't likely to be a solution, perhaps someone can recommend a PHP email script that worked for them? 

 

Thanks for suggestions

 

 

 

 

[attachment deleted by admin]

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.