Hi,
Ok i have a property website, when a user views a listing, and clicks contact seller it takes them to an email form, when filled in a sent it sends the enquiry to the seller and comes out similar to the following;
--------------------------
----------
----------
----------
----------
----------
----------
----------
-----
Casa-Post property magazine online has an enquiry for you.
Property Ref: 123
Comment:
Villas, penthouse and apartments, large terraces and gardens, private parking, excellent views.
Contact Details:
Name: john loorooro
Phone: 3333333333333333
Email: info@casa-post.com
Thankyou for using Casa-Post.com, if you have any questions please contact info@casa-post.com
--------------------------
----------
----------
----------
----------
----------
----------
----------
----------
-------
But the problem is this is really boring I want to be able to make the titles bold or add a background image that the text sits in to spruce it up, at the moment its set to plain text and i know i have to set it as html, below is the current script being used, how do i change it so it shows the same information, but with a backgorund image and things in bold etc....
--------------------------
----------
----------
----------
----------
----------
----------
----------
----------
--------
$from_name = $_POST['contact_firstname'
]." ".$_POST['contact_lastname
'];
$from_email = $_POST['contact_email'];
$to_email = $user->user_email. ', info@casa-post.com';
$subject = $EMAIL['listing_subject'];
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\n";
$headers .= "X-Priority: 1\n";
$headers .= "X-MSMail-Priority: High\n";
$headers .= "X-Mailer: php\n";
$headers .= "From: \"".$from_name."\" <".$from_email.">\n";
$mail_message = "Casa-Post property magazine online has an enquiry for you.\n\n";
$mail_message .= "Property Ref: ".$listref."\n\n";
$mail_message .= "Comment:\n ".$_POST['contact_comment'
];
$mail_message .= "\n\nContact Details:\n";
$mail_message .= "Name: " .$_POST['contact_firstname
']." ".$_POST['contact_lastname
'];
$mail_message .= "\nPhone: ".$_POST['contact_phone'];
$mail_message .= "\nEmail: ".$_POST['contact_email'].
"\n\n";
$mail_message .= "Thankyou for using Casa-Post.com, if you have any questions please contact\n info@casa-post.com";
$success = mail($to_email, $subject, $mail_message, $headers);
--------------------------
----------
----------
----------
----------
----------
----------
----------
-------
Cheers :)
Ashburn69