Mombu the Php Forum

Go Back   Mombu the Php Forum > Php > I'm trying to sending an image via email
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 4th November 09:55
eddie
External User
 
Posts: 1
Default I'm trying to sending an image via email



On Mon 31 Dec 07, Eddie Dunckley wrote:

oops .. didnt read properly.
$msg .= $f_contents . $eol . '--' . $mime_boundary . "---" . $eol.$eol;

send yourself an email with an attachment and view the email source and
compare with your program output.

or you could just google for MIME.class site:*.phpbuilder.net and
download and use it like


require_once("MIME.class");

// check if parm bcc is in lib, think its not.
$msg = new MIME_mail($from, $to,$cc,$bcc, $subject);
$msg->fattach($filename);
// parms = $path, $description, $contenttype=OCTET, $encoding=BASE64,
//$disp='inline' etc, view the mime class to see options
$msg->send_mail();


--
Eddie
Dreams are free, but you get soaked on the connect time.
  Reply With Quote


 


Reply


Thread Tools
Display Modes




666