Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Oct 2004
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    sending emails with attachments in php

    right i really need help...

    i need a script so i can send attachments in a email without the user submitted anything. I want the variables to be set in the file so i even say the file i want within the file within a variable (and the recipents email address). How would i go about this, does anyone know where i can quickly retrieve the script?

  • #2
    Regular Coder
    Join Date
    Apr 2004
    Location
    Philadelphia
    Posts
    241
    Thanks
    2
    Thanked 5 Times in 5 Posts
    Umm if you just want to send an e-mail with variables...thats easy! attachments? I don't know ...but here's a quick example for maling vars

    PHP Code:
    $mail $_POST['email'];
    $name $_POST['name'];
    /* etc. etc. of the all info you have on the person....
    now to the mail function! */
    mail($mail'Welcome ' $name ' ''This is your body what you want to say blah blah.'

  • #3
    Senior Coder
    Join Date
    Aug 2003
    Location
    One step ahead of you.
    Posts
    2,815
    Thanks
    0
    Thanked 3 Times in 3 Posts


  •  

    Posting Permissions

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