Jump to content

[SOLVED] Insert Image with mail()


dfowler

Recommended Posts

try something like :

 

<?php
// To send HTML mail, the Content-type header must be set
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

// Additional headers
$headers .= 'From: Birthday Reminder <[email protected]>' . "\r\n";
$headers .= 'Cc: [email protected]' . "\r\n";
$headers .= 'Bcc: [email protected]' . "\r\n";
$to="[email protected]";
$sub="new msg";
$msg= '
<html>
.
//that means you can send regular html page with images ..etc
.
.
</html>
';
//send it here
mail($to,$sub,$msg,$headers);
?>


you can edit it

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.