Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: sending attachement


Message #1 by Peter Barta <pbarta@k...> on Wed, 04 Jul 2001 20:17:33 +0200
I'm not blowing off the question, but since it is Wrox's "professional PHP"
list, I feel obligated to say that they have a complete email implementation
in code in their Professional PHP Programming book. They have it written as
several classes and attachments is one of the functions.  That would
probably be your best bet.

Adam Lang
Systems Engineer
Rutgers Casualty Insurance Company
http://www.rutgersinsurance.com
----- Original Message -----
From: "Peter Barta" <pbarta@k...>
To: "professional php" <pro_php@p...>
Sent: Wednesday, July 04, 2001 2:17 PM
Subject: [pro_php] sending attachement


> Hi,
>
> I would like to send an e-mail message and an attachement after completing
> a form.
> Now I have this code, but I do not know how to extend this with
attachement
> sending.
>
> the code to extend:
> <?php
> /* recipients */
> $recipient = "petrol <pbarta@w...>";
> /* subject */
> $subject = "subject of the mail";
> /* message */
> $message = "this is the message!\n";
>
> /* attache a file, this is the question????
>
> $file
>
> */
>
> $headers .= "From: Sender name <xxxx@x...>\n";
> /* and now mail it */
> mail($recipient, $subject, $message, $headers);
> ?>
>
> Thanks :
> peter
>
>


  Return to Index