$value) {
if( !in_array( $label, array( 'emailSent', 'captcha' ) ) ) {
$label = ucwords($label);
// Use the commented code below to change label texts. On this example will change "Email" to "Email Address"
// if( $label == 'Email' ) {
// $label = 'Email Address';
// }
// Checkboxes
if( is_array($value) ) {
// Store new value
$value = implode(', ', $value);
}
$message .= $label.": " . htmlspecialchars($value, ENT_QUOTES) . "
\n";
}
}
$mail = new PHPMailer(true);
try {
$mail->SMTPDebug = $debug; // Debug Mode
// Step 3 (Optional) - If you don't receive the email, try to configure the parameters below:
$mail->IsSMTP(); // Set mailer to use SMTP
$mail->Mailer = "smtp";
$mail->Host = 'mail.ecomsiam.com'; // Specify main and backup server
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = 'form@ecomsiam.com'; // SMTP username
$mail->Password = 'RYD7V6TFSJAK'; // SMTP password
$mail->SMTPSecure = 'tls'; // Enable encryption, 'ssl' also accepted
$mail->Port = 587; // TCP port to connect to
$mail->addAddress('support@ecomsiam.com', 'ecomsiam support'); // Add another recipient
//$mail->addCC('person3@domain.com', 'Person 3'); // Add a "Cc" address.
//$mail->addBCC('person4@domain.com', 'Person 4'); // Add a "Bcc" address.
// From - Name
$fromName = ( isset($_POST['ชื่อ/name']) ) ? $_POST['ชื่อ/name'] : 'ecomsiam contact form';
$mail->setFrom($email, $fromName);
// Repply To
if( isset($_POST['email']) ) {
$mail->addReplyTo($_POST['email'], $fromName);
}
$mail->IsHTML(true); // Set email format to HTML
$mail->CharSet = 'UTF-8';
$mail->Subject = "Contact us form - ecomsiam.com";
$mail->Body = $message;
// Step 4 - If you don't want to attach any files, remove that code below
if (isset($_FILES['attachment']) && $_FILES['attachment']['error'] == UPLOAD_ERR_OK) {
$mail->addAttachment($_FILES['attachment']['tmp_name'], $_FILES['attachment']['name']);
}
$mail->send();
$arrResult = array ('response'=>'success');
} catch (Exception $e) {
$arrResult = array ('response'=>'error','errorMessage'=>$e->errorMessage());
} catch (\Exception $e) {
$arrResult = array ('response'=>'error','errorMessage'=>$e->getMessage());
}
} else {
$arrResult = array ('response'=>'captchaError');
}
}
?>
[an error occurred while processing this directive]
Success! Your message has been sent to us.
Error! There was an error sending your message.
Error! Verification failed.
ยินดีต้อนรับ...สู่การใช้บริการของ บริษัท อีคอมสยาม ดอทคอม จำกัด
โปรดกรอกข้อความลงในแบบฟอร์มนี้ เพื่อให้ทีมงานบริการลูกค้าให้ข้อมูลเพิ่มเติมแก่ท่าน
ตามที่ท่านสอบถามหรือแจ้งข้อมูล ขอบคุณค่ะ
ติดต่อกับเรา /Address Info
บริษัท อีคอมสยาม ดอทคอม จำกัด
ECOMSIAM DOT COM CO., Ltd.
- Address: 470 ถนนประชาราษฎร์ ตำบลตลาดขวัญ อำเภอเมือง จังหวัดนนทบุรี 11000
- Phone: 02-968 2665, 02-968 3399, Mobile : 065-601 7022
- กรณีเร่งด่วน: (นอกเวลาทำการ) 081-831-1518
- Fax : 02-968 3400
- Email: support@ecomsiam.com
LINE ID : @ecomsiam
กด Add friend ได้ที่ https://line.me/R/ti/p/%40yel6714y
เพิ่มเพื่อนใน LINE ด้วยคิวอาร์โค้ด
เปิดแอพ LINE > เลือกแท็บเพื่อน > แตะไอคอนเพิ่มเพื่อนที่มุมขวาบน
แล้วเลือก "คิวอาร์โค้ด" จากนั้นจึง สแกนคิวอาร์โค้ด
E-mail : support@ecomsiam.com
Website : ecomsiam.com
Website : โดเมนเนม.ecomsiam.com
เวลาทำการ /Bussiness Hours
- Monday - Friday - 8.30 น. - 17.30 น.
- Saturday - 8.30 น. - 17.30 น.
- Sunday - ปิดทำการ (Closed)
บริษัทอีคอมสยาม ดอทคอม จำกัด
470 ถนนประชาราษฏร์ ต.ตลาดขวัญ อ.เมือง จ.นนทบุรี 11000
รถประจำทางที่ผ่านบริษัท
- รถประจำทางสาย 30, 32, 33, 63, 65, 97, 114
- รถปรับอากาศสาย ปอ.506, ปอ.545
- รถร่วมบริการสาย บ้านแพน-นนทบุรี, วงกลม-นนทบุรี-สนามบินน้ำ,นนทบุรี-รังสิต, บางบัวทอง-วัดนครอินทร์, ปทุมธานี-นนทบุรี, ปากเกร็ด-วัดกำแพง
[an error occurred while processing this directive]
[an error occurred while processing this directive]
[an error occurred while processing this directive]