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]

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.