Re: [BULK] [PHP] I'm trying to sending an image via email
| From: | Eddie Dunckley | Date: | Mon, 31 Dec 2007 00:26:41 +0000 |
| Subject: | Re: [BULK] [PHP] I'm trying to sending an image via email | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-266396@lists.php.net to get a copy of this message | ||
On Sun 30 Dec 07, tedd wrote:
> I'm trying to send an image via email (hmm, must be an echo).
> In any event, the following is my main-code (word, dude) and a part
> of the email I receive back. The image file IS there.
> Any suggestions as to what I'm doing wrong?
> -- the code --
> $msg .= "Content-Disposition: attachment;
> filename=\"".$filename."\"".$eol.$eol;
> $msg .= $f_contents.$eol.$eol;
guess/think that should read:
$msg .= $f_contents.$eol. $boundary . "---" . $eol;
i.e. message needs a closing boundary terminated with either 2 or 3
dashes (cant remember off-hand).
--
Eddie
Most burning issues generate far more heat than light.