$value) { if (is_array($value)) { $value = implode(",", $value); } $name = "$" . $key; $code = str_replace($name, $value, $code); } $code = str_replace('$ipaddress', $_SERVER['REMOTE_ADDR'], $code); return $code; } if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['formid']) && $_POST['formid'] == 'formmain') { $mailto = 'teeannack@gmail.com'; $mailfrom = isset($_POST['email']) ? $_POST['email'] : $mailto; $subject = 'ALERT: New Inquiry from Beauty Rockx'; $message = 'A new inquiry has been submitted at www.beautyrockx.com.

Name: $Name
Email: $Email
Message: $Message
'; $success_url = ''; $error_url = ''; $error = ''; $eol = "\n"; $max_filesize = isset($_POST['filesize']) ? $_POST['filesize'] * 1024 : 1024000; $mail = new PHPMailer(); $mail->Subject = stripslashes($subject); $mail->From = $mailfrom; $mail->FromName = $mailfrom; $mailto_array = explode(",", $mailto); for ($i = 0; $i < count($mailto_array); $i++) { if(trim($mailto_array[$i]) != "") { $mail->AddAddress($mailto_array[$i], ""); } } $mail->AddReplyTo($mailfrom); if (!ValidateEmail($mailfrom)) { $error .= "The specified email address is invalid!\n
"; } if (!empty($error)) { $errorcode = file_get_contents($error_url); $replace = "##error##"; $errorcode = str_replace($replace, $error, $errorcode); echo $errorcode; exit; } $mail->CharSet = 'ISO-8859-1'; if (!empty($_FILES)) { foreach ($_FILES as $key => $value) { if ($_FILES[$key]['error'] == 0 && $_FILES[$key]['size'] <= $max_filesize) { $mail->AddAttachment($_FILES[$key]['tmp_name'], $_FILES[$key]['name']); } } } $message = ReplaceVariables($message); $message = stripslashes($message); $mail->MsgHTML($message); $mail->IsHTML(true); if (!$mail->Send()) { die('PHPMailer error: ' . $mail->ErrorInfo); } header('Location: '.$success_url); exit; } ?> Beauty Rockx - Taking Fashion By Storm!
 
SIGN IN / JOIN
Teal Braclet w/ Rhinestones
$10.00
Shamballa Beaded Bracelet
$10.00
Magnetic Leather Bracelet w/ Black & White Art Work Beads
$30.00
Rhinestone Bangle
$5.00
Back
Next
@BeautyRockx
FOLLOW US ON TWITTER & INSTAGRAM
COMPANY
HELP
CUSTOMER SUPPORT
COLLECTIONS
FIND US ON
 
 
 
© 2016  BeautyRockx.com  All Rights Reserved.