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 (strtoupper(substr(PHP_OS,0,

[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')) { $eol=

[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 divid