[PHP] Email with attachment

2010-05-15 Thread Php Developer
Hi, I found a good function at php.net that sends email with atachment, but unfortunately i still cannot figure out how to send a body of the email too. Here is the code: function sendEmailWithAttachement($to, $subject, $message, $file) { if (strtoupper(substr(PHP_OS,0,3)=='WIN')) {

Re: [PHP] Email with attachment

2010-05-15 Thread Jim Lucas
Php Developer wrote: Hi, I found a good function at php.net that sends email with atachment, but unfortunately i still cannot figure out how to send a body of the email too. Here is the code: function sendEmailWithAttachement($to, $subject, $message, $file) { if

[PHP] Email with attachment function

2004-06-17 Thread Mark Cubitt
Hello, I'm trying to write a function that sends an email with an attachment using sendmail, But I can't seem to get it working, the code I currently have is below, Any ideas would be much appreciated. I'm probably doing something stupid as the output is what its meant to be except it isn't

[PHP] email pipe - attachment problem (zip files)

2003-06-19 Thread Duncan
Hi, I just wrote an script, which scans emails passed to it via a pipe and adds the content to a MySQL database. Attachments are also supported, however, zip files simply don't work. They get processed saved into the database just fine, but once i grab such a zip file from the database, it