message





Your Name (required)

Your Email (required)

Phone

Your Message

[insert_php]

if (isset($_POST[“submit”])) {

$to = “saroarjahan.bd@gmail.com”;
$fromName = $_POST[‘your-name’];
$fromEmail = $_POST[‘your-email’];
$user_name = $_POST[‘tel-214’];

$subject = “New Message From 4icscards General Contact Page “;
$message = “Sender name : $fromName \n”.”Sender Email : $fromEmail \n”.”Sender Phone: $user_name \n”.”Sender Message:”.$_POST[‘your-message’];

/* GET File Variables */

/* Start of headers */
$headers = “From: $fromEmail”;

{
/* Reading file (‘rb’ = read binary) */

/* a boundary string */
$randomVal = md5(time());
$mimeBoundary = “==Multipart_Boundary_x{$randomVal}x”;

/* Header for File Attachment */
$headers .= “\nMIME-Version: 1.0\n”;
$headers .= “Content-Type: multipart/mixed;\n” ;
$headers .= ” boundary=\”{$mimeBoundary}\””;

/* Multipart Boundary above message */
$message = “This is a multi-part message in MIME format.\n\n” .
“–{$mimeBoundary}\n” .
“Content-Type: text/plain; charset=\”iso-8859-1\”\n” .
“Content-Transfer-Encoding: 7bit\n\n” .
$message . “\n\n”;

/* Encoding file data */
$data = chunk_split(base64_encode($data));

/* Adding attchment-file to message*/

}

$flgchk = mail (“$to”, “$subject”, “$message”, “$headers”);

if(isset($_POST[“your-mail”])){

echo ‘

‘;
}
else{
echo ‘

‘;
}

}

else{

}

[/insert_php]

Scroll to Top
Verified by MonsterInsights