Re: Email an attached file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



www.phpclasses.org is your best bet.  there are plenty.  personally i use
this one..http://phpclasses.com/browse.html/package/32.html

check out his site for examples.

hth
jd




                                                                                                                           
                    "Marie Osypian"                                                                                        
                    <mosypian@savingforco       To:     <php-db@lists.php.net>                                             
                    llege.com>                  cc:                                                                        
                                                Subject:      Email an attached file                               
                    05/28/2003 02:08 PM                                                                                    
                                                                                                                           
                                                                                                                           




I am using something like this example code below to send e-mail and
wondered if anyone could tell me how I could include a file also in this
email if possible.

Thanks in advance.
Marie


EXAMPLE:

$myname = "Me Myself";
$myemail = "myself@email.com";

$contactname = "Mister Contact";
$contactemail = "contact@email.com";

$message = "hello from happy me";
$subject = "Included your file";

$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: ".$myname." <".$myemail.">\r\n";
$headers .= "To: ".$contactname." <".$contactemail.">\r\n";
$headers .= "Reply-To: ".$myname." <$myreplyemail>\r\n";
$headers .= "X-Priority: 1\r\n";
$headers .= "X-MSMail-Priority: High\r\n";
$headers .= "X-Mailer: Just My Server";
mail($contactemail, $subject, $message, $headers);



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux