View Full Version : sending emails with attachments in php

10-24-2004, 04:00 PM
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?

10-24-2004, 05:02 PM
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

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

10-24-2004, 05:15 PM
This might help you: http://www.codingforums.com/showthread.php?t=44296