Re: [BULK] [PHP] I'm trying to sending an image via email

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux