Jump to content

PHP mail image attachment


imperium2335

Recommended Posts

currently i have this but it doesn't show the image:

$RHASH = md5(date('r', time())) ;

$image_attached = chunk_split(base64_encode(file_get_contents($userfile))) ;

mail("[email protected]", "Cake Photo Submission","A submission was completed:\n\nUser Info:\n\nName: $name\n\nJob: $job\n\nWebsite: $website\n\nCake Details:\n\nCake name: $cakename\n\nTags: $tags\n\nShort description: $shrtdesc\n\nLong description: $longdesc\n\nDecorator: $decorator\n\nType: $type\n\nFlavor: $flavor\n\nTiers: $tiers\n\nServes: $serves\n\nPrice: $price\n\nOther info: $other\n\nFile submitted: $userfile\n\nIP of sender: $ip at $date (server time).$image_attached", "From: $email\r\nReply-To: $email\r\nContent-Type: multipart/mixed; boundary=\"PHP-mixed-".$RHASH."\"") ;

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.