I have a basic form that looks like below. I would like to include the feature an image attachment as well. I have seacrhed the net but came out with nothing I could grip. Note I am not a programmer.
I would appreciate any assistance in moving this project further. / Cheers Nick
This is how it looks today!
<?
// ===========modification by your own===================
$timenow=date("Y-m-d H:i:s");
$sender_name=$your_name; // you can change value in quotation
$sender_email=$your_email;
$receiver_email="$receiver_email";
$subject="$subject";
$message=" Time of submit: $timenow
$subject
$hiddenmessage
Details of enquirier:
$your_name
$company
$your_email
$phone_number
$country
Details of inquiry:
$item_spec
$quantity
$size_item
Decoration (if any):
$decoration
$size_decoration
$target_price
$pref_shipment";
//================================================== =======
$headers= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/plain; charset=ISO-8859-1\n";
$headers .= "X-Priority: 3\n";
$headers .= "X-MSMail-Priority: Normal\n";
$headers .= "X-Mailer: php\n";
$headers .= "From: \"".$sender_name."\" <".$sender_email.">\n";
// Aun Note
// Note that the two headers "X-Priority" and "X-MSMail-Priority", can be left out..
// ..but they will help overcome some of the more aggressive spam filtering systems
// ie. (hotmail, yahoo mail, ...) and ensures your mail is delivered.
if (mail("\"".$receiver_name."\" <".$receiver_email.">", $subject, $message, $headers)) {
$result_sendemail="Your request has been received. Thank you!";
} else {
$result_sendemail="<font color='#FF0000'>Your attempt contact us failed, please try again or contact directly trough
sales@mydomain.com!</font>";
}
echo "(Sending status: $result_sendemail)
";
?>