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?
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.')