View Single Post
  #1  
Old 08-15-2006, 02:33 PM
illingworth illingworth is offline
Junior Member
 
Join Date: Aug 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
illingworth is on a distinguished road
Default How to attach image in email

Hi there!

Can anyone tell me, how to attach an image in mail using php. i want to send email with some information and 1 image as an attachment when click on the submit button. and images upload script already worked and to upload images in server one folder that folder name is attach.which images upload script are given follow which i will that script. plz send ur suggestion in this regard, ur replies will be highly appreciated,

if(isset($pImage)){

//echo "File Name: ".$pImage;
//echo "<br>File Temp Name: ".$_FILES['upload']['tmp_name'];
//echo "<br>File Size: ".$_FILES['upload']['size'];
//echo "<br>File Type: ".$_FILES['upload']['type'];
if($_FILES['upload']['size']<(50*1024)){
if(isset($pImage)){
$path="Attach/";
$arrImg=explode('.',$_FILES['upload']['name']);
copy($_FILES['upload']['tmp_name'],$path.$pImage); -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  Webmaster Forums - View Single Post - How to attach image in email
View Single Post
  #1  
Old 08-15-2006, 02:33 PM
illingworth illingworth is offline
Junior Member
 
Join Date: Aug 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
illingworth is on a distinguished road
Default How to attach image in email

Hi there!

Can anyone tell me, how to attach an image in mail using php. i want to send email with some information and 1 image as an attachment when click on the submit button. and images upload script already worked and to upload images in server one folder that folder name is attach.which images upload script are given follow which i will that script. plz send ur suggestion in this regard, ur replies will be highly appreciated,

if(isset($pImage)){

//echo "File Name: ".$pImage;
//echo "<br>File Temp Name: ".$_FILES['upload']['tmp_name'];
//echo "<br>File Size: ".$_FILES['upload']['size'];
//echo "<br>File Type: ".$_FILES['upload']['type'];
if($_FILES['upload']['size']<(50*1024)){
if(isset($pImage)){
$path="Attach/";
$arrImg=explode('.',$_FILES['upload']['name']);
copy($_FILES['upload']['tmp_name'],$path.$pImage); -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote