SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist
    Join Date
    Jun 2010
    Posts
    446
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    email with attachment

    how do I send an email with an attachment called test.png? I don' understand the ref at http://php.net/manual/en/function.mail.php
    PHP Code:
    <?php
    $from 
    "info@lin.com";
    $to "nihe@neb.rr.com";
    $subject "Test";
    $message "1234567890";
    $headers "From: $from\r\n";
    $headers .= "Content-type: text/html\r\n";
    mail($to$subject$message$headers);
    ?>
    .

  2. #2
    SitePoint Addict tom8's Avatar
    Join Date
    Mar 2012
    Location
    New Jersey
    Posts
    310
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Read this article and see if it helps:

    http://webcheatsheet.com/php/send_em...php#attachment


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •