Send Files To Email Via Php

Discussion in 'Web Design and Development' started by GoGoComputerz, Nov 13, 2008.

  1. GoGoComputerz macrumors newbie

    Joined:
    Nov 13, 2008
    #1
    I was needing help coding sending files to email via php. I know how to send form responses, but I'm not sure how to send files... This is the code I use to send form responses:


    <?php
    $email = $_REQUEST['email'] ;
    $message = $_REQUEST['message'] ;

    mail( "email@email.com", "SubJect Line",
    $message, "From: $email" );
    header( "Location: thanks.html" );
    ?>
     
  2. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA

Share This Page